DEXLTH

Untitled

Oct 2nd, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. local Pene = game.Players.LocalPlayer
  2. Toggle.MouseButton1Down:connect(function()
  3. if (Workspace[Pene.Name]) == true do
  4. if Status.Text == "off" then
  5. Clipon = true
  6. Status.Text = "on"
  7. Stepped = game:GetService("RunService").Stepped:Connect(function()
  8. if not Clipon == false then
  9. for a, b in pairs(Workspace:GetChildren()) do
  10. if game.Players.LocalPlayer.Name == game.Players.LocalPlayer.Name then
  11. for i, v in pairs(Workspace[Pene.Name]:GetChildren()) do
  12. if v:IsA("BasePart") then
  13. v.CanCollide = false
  14. end end end end
  15. else
  16. Stepped:Disconnect()
  17. end
  18. end)
  19. elseif Status.Text == "on" then
  20. Clipon = false
  21. Status.Text = "off"
  22. end
  23. else
  24. print'broken'
  25. end
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment