Advertisement
GForcebit

Ghost script?

May 5th, 2018
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. --Original Creator: GForcebot aka GForcebit
  2. --Fixer/Editer: JJK83
  3. local plr = game.Players.LocalPlayer.Character
  4. local input = game:GetService("UserInputService")
  5. input.InputBegan:connect(function()
  6. if input:IsKeyDown(Enum.KeyCode.Q)then
  7. if plr.Parent == game.Workspace then
  8. plr.Parent = game.Workspace.Camera
  9. print("Ghost Mode Activated")
  10. if plr:FindFirstChildWhichIsA("Humanoid") then
  11. plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Running,false)
  12. plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
  13. plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
  14. plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
  15. plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
  16. plr:FindFirstChildWhichIsA("Humanoid"):ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
  17. end
  18. else
  19. plr.Parent = game.Workspace
  20. print("Ghost Mode Deactivated")
  21. if plr:FindFirstChildWhichIsA("Humanoid") then
  22. plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Running,true)
  23. plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
  24. plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
  25. plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
  26. plr:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
  27. end
  28. end
  29. end
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement