Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I want to make a part move locally so lag isn't caused by players?

This is my script and it works in a regular script but not in a local script? can anybody help me

fish = script.Parent

while true do
for i=1,20 do
fish.CFrame = fish.CFrame + Vector3.new(0.1,0,0)
wait(0.1)
end
for i=1,31 do
fish.CFrame = fish.CFrame * CFrame.fromEulerAnglesXYZ(0,0.1,0)
wait(0.01)
end
for i=1,20 do
fish.CFrame = fish.CFrame - Vector3.new(0.1,0,0)
wait(0.1)
end
for i=1,31 do
fish.CFrame = fish.CFrame * CFrame.fromEulerAnglesXYZ(0,-0.1,0)
wait(0.01)
end
end

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.