Advertisement
omg12

Untitled

Jan 27th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. --Make sure this script is on StarterPack
  2.  
  3.  
  4. local function dropHats()
  5. local localPlayer = game:GetService("Players").LocalPlayer
  6. if localPlayer and localPlayer.Character then
  7. for _, obj in pairs(localPlayer.Character:GetChildren()) do
  8. if obj:IsA("Accoutrement") then
  9. obj.Parent = game.Workspace
  10. end
  11. end
  12. end
  13. end
  14.  
  15. game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  16. if not gameProcessedEvent then
  17. if inputObject.KeyCode == Enum.KeyCode.Equals then
  18. dropHats()
  19. end
  20. end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement