-- GUI Script (LocalScript in StarterPlayerScripts)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
-- Remote references
local function getRemote(name)
return game:GetService("ReplicatedStorage")
:WaitForChild("Packages")
:WaitForChild("_Index")
:WaitForChild("sleitnick_typed-remote@0.3.0")
:WaitForChild("typed-remote")
:WaitForChild(name)
end
-- State
local autoClickEnabled = false
local autoRebirthEnabled = false
local clickInterval = 0.1 -- seconds
local rebirthInterval = 30 -- seconds
local lastClick = 0
local lastRebirth = 0
-- Build GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CheatGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = LocalPlayer.PlayerGui
local main = Instance.new("Frame")
main.Size = UDim2.new(0, 280, 0, 280)
main.Position = UDim2.new(0, 20, 0.3, 0)
main.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
main.BorderSizePixel = 0
main.Active = true
main.Draggable = true
main.Parent = screenGui
Instance.new("UICorner", main).CornerRadius = UDim.new(0, 10)
-- Title
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, 0, 0, 36)
title.BackgroundColor3 = Color3.fromRGB(50, 50, 200)
title.TextColor3 = Color3.new(1,1,1)
title.Font = Enum.Font.GothamBold
title.TextSize = 16
title.Text = "⚡ Auto GUI - made by @mr_opensourced"
title.BorderSizePixel = 0
title.Parent = main
Instance.new("UICorner", title).CornerRadius = UDim.new(0, 10)
local function makeLabel(parent, text, y)
local l = Instance.new("TextLabel")
l.Size = UDim2.new(1, -20, 0, 20)
l.Position = UDim2.new(0, 10, 0, y)
l.BackgroundTransparency = 1
l.TextColor3 = Color3.fromRGB(200, 200, 200)
l.Font = Enum.Font.Gotham
l.TextSize = 13
l.TextXAlignment = Enum.TextXAlignment.Left
l.Text = text
l.Parent = parent
return l
end
local function makeToggle(parent, labelText, y, callback)
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(1, -20, 0, 32)
btn.Position = UDim2.new(0, 10, 0, y)
btn.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
btn.TextColor3 = Color3.new(1,1,1)
btn.Font = Enum.Font.GothamBold
btn.TextSize = 13
btn.Text = "● " .. labelText .. ": OFF"
btn.BorderSizePixel = 0
btn.Parent = parent
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)
local state = false
btn.MouseButton1Click:Connect(function()
state = not state
btn.Text = (state and "● " or "● ") .. labelText .. ": " .. (state and "ON" or "OFF")
btn.BackgroundColor3 = state and Color3.fromRGB(50, 180, 80) or Color3.fromRGB(80, 80, 80)
callback(state)
end)
return btn
end
local function makeInput(parent, placeholder, y, default, callback)
local box = Instance.new("TextBox")
box.Size = UDim2.new(1, -20, 0, 28)
box.Position = UDim2.new(0, 10, 0, y)
box.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
box.TextColor3 = Color3.new(1,1,1)
box.PlaceholderText = placeholder
box.Text = tostring(default)
box.Font = Enum.Font.Gotham
box.TextSize = 13
box.BorderSizePixel = 0
box.Parent = parent
Instance.new("UICorner", box).CornerRadius = UDim.new(0, 6)
box.FocusLost:Connect(function()
local val = tonumber(box.Text)
if val then callback(val)
else box.Text = tostring(default) end
end)
return box
end
-- === AUTO CLICKER ===
makeLabel(main, "AUTO CLICKER", 44)
makeToggle(main, "Auto Click", 66, function(on)
autoClickEnabled = on
end)
makeLabel(main, "Interval (seconds):", 104)
makeInput(main, "e.g. 0.1", 122, clickInterval, function(v)
clickInterval = math.max(0.05, v)
end)
-- === AUTO REBIRTH ===
makeLabel(main, "AUTO REBIRTH", 162)
makeToggle(main, "Auto Rebirth", 184, function(on)
autoRebirthEnabled = on
end)
makeLabel(main, "Rebirth every (seconds):", 222)
makeInput(main, "e.g. 30", 240, rebirthInterval, function(v)
rebirthInterval = math.max(1, v)
end)
-- === Main Loop ===
RunService.Heartbeat:Connect(function()
local now = tick()
if autoClickEnabled then
if (now - lastClick) >= clickInterval then
lastClick = now
pcall(function()
getRemote("WobbleClick"):InvokeServer()
end)
end
end
if autoRebirthEnabled then
if (now - lastRebirth) >= rebirthInterval then
lastRebirth = now
pcall(function()
getRemote("RequestRebirth"):InvokeServer()
end)
end
end
end)
Comments
No comments yet
Be the first to share your thoughts!