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
Is the part being inserted by a server script, a local script, or is the part already there when the game runs?
The part using this script is being inserted locally, this script no longer works now it is a local part.
Do not ask subjective questions.