Third Person FE Gun Script

So I was looking at this free model rifle script from toolbox and wanted to improve some aspects of it. I took some of BlackShibe’s code to use the amazing fastCast module and replicate the bullets, bullet shells, sound, flash and (Head, Torso and Hand following thingy) to all the clients without putting unnecessary pressure on server. Also used the great Spring module for the camera recoil

Mouse look:

Weapon Aiming:

Weapon Firing:

Of course the first person can’t compete with viewmodels as the hands are still attached to the rig. But not making double animations for each gun is a nice plus I guess. The hand shaking will definitely depend on the character running animations.

I’m sure there exists an interpolation formula that would make the left arm movement flawless. Too lazy to figure that out (let me know if you do, pretty please?). I could’ve disabled the motor6d of the left shoulder and weld the left Hand to the gun and return it back to normal while reloading…but hey I’m lazy.

CAUTION: It lacks any functional server security (except damage). Which means any eager enough individual can change the fire rate and mag capacity, range, velocity inside the game as they please. So as you can tell, this isn’t a full on game ready script and more of a learning resource.

Enjoy!

Third Person FE Gun Script.rbxl (85.1 KB)

Excuse me for not rewriting the code in OOP

Edit: In case anyone needs the animations animations.rbxl (30.7 KB)

27 Likes

I was just making a system using FastCast and was running into some difficulty with animations. I’ll be sure to take a look at this later! Bookmarked!

2 Likes

Hey are you open for a commision, If so, I would love to commisiong you!

3 Likes

It’s really great! The guns work in FilteringEnabled and shoot well too. I love how the gun can actually aim up. My favorite part is how it is R15 compatible. I will try this out a little later.

1 Like

The animations don’t seem to work, how can I fix this issue?

1 Like

Gotta upload the animations and replace the animation id’s of the animation files with the ones you uploaded

Alright! I’ll be sure to do that, thank you!

1 Like

Seems like a charm! I’ve waited for years to see this thanks, also is this Server shared so others can see?
EDIT: Does this work for R15 and R6 rigs?

Anyway I could get some help getting this working on a skinned mesh with bones?