I tried to make a simple script that makes the Charcter not move on the Y Axis of the Character so its always facing the Camera.
local player = game.Players.LocalPlayer
local Character = player.Character or player.CharacterAdded:Wait()
local RunService = game:GetService("RunService")
RunService.Stepped:Connect(function()
local X = Character.HumanoidRootPart.Orientation.X
local Z = Character.HumanoidRootPart.Orientation.Z
Character.HumanoidRootPart.Orientation = Vector3.new(X, 180, Z)
end)
https://gyazo.com/d7709a3850d9a5459cad8e627f25d13b
You can disable characters automatically rotating by disabling the autorotate property in the humanoid. Also, using CFrame to rotate characters is better as it can be more precise and easier to rotate the whole character rather than just a single part.
could you quickly tell me how cause i tried = false but that doesnt work
Character.Humanoid.AutoRotate = false
This should work, but if it doesn’t I suggest looking into further documentation.
1 Like
Had it on Starterplayer as a Local that was my Mistake
1 Like