Advertisement
noyonnm987741

Untitled

Jun 2nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. local char = game:GetService'Players'.LocalPlayer.Character
  2. function onKeyPress(inputObject, gameProcessedEvent)
  3. if inputObject.KeyCode == Enum.KeyCode.X then
  4. local gun = char:GetChildren()
  5. for _,a in pairs(gun)do
  6. if a:IsA("Tool") then
  7. a.MaxAmmo.Value = 999
  8. a.Ammo.Value = 999
  9. end
  10. end
  11. end
  12. end
  13. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement