Advertisement
TheNadie

Untitled

Feb 16th, 2019
3,840
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Co = workspace.Coins:GetChildren()
  2. plr = game:GetService("Players").LocalPlayer.Character
  3. p = Instance.new("Part")
  4. p.CFrame = plr.HumanoidRootPart.CFrame
  5. _G.k = true --To stop change to false
  6.  
  7. while _G.k do
  8. for index, child in pairs(Co) do
  9. if child:IsA("MeshPart") and child.Name ~= "Coin" or child.Name ~= "Rupee" then
  10. plr:MoveTo(child.Position)
  11. wait(0.1)
  12. end
  13. end
  14. end
  15. plr:MoveTo(p.Position)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement