So in my game I have moving parts, I was using parts to be c-framed on the server but i am finding that lag really affects them (causes juddering),

while true do
    wait()
    for i= 1, 50 do
    script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,0,-0.3)
    wait()
 end

	for i= 1, 50 do
		script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,0,0.3)
		wait()
	end
end

This script doesn't work when the part is inserted locally, How can i move a local part?

3 comments

0

Is the part being inserted by a server script, a local script, or is the part already there when the game runs?

0

The part using this script is being inserted locally, this script no longer works now it is a local part.

0

Do not ask subjective questions.