Im making a sorta edited fe gun kit for myself, and i’m trying to figure out how can i make this work. I use a AimPos part and apply a offset to this script:
local Offset = CFrame.new(0,0,0)
if Tool:FindFirstChild("GunServer") and Tool:FindFirstChild("GunClient") and Tool:FindFirstChild("Setting") and Tool:FindFirstChild("AimPos") then
local AimPos: BasePart = Tool:FindFirstChild("AimPos")
local Client = Tool:FindFirstChild("GunClient")
local Func = Client:FindFirstChild("IsAiming")
if Func and Func:IsA("BindableFunction") then
local IsAiming = Func:Invoke()
if IsAiming then
Offset = AimPos.CFrame:ToObjectSpace(Tool.PrimaryPart.CFrame)
end
end
end
AimCF = AimCF:Lerp(Offset, .05)
rightShoulder.C0 = rightShoulder.C0:lerp((camCF * CFrame.new(1, -1, -0.5)):toObjectSpace(torso.CFrame):inverse() * CFrame.Angles(0, math.pi/2, 0), updateSpeed) * WalkCFrame * AimCF
leftShoulder.C0 = leftShoulder.C0:lerp((camCF * CFrame.new(-1, -1, -0.5)):toObjectSpace(torso.CFrame):inverse() * CFrame.Angles(0, -math.pi/2, 0), updateSpeed) * WalkCFrame:Inverse() * AimCF
The problem is, it puts the arms all the way down, but i can still see the gun itself. What am i doing wrong?
and do not say that i should switch gun kits, im not doing that