Advertisement
Jays-Gaming_Sp0t

drop item script serverscriptservice

Nov 24th, 2020
1,792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService('ReplicatedStorage')
  2.  
  3.  
  4.  
  5. local dropEvent = ReplicatedStorage:WaitForChild('DropEvent')
  6.  
  7.  
  8.  
  9. dropEvent.OnServerEvent:Connect(function(player)
  10.  
  11. local playerModel = game.Workspace:FindFirstChild(player.Name)
  12.  
  13. if playerModel then
  14.  
  15. local tool = playerModel:FindFirstChildWhichIsA('Tool')
  16.  
  17. if tool then
  18.  
  19. tool.Parent = game.Workspace
  20.  
  21. end
  22.  
  23. end
  24.  
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement