Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
777
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. function Coins()
  2. local plr = game.Players.LocalPlayer
  3. local plrN = plr.Name
  4. for i,v in pairs(game.Workspace:GetChildren()) do
  5. if v.Name == "Coin1" and on == 1 then
  6. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Handle.CFrame
  7. wait(.2)
  8. end
  9. end
  10. end
  11. function Buttons()
  12. local plr = game.Players.LocalPlayer
  13. local plrN = plr.Name
  14. for i,v in pairs(game.Workspace:GetChildren()) do
  15. if v.Name == "_Minion" and v.PrimaryPart ~= nil and v.PrimaryPart == "HumanoidRootPart" and on == 1 then
  16. wait(.05)
  17. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Chest.button.CFrame
  18. end
  19. end
  20. end
  21. function code()
  22. local plr = game.Players.LocalPlayer
  23. local plrN = plr.Name
  24. while wait() do
  25. Coins()
  26. wait(.5)
  27. Buttons()
  28. wait()
  29. end
  30. end
  31. wait(.1)
  32. on = 1
  33. wait()
  34. code()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement