When the character moves, the script updates the position of the bodyposition so that it follows the Attachment, the problem is that the “Follow” seems to be incorrect, since it leaves the offset/path
Here is the script!
local WeldAtt = Instance.new("Attachment", Char.HumanoidRootPart)
WeldAtt.Name = "WelldATT"
WeldAtt.Position = Char.HumanoidRootPart.CFrame * CFrame.new(3, 3 - 3.4, 7).Position
local CamHolder = Instance.new("Part", Char)
CamHolder.CFrame = WeldAtt.CFrame * CFrame.new(0,0,0)
CamHolder.Size = Vector3.new(1,1,1)
CamHolder.CanCollide = false
local BP = Instance.new("BodyPosition", CamHolder)
BP.D = 900
BP.P = 8500
RunSDis = RunS.RenderStepped:Connect(function(dt)
onMouseMove() --ignore this
BP.Position = WeldAtt.WorldCFrame.Position
end)
Try to use “AlingPosition” but the problem is the same, even worse
;v;