local player = game.Players.LocalPlayer
local RunService = game:GetService("RunService")
local mouse = player:GetMouse()
local flying = false
local speedOn = false
local noclip = false
local godMode = false
local teleportOn = false
local flySpeed = 80
local normalSpeed = 16
local boostSpeed = 50
local function getChar()
return player.Character or player.CharacterAdded:Wait()
end
-- GUI
local gui = Instance.new("ScreenGui")
gui.Name = "Admin"
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0,220,0,320)
frame.Position = UDim2.new(1,-230,1,-340)
frame.BackgroundColor3 = Color3.fromRGB(0,0,0)
frame.BorderColor3 = Color3.new(1,1,1)
frame.BorderSizePixel = 2
frame.Active = true
frame.Draggable = true
local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1,0,0,35)
title.BackgroundTransparency = 1
title.Text = "🔥ADMIN🔥 (by spongbo8409)"
title.TextColor3 = Color3.new(1,1,1)
title.TextScaled = true
title.Font = Enum.Font.SourceSansBold
local function makeButton(text, yPos)
local btn = Instance.new("TextButton", frame)
btn.Size = UDim2.new(1,-20,0,35)
btn.Position = UDim2.new(0,10,0,yPos)
btn.Text = text
btn.BackgroundColor3 = Color3.fromRGB(30,30,30)
btn.TextColor3 = Color3.new(1,1,1)
btn.TextScaled = true
return btn
end
local flyBtn = makeButton("FLY OFF", 45)
local speedBtn = makeButton("SPEED OFF", 85)
local noclipBtn = makeButton("NOCLIP OFF", 125)
local godBtn = makeButton("GOD OFF", 165)
local tpBtn = makeButton("CLICK TP OFF", 205)
-- FLY
RunService.Heartbeat:Connect(function()
if flying then
local char = getChar()
local hrp = char:FindFirstChild("HumanoidRootPart")
if hrp then
local cam = workspace.CurrentCamera
hrp.AssemblyLinearVelocity = cam.CFrame.LookVector * flySpeed
end
end
end)
-- NOCLIP
RunService.Stepped:Connect(function()
local char = getChar()
for _, part in pairs(char:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = not noclip
end
end
end)
-- GOD MODE
RunService.Heartbeat:Connect(function()
if godMode then
local char = getChar()
local humanoid = char:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.Health = humanoid.MaxHealth
end
end
end)
-- CLICK TELEPORT
mouse.Button1Down:Connect(function()
if teleportOn then
local char = getChar()
local hrp = char:FindFirstChild("HumanoidRootPart")
if hrp and mouse.Hit then
hrp.CFrame = CFrame.new(mouse.Hit.Position + Vector3.new(0,3,0))
end
end
end)
-- BUTTONS
flyBtn.MouseButton1Click:Connect(function()
flying = not flying
flyBtn.Text = flying and "FLY ON" or "FLY OFF"
end)
speedBtn.MouseButton1Click:Connect(function()
local humanoid = getChar():FindFirstChildOfClass("Humanoid")
if humanoid then
speedOn = not speedOn
humanoid.WalkSpeed = speedOn and boostSpeed or normalSpeed
speedBtn.Text = speedOn and "SPEED ON" or "SPEED OFF"
end
end)
noclipBtn.MouseButton1Click:Connect(function()
noclip = not noclip
noclipBtn.Text = noclip and "NOCLIP ON" or "NOCLIP OFF"
end)
godBtn.MouseButton1Click:Connect(function()
godMode = not godMode
godBtn.Text = godMode and "GOD ON" or "GOD OFF"
end)
tpBtn.MouseButton1Click:Connect(function()
teleportOn = not teleportOn
tpBtn.Text = teleportOn and "CLICK TP ON" or "CLICK TP OFF"
end)
-- CHAT COMMANDS
player.Chatted:Connect(function(msg)
msg = string.lower(msg)
if msg == ":fly" then flying = true flyBtn.Text = "FLY ON" end
if msg == ":unfly" then flying = false flyBtn.Text = "FLY OFF" end
if msg == ":god" then godMode = true godBtn.Text = "GOD ON" end
if msg == ":ungod" then godMode = false godBtn.Text = "GOD OFF" end
if msg == ":noclip" then noclip = true noclipBtn.Text = "NOCLIP ON" end
if msg == ":clip" then noclip = false noclipBtn.Text = "NOCLIP OFF" end
if msg == ":speed" then
local hum = getChar():FindFirstChildOfClass("Humanoid")
if hum then hum.WalkSpeed = boostSpeed speedBtn.Text="SPEED ON" end
end
if msg == ":unspeed" then
local hum = getChar():FindFirstChildOfClass("Humanoid")
if hum then hum.WalkSpeed = normalSpeed speedBtn.Text="SPEED OFF" end
end
if msg == ":reset" then
getChar():BreakJoints()
end
if string.sub(msg,1,6) == ":jump " then
local power = tonumber(string.sub(msg,7))
local hum = getChar():FindFirstChildOfClass("Humanoid")
if hum and power then hum.JumpPower = power end
end
-- TP TO PLAYER
if string.sub(msg,1,4) == ":tp " then
local target = string.sub(msg,5)
for _, plr in pairs(game.Players:GetPlayers()) do
if string.lower(plr.Name) == target then
if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
local myHrp = getChar():FindFirstChild("HumanoidRootPart")
if myHrp then
myHrp.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-3)
end
end
end
end
end
end)