Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Some help with gun damage?

ball = script.Parent
damage = math.random(20,30)
local hitt = false

I do not understand what 20,30 is for and how to increase/reduce it to a certain point.

For example, I want the gun to have 35 damage.

If you could help me out, that would be awesome!

1 answer

✓ Accepted answer

The 20, 30 makes it that it choose a random number between 20 and 30. To make the gun damage 35, simply replace math.random(20,30) with35

2 comments

0

Thank you, you helped me out a lot!

0

No problem!

This discussion is preserved as it was. New answers, comments, and votes are closed.