Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- spam = false
- GodMode = false
- game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("".."[Admin Cmds Loaded!]", "All")
- Player.Chatted:connect(function(Command)
- function Kill()
- local Target = Command:sub(7)
- game.Players.LocalPlayer.Character.Humanoid.Name = 1
- local l = game.Players.LocalPlayer.Character["1"]:Clone()
- l.Parent = game.Players.LocalPlayer.Character l.Name = "Humanoid"
- wait(0.1)
- game.Players.LocalPlayer.Character["1"]:Destroy()
- game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
- wait(0.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[Target].Character.HumanoidRootPart.CFrame * CFrame.new(-1.5,0,0) wait(0.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[Target].Character.HumanoidRootPart.CFrame * CFrame.new(-1.5,0,0) wait(0.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(10000,0,0)
- end
- function Teleport()
- game.Workspace[Player.Name].HumanoidRootPart.CFrame = game.Workspace[Command:sub(5)].HumanoidRootPart.CFrame
- end
- function Fly()
- repeat wait()
- until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
- local mouse = game.Players.LocalPlayer:GetMouse()
- repeat wait() until mouse
- local plr = game.Players.LocalPlayer
- local torso = plr.Character.Torso
- local flying = true
- local deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 50
- local speed = 0
- function Fly()
- local bg = Instance.new("BodyGyro", torso)
- bg.P = 9e4
- bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- bg.cframe = torso.CFrame
- local bv = Instance.new("BodyVelocity", torso)
- bv.velocity = Vector3.new(0,0.1,0)
- bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
- repeat wait()
- plr.Character.Humanoid.PlatformStand = true
- if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
- speed = speed+.5+(speed/maxspeed)
- if speed > maxspeed then
- speed = maxspeed
- end
- elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
- speed = speed-1
- if speed < 0 then
- speed = 0
- end
- end
- if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
- elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- else
- bv.velocity = Vector3.new(0,0.1,0)
- end
- bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
- until not flying
- ctrl = {f = 0, b = 0, l = 0, r = 0}
- lastctrl = {f = 0, b = 0, l = 0, r = 0}
- speed = 0
- bg:Destroy()
- bv:Destroy()
- plr.Character.Humanoid.PlatformStand = false
- end
- mouse.KeyDown:connect(function(key)
- if key:lower() == "e" then
- if flying then flying = false
- else
- flying = true
- Fly()
- end
- elseif key:lower() == "w" then
- ctrl.f = 1
- elseif key:lower() == "s" then
- ctrl.b = -1
- elseif key:lower() == "a" then
- ctrl.l = -1
- elseif key:lower() == "d" then
- ctrl.r = 1
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key:lower() == "w" then
- ctrl.f = 0
- elseif key:lower() == "s" then
- ctrl.b = 0
- elseif key:lower() == "a" then
- ctrl.l = 0
- elseif key:lower() == "d" then
- ctrl.r = 0
- end
- end)
- Fly()
- end
- function God()
- if GodMode == true then
- game.Players.LocalPlayer.Character.Humanoid.Name = 1
- local l = game.Players.LocalPlayer.Character["1"]:Clone()
- l.Parent = game.Players.LocalPlayer.Character
- l.Name = "Humanoid"
- wait(0.1)
- game.Players.LocalPlayer.Character["1"]:Destroy()
- game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
- game.Players.LocalPlayer.Character.Animate.Disabled = true
- wait(0.1)
- game.Players.LocalPlayer.Character.Animate.Disabled = false
- game.Players.LocalPlayer.Character.Humanoid.DisplayDistanceType = "None"
- end
- end
- function Spam()
- local Action = game.Players:GetPlayers()
- for i = 1,#Action do
- Action[i].Chatted:connect(function(Message)
- if spam == true then
- game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("".."["..Action[i].Name.."]".." "..Message, "All")
- end
- end)
- end
- end
- function Speed()
- game.Workspace[Player.Name].Humanoid.WalkSpeed = Command:sub(11)
- end
- function Jump()
- game.Workspace[Player.Name].Humanoid.JumpPower = Command:sub(10)
- end
- function Invisible()
- Local = game:GetService('Players').LocalPlayer
- Char = Local.Character
- touched,tpdback = false, false
- Local.CharacterAdded:connect(function(char)
- if script.Disabled ~= true then
- wait(.25)
- loc = Char.HumanoidRootPart.Position
- Char:MoveTo(box.Position + Vector3.new(0,.5,0))
- end
- end)
- game:GetService('UserInputService').InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.Equals then
- if script.Disabled ~= true then
- script.Disabled = true
- print('you may re-execute')
- end
- end
- end)
- box = Instance.new('Part',workspace)
- box.Anchored = true
- box.CanCollide = true
- box.Size = Vector3.new(10,1,10)
- box.Position = Vector3.new(0,10000,0)
- box.Touched:connect(function(part)
- if (part.Parent.Name == Local.Name) then
- if touched == false then
- touched = true
- function apply()
- if script.Disabled ~= true then
- no = Char.HumanoidRootPart:Clone()
- wait(.25)
- Char.HumanoidRootPart:Destroy()
- no.Parent = Char
- Char:MoveTo(loc)
- touched = false
- end end
- if Char then
- apply()
- end
- end
- end
- end)
- repeat wait() until Char
- loc = Char.HumanoidRootPart.Position
- Char:MoveTo(box.Position + Vector3.new(0,.5,0))
- end
- if Command:sub(1,5) == "-Kill" then
- Kill()
- elseif Command:sub(1,5) == "-kill" then
- Kill()
- elseif Command:sub(1,5) == "-KILL" then
- Kill()
- elseif Command:sub(1,9) == "-Speed Me" then
- Speed()
- elseif Command:sub(1,9) == "-Speed me" then
- Speed()
- elseif Command:sub(1,9) == "-speed me" then
- Speed()
- elseif Command:sub(1,9) == "-SPEED Me" then
- Speed()
- elseif Command:sub(1,8) == "-Jump Me" then
- Jump()
- elseif Command:sub(1,8) == "-Jump me" then
- Jump()
- elseif Command:sub(1,8) == "-jump me" then
- Jump()
- elseif Command:sub(1,8) == "-JUMP ME" then
- Jump()
- elseif Command:sub(1,8) == "-Invs Me" then
- Invisible()
- elseif Command:sub(1,8) == "-Invs me" then
- Invisible()
- elseif Command:sub(1,8) == "-invs me" then
- Invisible()
- elseif Command:sub(1,8) == "-INVS ME" then
- Invisible()
- elseif Command:sub(1,3) == "-Tp" then
- Teleport()
- elseif Command:sub(1,3) == "-tp" then
- Teleport()
- elseif Command:sub(1,3) == "-TP" then
- Teleport()
- elseif Command:sub(1,7) == "-Fly Me" then
- Fly()
- elseif Command:sub(1,7) == "-Fly me" then
- Fly()
- elseif Command:sub(1,7) == "-fly me" then
- Fly()
- elseif Command:sub(1,7) == "-FLY ME" then
- Fly()
- elseif Command:sub(1,7) == "-God Me" then
- GodMode = true
- God()
- elseif Command:sub(1,7) == "-God me" then
- GodMode = true
- God()
- elseif Command:sub(1,7) == "-god me" then
- GodMode = true
- God()
- elseif Command:sub(1,7) == "-GOD ME" then
- GodMode = true
- God()
- elseif Command:sub(1,7) == "-Spam" then
- Spam()
- spam = not spam
- elseif Command:sub(1,5) == "-spam" then
- Spam()
- spam = not spam
- elseif Command:sub(1,5) == "-SPAM" then
- Spam()
- spam = not spam
- end
- end)
- game.Workspace[Player.Name].Humanoid.Name = 1
- local l = game.Workspace[Player.Name]["1"]:Clone()
- l.Parent = game.Workspace[Player.Name]
- l.Name = "Humanoid"
- wait(0.1)
- game.Workspace[Player.Name]["1"]:Destroy()
- game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
- game.Workspace[Player.Name].Animate.Disabled = true
- wait(0.1)
- game.Workspace[Player.Name].Animate.Disabled = false
- game.Workspace[Player.Name].Humanoid.DisplayDistanceType = "None"
Add Comment
Please, Sign In to add comment