Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
4

Movement by CFrame.lookVector

Asked by
RubenKan 3473 Moderation Voter Administrator Community Moderator
5 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 5 years ago
script.Parent.CFrame=script.Parent.CFrame+(script.Parent.CFrame.lookVector*10)
3
You should accept this answer. :) TheGuyWithAShortName 616 — 5y
Ad

Answer this question