Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Reloading/Sounding/Aiming/Animations

Asked by 10 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
User#2 0
10 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 — 10y
Ad
Log in to vote
0
Answered by
Mazux 140
10 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