Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a moving part a local script for my intro?

Asked by 5 years ago

I'm making an intro where the player enters and the player's camera is following a moving boat, it was all going good until I realized people who will spawn in will see an empty boat moving around, so I wanted to know how I can make the boat move with a local script. This is my script for the boat to move:

while true do
wait(5)
for i= 1, 300 do
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,0,.1)
end
for i= 1, 300 do
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,0,.1)
end
end

Answer this question