cd = script.Parent.ClickDetector
cd.MouseClick:connect(function()
a = game.Workspace:GetChildren(Boat)
for i,v in pairs(a) do
if v.Name == "Part" then
for i = 1, 1000 do
v.CFrame = v.CFrame * CFrame.new(0,.5,-.2)
wait(.01)
v.CFrame = v.CFrame * CFrame.new(0,-.5,-.2)
wait(.01)
end
end
end
end)
The script, OnClick, is supposed to make everything in/on the boat move to the left, and slightly move up and down. I've also tried this:
cd.MouseClick:connect(function()
game.Workspace.Boat:GetChildren()
for i,v in pairs() do
for i = 1, 1000 do
v.CFrame = v.CFrame * CFrame.new(0,0,-.2)
wait(.01)
end
end
end)
To the moderator note-- I will make sure to do that next time.

5 comments
Oooh, thanks.
No problem. Test this out. If it does happen to work for you, feel free to bump up my reputation and accept this answer!
So, delete the variable 'a' and in your for loop, put what I put in my answer.
I edited the second thing on the original post. I decided just to have it move foward, because that would be a lot simpler. Would it look like that?
Not exactly, check my updated post.