Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local char = game:GetService'Players'.LocalPlayer.Character
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.X then
- local gun = char:GetChildren()
- for _,a in pairs(gun)do
- if a:IsA("Tool") then
- a.MaxAmmo.Value = 999
- a.Ammo.Value = 999
- end
- end
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement