ADVERTISEMENTREMOVE ADS
simple anti void script
12,240 views

Script Preview
Description
ADVERTISEMENTREMOVE ADS
73 Lines • 2.24 KiB
-- Mobile Delta: small draggable button, starts top-RIGHT
local CoreGui = game:GetService("CoreGui")
local player = game:GetService("Players").LocalPlayer
local UIS = game:GetService("UserInputService")
repeat task.wait() until player.Character and player.Character:FindFirstChild("HumanoidRootPart")
-- remove old
local old = CoreGui:FindFirstChild("DragToggle")
if old then old:Destroy() end
-- gui
local gui = Instance.new("ScreenGui")
gui.Name = "DragToggle"
gui.Parent = CoreGui
-- tiny square
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(0, 40, 0, 40)
-- position: top-right corner (offset by 15 px)
btn.Position = UDim2.new(1, -55, 0, 15) -- anchor to right edge
btn.AnchorPoint = Vector2.new(1, 0) -- make (1,0) the top-right pivot
btn.BackgroundColor3 = Color3.new(1, 0, 1)
btn.Text = ""
btn.BorderSizePixel = 0
btn.ZIndex = 999
btn.Parent = gui
-- smooth drag
local dragging = false
local offset
btn.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
offset = input.Position - btn.AbsolutePosition
end
end)
UIS.InputChanged:Connect(function(input)
if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
btn.Position = UDim2.new(0, input.Position.X - offset.X, 0, input.Position.Y - offset.Y)
end
end)
UIS.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
end
end)
-- toggle plate
btn.MouseButton1Click:Connect(function()
local cam = workspace.CurrentCamera
local p = cam:FindFirstChild("DeltaClientNet")
if p then
p:Destroy()
btn.BackgroundColor3 = Color3.new(1, 0, 1)
else
local plate = Instance.new("Part")
plate.Name = "DeltaClientNet"
plate.Size = Vector3.new(10000, 2, 10000)
plate.CFrame = CFrame.new(0, -10, 0)
plate.Anchored = true
plate.CanCollide = true
plate.Color = Color3.fromRGB(0, 255, 0)
plate.Parent = cam
btn.BackgroundColor3 = Color3.new(0, 1, 0)
end
end)
print("Tiny draggable button starts top-right – drag anywhere!")
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS

Comments
first script sorry if it’s bad