I’ve encountered a bug in thienbao’s FE Gun Kit, where GunFirePoint1 isn’t found by the GunClient. But the bug is SO weird, it only appears on not all weapons, bug can appear in the Viewmodel or the actual weapon(more often).
local cframe = (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 and CFrame.new(VMHandleToFire:FindFirstChild("GunFirePoint"..CurrentFireMode).WorldPosition--[[here]], Position) or CFrame.new(HandleToFire:FindFirstChild("GunFirePoint"..CurrentFireMode).WorldPosition--[[here]], Position)
I’ll be very glad for any help! Or if you know some other kits development of which supported by this moment, that’ll be even more helpful!
Basically, it’s not looking for GunFirePoint, but GunFirePoint followed by the current fire mode. Here’s an example of what this could return
local cfm = "Sigma"
print("GunFirePoint"..cfm) -- prints "GunFirePointSigma"
Perhaps VMHandleToFire doesn’t contain “GunFirePoint”, but “GunFirePointCool” or “GunFirePointZoom” etc etc etc
One possible cause for this is CurrentFireMode being set to nil. This would make it try to find a child in VMHandleToFire called “GunFirePoint” despite it not existing
I don’t have thienbao2109’s FE Gun Kit but if I have time later today I’ll check it out
It exists in the spot it checks, and the names of the attachment and prompt for searching are 1 to 1. I actually found a pretty rough fix to this: just put in the line above
task.wait(0.05)
That worked for me, but that fix is awful. Can I fix this some other way?
Edit: it’s depended on the render speed, so if the model of the gun is not too optimized, it’ll make that error happen