#Gun ADS (Aim down sight) not working properly

18 messages · Page 1 of 1 (latest)

sharp rock
#

dont tween

glass sparrow
sharp rock
#

yes

glass sparrow
#
runService.RenderStepped:Connect(function()
    if currentViewmodel and currentViewmodel.PrimaryPart then
        updateLaserDot()
        updateCameraPosition()
        if not aiming then
            camera[currentViewmodel.Name]:SetPrimaryPartCFrame(camera.CFrame * CFrame.new(-1, -2, -1.5) * CFrame.Angles(0, 0, 0))
        end

        -- Aiming mode handling
        if aiming then
            local offset = currentViewmodel.AimPart.CFrame:ToObjectSpace(currentViewmodel.PrimaryPart.CFrame)
            aimCF = aimCF:Lerp(offset, 1)
        else
            local offset = CFrame.new()
            aimCF = aimCF:Lerp(offset, 1)
        end
    end
end)
#

thats the aimpart

glass sparrow
#

what should it be set to

sharp rock
#

tinker with it

#

try .1

#

whatever alpha helps you achieve the aim speed you need

glass sparrow
#

also its not transitioning

#

its straight teleports

#

im setting the viewmodel as a child of the camera

#

ive seen some people set it in workspace

#

whichs better