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

Reloading/Sounding/Aiming/Animations

I have trouble making a gun Reloading/Sounding/Aiming/Animation. How do I script that?

2 answers

✓ Accepted answer

Well that's four different things, but I'll try.

Reloading - Just reset the number of Ammo remaining

Sounding - Play the right sound using the Play method of sounds

Aiming - Well you can use the Hit of the Mouse to find where they're pointing, then you can use Raycasting to.. yeah. You can also just send an object going in that direction using something like BodyVelocity.

Animation - Well, there's an Animation Editor Plugin, so you can use that.

1 comment

0

For Animation Editor Plugin which I have, I'd I use it and save it?

Roblox are releasing the new animation plugin, however, Raycasting is a great method for aiming, and positioning your sound inside the barrel will cause it to have a radius, which is great.

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