BINO2002

Untitled

Oct 16th, 2019
744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2.  
  3. local character = game.Players.LocalPlayer.Character
  4. local rootpart = character.HumanoidRootPart
  5.  
  6. local capacity = player.Capacity.Value
  7. local candy = player.Candy.Value
  8.  
  9. for i,v in pairs (game.Players.LocalPlayer:GetDescendants()) do
  10. if v:IsA("Tool") then
  11. v.Parent = game.Players.LocalPlayer.Character
  12. end
  13. end
  14.  
  15. for i,v in pairs (game.Workspace.CandySpawns:GetDescendants()) do
  16. if v:IsA("MeshPart") then
  17. wait()
  18. rootpart.CFrame = v.CFrame
  19. wait()
  20. rootpart.CFrame = game.Workspace.Interaction.SellPad.SellPart.CFrame
  21. end
  22. end
Add Comment
Please, Sign In to add comment