So basically, I'm making a gun. When you're out of bullets and you reload, the bullet value is equal to the maximum amount of bullets. However, even though it does do the animation and stuff, it doesn't refill your bullets. There's no errors either. Any help?
function onKeyPress(actionName, userInputState, inputObject)
if userInputState == Enum.UserInputState.Begin and Reloading == false then
Reloading = true
ReloadSound:Play()
PlayAnimation:FireServer(ReloadAnimation)
wait(3)
Bullets.Value = MaxBullets.Value
Reloading = false
end
end
game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.R)
The code above is the reloading segment.

2 comments
Try : Bullets.Value = Bullets.Value + MaxBullets.Value
I've tried it before. It wont work.