Hello everyone,
I have currently this script client side, which makes the entire character follow the mouse, but the server will make the character flicker a bit when you walk in the opposite direction of your mouse, showing this flicker to all the others players. As if the character was slowly turning every frame to face the direction he is walking.
local function CharFunction()
local MousePos = Mouse:GetWorkspacePosition() -- this is a custom fct giving me the pos of the mouse in the 3D world
local CharPos = Char.PrimaryPart.Position
PrimaryPart.CFrame = CFrame.new(CharPos, Vector3.new(MousePos.X, CharPos.Y, MousePos.Z))
end
RunService:BindToRenderStep("Char", Enum.RenderPriority.Character.Value + 1, CharFunction)
I tried to set the orientation of the character manualy on the server with an heartbeat event, but it didn’t fix my issue. Any ideas on how I could fix this ?
Thx for reading