Advertisement
xdJustice29

Untitled

May 5th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. if noclip == true then
  2. noclip = false
  3. NoclipButton.Text = "Noclip: On"
  4. game:GetService('RunService').Stepped:connect(function()
  5. game.Players.LocalPlayer.Character.Torso.CanCollide = noclip
  6. game.Players.LocalPlayer.Character.Head.CanCollide = noclip
  7. game.Players.LocalPlayer.Character.Torso.Changed:connect(function()
  8. game.Players.LocalPlayer.Character.Torso.CanCollide = noclip
  9. game.Players.LocalPlayer.Character.Head.CanCollide = noclip
  10. end)
  11. end)
  12. elseif noclip == false then
  13. noclip = true
  14. NoclipButton.Text = "Noclip: Off"
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement