How do I change rotation of the player?

How do I implement a 90 degree rotation of the player? I tried to make it using Tween and HRP, but I had a strange bug where the player turned on the client, but not on the server (although the script is server-side

1 Like

Can you show us your script please?

1 Like
script.Parent.PromptButtonHoldBegan:Connect(function(plr)
	local Pos1 = script.Parent.Parent.Parent.Parent.ElevatorPart.Ma.Position.X + 0.1
	local Pos2 = script.Parent.Parent.Parent.Parent.ElevatorPart.Ma.Position.Z + 3 
	plr.Character.Humanoid:MoveTo(Vector3.new(Pos1, 19.133, Pos2))
	plr.Character:WaitForChild("Humanoid").MoveToFinished:Connect(function()
		local tweenInfo = TweenInfo.new(0.2)
		local tween = game:GetService("TweenService"):Create(plr.Character.PrimaryPart, tweenInfo, {Orientation = Vector3.new(0, 0, 0)})
		tween:Play()
	end)
end)
1 Like

Is this a local script?

adfwedsfsefdsefafd

1 Like

It’s not, as stated here:

Chars

1 Like

Oh my bad sorry

This text will be blurred

1 Like