!! ANY NEW REPLIES WONT BE SEEN I AM DONE WITH THIS POST TY FOR SUPPORT!!
You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I WANNA MAKE A GUN ITS SO HARD FINDING A TUTORIAL THAT COVERS BOTH ANIMATIONS AND WORKING GUN VALUES
What is the issue? Include screenshots / videos if possible!
ITS SO HARD FINDING A TUTORIAL THAT COVERS BOTH ANIMATIONS AND WORKING GUN AND I REALLY REALLY REQUEST HELP.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have found many guns on toolbox that I try remake but they bug and I need help. In addition, I have researched for many tutorials but it will either only show a vid or forum on Animating a gun or Making a gun and usually the animating part is for moon anims.
Summary:
I want help/people who know tutorials on how to make animations for gun tools as well as a good gun. I like the comprehensive gun kit and have been wanting to use it yet I don’t know how. Thank you!
NOTE: I want a 3rd person gun, NOT AN FPS SYSTEM!!
Both systems are literally identical, their only difference is camera position and whether a viewmodel exists or not.
Just play animations on the player.
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local animations = {
["AR_Fire"] = animator:LoadAnimation(script:WaitForChild("AR_Fire")),
["AR_Reload"] = animator:LoadAnimation(script:WaitForChild("AR_Reload"))
}
animations.AR_Fire:Play()
As for camera positioning, you can just set the player into lock first person (stay with me) and change the humanoid’s CameraOffset, and then change the LocalTransparencyModifier of the character.
Alternatively, you can script a custom camera system.
Gun values…? You mean the things you set yourself like damage, firerate etc?
Those values are literally whatever you want.
Just look up reference (or do the hand gestures yourself) and then put in keyframes into the animation editor, usually I only animate the arms to not mess with the other animations.
And whats stopping you from researching how to use it?
All raycast based gun systems just boil down to raycasting from the camera towards the cameras look vector.
If what you’re imagining your third person system to play like is like Fortnite, that’ll work.
If its not, then you have to raycast towards the mouse.
tl;dr, just follow a generic fps tutorial but skip all the steps with viewmodels, then figure out a camera controller. (or just force shift-lock switch on)
Roblox does also have a 3rd person gun system they made, so that’s an option for you to make, too.
sorry i should be more clear. i more meant idk where to start and how to learn how to make the sytem but i guess i just gotta build of a bad vid tutorial and extend of that i was more hoiping somebody had a tutorial or help for a weapon from the comprehensive gun kit but its alg
I have no words dude, something like this at the basic level does not require a massive understanding of programming or VFX. Only advanced things like bullet tracers, realistic recoil, and animations will give you struggle in a more advanced way. The core mechanics of a gun are simple.
Depending on whether or not you want to include gravity, you might be able to just use Raycasting. Fortnite and many other battle royale games use raycasting for many of their weapons, but not for some.
The other alternative for calculating the motion of a bullet is through integration. The most beginner-friendly method is Euler integration, which uses these formulae:
newAcceleration = "accelerative forces as a force vector"
newVelocity = oldVelocity + newAcceleration
newPosition = oldPosition + newVelocity
You can use these to achieve a nice effect where gravity is at play. Verlet integration is another alternative, which results in nicer motion (but slightly less-nice code structure)
EDIT: I would like to mention that it is a VERY good practice to look at models and see how they work; however, as a developer who is triying to learn, I would highly suggest making the core mechanics yourself, before reaching out to the community for the advanced features I mentioned. I believe that you can do this.
Don’t get frustrated. Stay calm and do not be too emotional so you can think clearly.
Get a simple gun model fron the toolbox, see if it works, see HOW it works, and change it to your desires.
Alternatively, search a forum post for the tutorial.
Don’t watch all youtube tutorials as most of them are misleading. Just don’t go for youtube tutorial for the gun system. Focus on a devforum tutorial about how to make gun.
Search any devforum post in your search engine by adding site:devforum.roblox.com to your search query, for example:
on a more serious note, i am more of a modeller and right now still trying to learn scripting (i basically have learnt 4% of what i need) but as you pointed out this is simple so i hoped somebody would link a tutorial. Anyways ty for the support and i wish one day i wont bee dum wif scwiptig
Thanks!