YT0674
(justa)
#1
I want a Part ALWAYS positioned in the right upper corner in front of the player.
Like this:

This is my current script but it doesn’t really work if I start turning around.
while task.wait() do
Part.Position = HumanoidRootPart.Position + HumanoidRootPart.CFrame.LookVector * 5 + Vector3.new(6,1,-3.5)
end
For some reason I just can’t figure this out.
1 Like
Can you clarify what the issue is? The code you provided looks fine.
1 Like
YT0674
(justa)
#3
Of couse.
Here is a demonstration:
2 Likes
You should add the rightvector of the humanoidrootpart multiplied by some amount instead of a static Vector3.
something like this:
Part.Position = HumanoidRootPart.Position + HumanoidRootPart.CFrame.LookVector * 5 + HumanoidRootPart.CFrame.RightVector * 5
2 Likes
YT0674
(justa)
#5
Yes, that works perfectly fine. Thank you very much!
2 Likes
system
(system)
Closed
#6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.