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

Movement by CFrame.lookVector

Asked by
RubenKan 3615 Moderation Voter Administrator Community Moderator
10 years ago

i want to make a part that flies around the map, and when i make it rotates, it will fly in the rotated direction, but when i do

script.Parent.CFrame = script.Parent.CFrame + script.Parent.CFrame.lookVector

then it will not move

1 answer

Log in to vote
9
Answered by 10 years ago
script.Parent.CFrame=script.Parent.CFrame+(script.Parent.CFrame.lookVector*10)
3
You should accept this answer. :) TheGuyWithAShortName 673 — 10y
Ad

Answer this question