replic8

Untitled

Jun 28th, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local function dropHats()
  2. local localPlayer = game:GetService("Players").LocalPlayer
  3. if localPlayer and localPlayer.Character then
  4. for _, obj in pairs(localPlayer.Character:GetChildren()) do
  5. if obj:IsA("Accoutrement") then
  6. obj.Parent = game.Workspace
  7. end
  8. end
  9. end
  10. end
  11.  
  12. game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  13. if not gameProcessedEvent then
  14. if inputObject.KeyCode == Enum.KeyCode.Equals then
  15. dropHats()
  16. end
  17. end
  18. end)
Add Comment
Please, Sign In to add comment