New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
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 3570 Moderation Voter Administrator Community Moderator
6 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 6 years ago
script.Parent.CFrame=script.Parent.CFrame+(script.Parent.CFrame.lookVector*10)
3
You should accept this answer. :) TheGuyWithAShortName 642 — 6y
Ad

Answer this question