[SOLVED] Make a part's orientation change to fit around the character

The title isn’t really clear because I don’t know how to explain it properly, but here’s what i want:

i want the part to stay like that after I move it to the player

basically when i move it, i use CFrame and it messes with the orientation, so i’ve tried setting it to various parts of the character to see if I can make it look like this, but I can’t get it to work.

my script:

s.Parent = workspace
s.CFrame = player.Character.LowerTorso.CFrame
s.CanCollide = false
s.Orientation = player.Character.HumanoidRootPart.Orientation

s is the variable for the part. here’s what it looks like currently:

3 Likes
s.Parent = workspace
s.CanCollide = false
s.CFrame = player.Character.HumanoidRootPart.CFrame

try this (or try rotating the part 90 degress on the x axis)

1 Like

i tried this and it didn’t work. also rotating it on the x axis did something weird to it so i tested around and found it works on the y axis.

i ended up rotating it by 90 degrees on the y axis and it worked. thank you!
i kept the original code too where i set the cframe and orientation but this is the new code

s.Parent = workspace
s.CFrame = player.Character.LowerTorso.CFrame
s.CanCollide = false
s.Orientation = player.Character.HumanoidRootPart.Orientation + Vector3.new(0,90,0)

Can you turn on the orientation indicator for your asset there and show it to us? You would need to orient it differently depending on which direction it’s looking.

Rotating it by 90 on the y axis has worked every time ive tried it at different directions

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.