local Players = game:GetService("Players") local player = Players.LocalPlayer local UserInputService = game:GetService("UserInputService") local commands = { "?cmds - Shows command list", "?fly - Toggles flying on/off", "?goto [player] - Teleports to a player", "?fling [player] - Fling a player", "?nofog - Removes fog", "?reset - Resets your character", "?walkfling - Flings you when walking", "?autowalkspeed [number] - Sets your walk speed", "?bang [player] - Bangs a player", "?addfriend [player] - Adds a player as a friend", "?admin [player] - Grants admin privileges", "?unadmin [player] - Revokes admin privileges", "?heal - Heals your character", "?invisible - Makes you invisible", "?visible - Makes you visible", "?jumphigh - Increases jump power", "?speedboost - Increases movement speed", "?noclip - Walk through walls", "?sit - Makes your character sit", "?dance - Makes your character dance", "?spin - Spins your character", "?tpose - Makes your character do a T-pose", "?explode - Creates an explosion around you", "?shrink - Makes your character smaller", "?grow - Makes your character larger", "?freeze - Freezes your character in place", "?teleport - Teleports you randomly", "?smoke - Creates smoke around you", "?fire - Sets you on fire", "?nofall - Prevents fall damage", "?infjump - Allows infinite jumps", "?ghost - Turns you into a ghost", "?unghost - Returns you to normal", "?time [number] - Sets in-game time", "?weather [type] - Changes weather", "?scale [number] - Scales your character", "?setgravity [number] - Sets gravity", "?lowgravity - Reduces gravity", "?highgravity - Increases gravity", "?givesword - Gives a sword", "?givegun - Gives a gun", "?giveshield - Gives a shield", "?smite [player] - Smite a player", "?slap [player] - Slap a player", "?revive [player] - Revives a player", "?banish [player] - Banish a player", "?kick [player] - Kicks a player", "?teleportself - Teleports you to your position", "?spawnitem [itemID] - Spawns an item", "?sethp [number] - Sets your health", "?setteam [teamName] - Sets your team", "?setwalkspeed [number] - Sets your walk speed", "?setjumppower [number] - Sets jump power", "?setfov [number] - Sets field of view", "?rain - Starts rain", "?stoprain - Stops rain", "?snow - Starts snow", "?stopsnow - Stops snow", "?playmusic [assetId] - Plays music", "?stopmusic - Stops all music", "?setbrightness [number] - Sets brightness", "?setfog [distance] - Sets fog distance", "?whisper [player] [message] - Sends a private message", "?announce [message] - Sends a message to all players", "?sitself - Makes you sit", "?resetself - Resets your character", "?draggable - Makes your executor draggable", } local function showCommands() print("Commands available:") for _, command in ipairs(commands) do print(command) end end local flying = false local bodyVelocity local function toggleFly() local character = player.Character if not character then return end local humanoidRootPart = character:FindFirstChild("HumanoidRootPart") if not humanoidRootPart then return end if flying then flying = false if bodyVelocity then bodyVelocity:Destroy() bodyVelocity = nil end else flying = true bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.MaxForce = Vector3.new(4000, 4000, 4000) bodyVelocity.Parent = humanoidRootPart while flying do local direction = Vector3.new(0, 0, 0) if UserInputService:IsKeyDown(Enum.KeyCode.W) then direction = direction + workspace.CurrentCamera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.S) then direction = direction - workspace.CurrentCamera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.A) then direction = direction - workspace.CurrentCamera.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.D) then direction = direction + workspace.CurrentCamera.CFrame.RightVector end local upwardForce = 0 if UserInputService:IsKeyDown(Enum.KeyCode.Space) then upwardForce = 50 elseif UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then upwardForce = -50 end bodyVelocity.Velocity = (direction.Unit * 50) + Vector3.new(0, upwardForce, 0) wait(0.1) end bodyVelocity:Destroy() end end local function gotoPlayer(targetPlayerName) local targetPlayer = Players:FindFirstChild(targetPlayerName) if targetPlayer and targetPlayer.Character then player.Character.HumanoidRootPart.Position = targetPlayer.Character.HumanoidRootPart.Position else print("Player not found.") end end local function flingPlayer(targetPlayerName) local targetPlayer = Players:FindFirstChild(targetPlayerName) if targetPlayer and targetPlayer.Character then local targetHumanoidRootPart = targetPlayer.Character:FindFirstChild("HumanoidRootPart") if targetHumanoidRootPart then targetHumanoidRootPart.Velocity = Vector3.new(math.random(-50, 50), 50, math.random(-50, 50)) end else print("Player not found.") end end local function noFog() workspace.FogEnd = 100000 end local function reset() if player.Character then player.Character:BreakJoints() end end local function walkFling() local character = player.Character if character and character:FindFirstChild("Humanoid") then character.Humanoid.OnRunning:Connect(function(speed) if speed > 0 then character.HumanoidRootPart.Velocity = Vector3.new(math.random(-50, 50), 50, math.random(-50, 50)) end end) end end local function setAutoWalkSpeed(speed) if player.Character and player.Character:FindFirstChild("Humanoid") then player.Character.Humanoid.WalkSpeed = speed end end local function bangPlayer(targetPlayerName) local targetPlayer = Players:FindFirstChild(targetPlayerName) if targetPlayer and targetPlayer.Character then local explosion = Instance.new("Explosion") explosion.Position = targetPlayer.Character.HumanoidRootPart.Position explosion.BlastRadius = 5 explosion.Parent = workspace else print("Player not found.") end end local function addFriend(targetPlayerName) print("Friend request sent to " .. targetPlayerName) end local function adminPlayer(targetPlayerName) print(targetPlayerName .. " is now an admin.") end local function unadminPlayer(targetPlayerName) print(targetPlayerName .. " is no longer an admin.") end -- Command execution player.Chatted:Connect(function(message) local args = message:split(" ") local command = args[1]:lower() if command == "?cmds" then showCommands() elseif command == "?fly" then toggleFly() elseif command == "?goto" then gotoPlayer(args[2]) elseif command == "?fling" then flingPlayer(args[2]) elseif command == "?nofog" then noFog() elseif command == "?reset" then reset() elseif command == "?walkfling" then walkFling() elseif command == "?autowalkspeed" then setAutoWalkSpeed(tonumber(args[2])) elseif command == "?bang" then bangPlayer(args[2]) elseif command == "?addfriend" then addFriend(args[2]) elseif command == "?admin" then adminPlayer(args[2]) elseif command == "?unadmin" then unadminPlayer(args[2]) end end) showCommands()