when auto a player is walking their character faces the direction they are moving, how would I make the rotation speed faster?
here is a video of what im talking about,
I want the player going from left to right and left to forward and front to back, and so on, to move that direction faster
You have to change the AutoRotate property of the Humanoid object on the player’s character. local player = game.Players.LocalPlayer
local humanoid = player.Character:WaitForChild(“Humanoid”)
humanoid.AutoRotate = true
Unfortunately, this property doesn’t let you specify the rotation speed.
There does seem to be something strange about the way your character moves so please let us know if you have any custom moving scripts.
If you do post any script you are using to move the player.
Another question: do you have items welded to the player that don’t have the Massless property as true (checked off in the box)? Extra Parts attached to a Humanoid change the Roblox physics and can affect player movement.
I did use a custom shiftlock, it might be whats making the movement kinda wierd
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
--Variables:
local plr = game:GetService("Players").LocalPlayer
local char = script.Parent
local hum = char:WaitForChild("Humanoid")
local root = hum.RootPart -- The HumanoidRootPart
local autorotate = Instance.new("BoolValue", char) -- the character faces the camera
autorotate.Name = "autorotate"
autorotate.Value = false
local lockrotate = Instance.new("BoolValue", char) -- keeps the character from rotating when true
lockrotate.Name = "lockrotate"
lockrotate.Value = false
--Toggle Function:
function shiftLock(active) --Toggle shift.lock function
if active then
hum.CameraOffset = Vector3.new(0,3,0) -- default offset is (1.75,0,0)
RunService:BindToRenderStep("ShiftLock", Enum.RenderPriority.Character.Value, function()
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter --Set the mouse to center every frame.
if autorotate.Value == true then
if lockrotate == false then
hum.AutoRotate = false
else
hum.AutoRotate = true
end
else
if lockrotate.Value == false then
hum.AutoRotate = false --Disable the automatic rotation since we are the ones setting it.
local _, y = workspace.CurrentCamera.CFrame.Rotation:ToEulerAnglesYXZ() --Get the angles of the camera
root.CFrame = CFrame.new(root.Position) * CFrame.Angles(0,y,0) --Set the root part to the camera's rotation
end
end
end)
else
hum.AutoRotate = true --Let the humanoid handle the camera rotations again.
hum.CameraOffset = Vector3.new(0,0,0) --Move the camera back to normal.
RunService:UnbindFromRenderStep("ShiftLock") -- Allow mouse to move freely.
UserInputService.MouseBehavior = Enum.MouseBehavior.Default -- Let the mouse move freely
end
end
--Disable and Enable:
shiftLock(true) -- Toggle shift lock
--shiftLock(false) --Toggle off shift Lock
for i, v in pairs(game.Players.LocalPlayer.PlayerGui:GetDescendants()) do
if v:IsA("Frame") and v.Name == "BackFrame" then
v:GetPropertyChangedSignal("Visible"):Connect(function()
if v.Visible == true then
shiftLock(false)
else
shiftLock(true)
end
end)
end
end```