Player model alignment issues

Hello Roblox developers! When I was making the game I came across a problem. How to rotate the player model so that it is turned to the center point of the sphere? I have already tried many methods such as changing the CFrame of HumanoidRootPart and wallwalk scripts, I really need your help because I can’t figure it out. The screenshot below are how it should be

here is a 2D view

Have you tried editing the Pivot of your character Model?

Models have a property called a Pivot where ROBLOX thinks the actual model is in space.
You can find the Edit Pivot button under the model tab.
image

image
^ The characters’ Pivot is aligned with the center vertex of the cylinder.

image

^ Since the pivot is aligned with the CENTER vertex of the cylinder, I can rotate the character relative to that pivot.

image
image

Hope this helps.

Hi, thanks for the answer! but that’s not what i meant, i don’t need to change it in the studio, i need to do it right in the game with script or other thing, i need the player to stand exactly relative to the sphere

1 Like

My apologies!

You could still mimic the method I just said by using the WorldPivot property that Models have, then set its’ pivot to your spheres’ CFrame:

local Sphere = nil -- Path to your sphere!
local Character = nil -- Path to your character Model!

Character.WorldPivot = Sphere.CFrame -- Sets' the Characters' WorldPivot property to the spheres' CFrame.