So whenever I run the script, the fish, (Who is the one moving) juts sinks to the bottom of the tank and stays there. Any help?
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

3 comments
where does "i" get used?
Is the Fish anchored?
If it were anchored it wouldn't fall to the bottom.