im trying to move a part with cframe, however for the local player the part cframe change is delayed. any help?

local runservice = game:GetService("RunService")
while true do
 runservice.Heartbeat:Wait()

script.Parent.CFrame = CFrame.new(script.Parent.Parent.HumanoidRootPart.position.x,script.Parent.Parent.HumanoidRootPart.position.y+10,script.Parent.Parent.HumanoidRootPart.position.z) 


end

Sorry for the bad coding the reason the cframe x y and z are not variables is because i thought it may slow the script down