(and properties entries)
Im having a few problems with your FPS Framework. I keep getting an error saying âAttempt to index nil with âDestroyââ
Nevermind i found out why it was happening. I accidentally made âWeaponNameâ a string
TLDR: aim offset doesnât work when I paste it into weapon offset. It gets stuck at idle position Didnât change a single code.
After properly reading the tutorial and scrolling through the replies, iâve come to believe that i am somewhat capable in changing the offsets. As you can see at idle the gun is not in my face. Iâve tried doing the same for the aim offset but unfortunately it didnât quite work for me even though I left everything untouched. Lemme elaborate:
First I went through trial and error to find decent looking offsets. Then I copied both offsets from the workplace viewmodel during testing and replaced the m4a4 offsets with them in edit mode. The idle offset worked but when I tried to aim, the gun just stopped swaying. No ADS. It was stuck at the idle coords. Until I typed in the command again which got it working again. It breaks everytime I when unequip it.
Iâd really like to use these offsets as they would make adding and adjusting different guns much easier. So Iâd really appreciate the help!
Itâs not supposed to work with that viewmodel? I was hoping to learn how to get things working properly first and make my own viewmodel later, but I guess that is too much to ask for from such an excellent tutorial. Well anyways, thank you for your time! Iâm sure you are a busy guy and have much better use of your time other than replying to an ultra noob like me, so once again, thank you!
It is, but youâre copying values youâre not even editing. look at the command.
I was supposed to use game.ReplicatedStorage.weapons.m4a4.offsets instead of workspace.viewmodels.offsets ⌠of course. Found that out after looking at the tutorial photos. Maybe if I started learning scripting before yesterday I wouldâve known better. You were literally spoon feeding me the answers and I couldnât get it. Thanks a bunch for helping this noob out. People like me get better looking at good code and constantly annoying devs over problems they create themselves. Thamks again
Pretty badass tutorial you got there
Great tutorial:
I have hundreds of open source gun models in my inventory for free if anyone needs them to keep working on a FPS framework:
This is really great, except for the fact when I do the Motor6d code, it moves the arms to the weapons instead of staying relative. Any ideas on how to fix this?
Could you provide more detail in PMs?
So Iâve gone through the whole thing, great tutorial btw, but I completely forget where to change the values for offsets and such
(you need to reupload animations)
the offset values are inside the weaponâs âoffsetsâ folder
Iâm having an issue where the weapon pops in for a frame unanimated before playing the equip animation. I tried adding a check for whether the gun was equipped, but it still updated while it was unanimated.
Where do I place this? You didnt mention where
ctrl+shift+f in the open source place
fixed it:
Once youâre done, letâs do some more lerping in the update() function:
It says
attempt to multiply a Vector3 with an incompatible value type or nil
on line
self.springs.fire:shove(Vector3.new(0.03, 0, 0) * self.deltaTime * 60)
I tried printing self.deltaTime and it prints nil
heres the other code. I placed it in :update()
local sway = self.springs.sway:update(deltaTime)
local walkCycle = self.springs.walkCycle:update(deltaTime)
local recoil = self.springs.fire:update(deltaTime)
self.camera.CFrame = self.camera.CFrame * CFrame.Angles(recoil.x,recoil.y,recoil.z)
set self.deltaTime to the deltatime in the update function
What did you use to animate the viewmodel?
moon animation suite and blender