REDPlays

JoJo Part 8

Jan 20th, 2020
4,343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. --//Arrow script
  2.  
  3. local Arrow = script.Parent
  4. local Click = Arrow:WaitForChild("Click")
  5.  
  6. Click.MouseClick:Connect(function(player)
  7.  
  8. local Backpack = player:FindFirstChild("Backpack")
  9. if Backpack then
  10. local Stands = game:GetService("ServerStorage"):WaitForChild("Stands")
  11. if Backpack:FindFirstChild("Stand1") then
  12. local prevStand = workspace:FindFirstChild(player.Name.." Stand")
  13. local prev = Backpack:FindFirstChild("Stand1")
  14. prevStand:Destroy()
  15. prev:Destroy()
  16.  
  17. local Stand = Stands:FindFirstChild("Stand1"):Clone()
  18. Stand.Parent = Backpack
  19. else
  20. local Stand = Stands:FindFirstChild("Stand1"):Clone()
  21. Stand.Parent = Backpack
  22. end
  23.  
  24. Arrow:Destroy()
  25. end
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment