AwesomeMrBird

Murder Mystery 2 Roblox Coin Grabbed Script [Season 1]

Jul 7th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. while true do
  2. wait()
  3. local children = game.Workspace:GetChildren()
  4. for _, child in pairs(children) do
  5. for _, child in pairs(child:GetChildren()) do
  6. table.insert(children, child)
  7. end
  8.  
  9. if child:IsA("BasePart") and child.Name == "Coin_Server" then
  10. wait(1) --Remove this line for instant coins(laggy)
  11. child.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  12. end
  13. end
  14. end
Add Comment
Please, Sign In to add comment