Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Original Creator: GForcebot aka GForcebit
- --Fixer/Editer: JJK83
- local plr = game.Players.LocalPlayer.Character
- local input = game:GetService("UserInputService")
- input.InputBegan:connect(function()
- if input:IsKeyDown(Enum.KeyCode.Q)then
- if plr.Parent == game.Workspace then
- plr.Parent = game.Workspace.Camera
- print("Ghost Mode Activated")
- if plr:FindFirstChildWhichIsA("Humanoid") then
- plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Running,false)
- plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
- plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
- plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
- plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
- plr:FindFirstChildWhichIsA("Humanoid"):ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
- end
- else
- plr.Parent = game.Workspace
- print("Ghost Mode Deactivated")
- if plr:FindFirstChildWhichIsA("Humanoid") then
- plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Running,true)
- plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
- plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
- plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
- plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement