#Barrel pointing the wrong way from cframe.lookat

4 messages · Page 1 of 1 (latest)

vast abyss
#
    wait(0.01)
    local target = randomPlayer()
    if target then
        local targetPos = target.HumanoidRootPart.Position
        local distVector = targetPos - origin
        local direction = distVector.Unit
        part.Barrel.Position = origin
        part.Barrel.CFrame = CFrame.lookAt(part.Barrel.Position, targetPos)
    end            
end```
stiff crane
#

can you send a video as to what the bug looks like

#

because from reading this, it looks perfectly fine to me

paper hamlet
#

or just send the full script maybe