(I am not sure what to name this topic)
So I have a part that rotates and I want another part (Marker) to constantly appear in front of the TopSurface of the first part.
But the thing is, the marker only appears in front of the FrontSurface and I am not sure how to change it.
Video: robloxapp-20210724-1406556_Trim.wmv (205.3 KB)
I tried messing around with the CFrame and Angles but failed. I also searched around but I couldn’t find anything related, unless I didn’t search good enough.
Here is my code:
while wait() do
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(.08, 0, 0) -- Rotates the main part
script.Parent.Parent.Marker.CFrame = script.Parent.CFrame + (script.Parent.CFrame.LookVector * 5) -- Positions the marker
end