Ad
Log in to vote
-1

Reloading/Sounding/Aiming/Animations

Asked by 7 years ago

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

2 answers

Log in to vote
1
Answered by
Everesty 1001 Moderation Voter
7 years ago

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.

0
For Animation Editor Plugin which I have, I'd I use it and save it? Roboy5857 20 — 7y
Ad
Log in to vote
0
Answered by
Mazux 140
7 years ago

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.

Answer this question