Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do i make this cframe script go faster/ not fall behind?

Asked by 4 years ago

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

Answer this question