Advertisement
koolusername

noclip

Jan 26th, 2020
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. noclip = false
  2. changingstate = false
  3. statechosen = 0
  4. b = false
  5.  
  6. plr = game.Players.LocalPlayer
  7. mouse = plr:GetMouse()
  8. --[[
  9. plr.Character.Head.Transparency = 0.45
  10. plr.Character.Torso.Transparency = 0.45
  11. plr.Character["Left Leg"].Transparency = 0.45
  12. plr.Character["Right Leg"].Transparency = 0.45
  13. plr.Character["Left Arm"].Transparency = 0.45
  14. plr.Character["Right Arm"].Transparency = 0.45
  15. --]]
  16. lplayer = plr
  17.  
  18.  
  19.  
  20. noclip = false
  21. game:GetService('RunService').Stepped:connect(function()
  22. if noclip then
  23.  
  24. if lplayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  25. lplayer.Character.Head.CanCollide = false
  26. lplayer.Character.Torso.CanCollide = false
  27. lplayer.Character["Left Leg"].CanCollide = false
  28. lplayer.Character["Right Leg"].CanCollide = false
  29.  
  30. else
  31. lplayer.Character.Humanoid:ChangeState(11)
  32. end
  33. if changingstate then
  34. lplayer.Character.Humanoid:ChangeState(statechosen)
  35. end
  36. end
  37. end)
  38. plr = game.Players.LocalPlayer
  39. mouse = plr:GetMouse()
  40. mouse.KeyDown:connect(function(key)
  41.  
  42. if key == "q" then
  43. noclip = not noclip
  44. if noclip == true then
  45. plr.Character.Head.Transparency = 0.45
  46. plr.Character.Torso.Transparency = 0.45
  47. plr.Character["Left Leg"].Transparency = 0.45
  48. plr.Character["Right Leg"].Transparency = 0.45
  49. plr.Character["Left Arm"].Transparency = 0.45
  50. plr.Character["Right Arm"].Transparency = 0.45
  51. end
  52. if noclip == false then
  53. plr.Character.Head.Transparency = 0
  54. plr.Character.Torso.Transparency = 0
  55. plr.Character["Left Leg"].Transparency = 0
  56. plr.Character["Right Leg"].Transparency = 0
  57. plr.Character["Left Arm"].Transparency = 0
  58. plr.Character["Right Arm"].Transparency = 0
  59. end
  60. --game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  61. end
  62. end)
  63. game:GetService("StarterGui"):SetCore("SendNotification",{
  64. Title = "Noclip",
  65. Text = "Press Q to toggle noclip",
  66. Duration = 6,
  67. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement