Strict Player Rotation

  1. What do you want to achieve?
    Hi, I’m making an climbing system and when the player touches an part (Climb trigger) I want to place the player facing the wall touched, I already finished the other stuff.

  2. What is the issue? Include screenshots / videos if possible!
    At the moment of placing player’s rotation to the triggering part, this one does rotates, but most of times, it ends up with the player stuck inside the wall, I need something to avoid free-rotating

(The player would jump from an unknown rotation grade)

--PLAYER TOUCHES AN CLIMB PART, TRIGGER CLIMB
			PlayerHumanoid.AutoRotate = false
			PlayerHumanoidRootPart.Anchored = true

			PlayerHumanoidRootPart.CFrame = CFrame.new(Vector3.new(PlayerHumanoidRootPart.Position.X, ClimbPart.Position.Y, PlayerHumanoidRootPart.Position.Z), ClimbPart.Position) -- Player conserves his X and Z coordinate, but Y and Rotation is set at climbpart's

My general idea to fix this is making the player rotate to the climbing part, but having pre-definides rotatios for each side of the part, but i dont know too much math or if roblox haves functions to accomplish this.

1 Like

I think try adding a transparent part that cannot collide with the player and making it so that the player spawns on that part, not just the climbing thing.

The Wall has 2 parts, wall itself and the climbpart trigger, climbpart has no collision and i didn’t make it transparent for debugging reasons, player gets stuck at the wall itself, not climbpart

1 Like

thought on a new way to make this, using 4 different parts and rotating them into the wall grabbing, using it’s cframe to set player on new position

1 Like

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