[ Need Help ] Server side Mouse controlled Humanoid

I need help with a server sided orientation mouse controlled humanoid.
As in the video below it perfectly works fine when I anchor the clients humanoid root part on their screen, but it doesn’t server wide and on the other players screen (yes I tried anchoring it on the server as well, same thing) I would appreciate if anyone can give me some help, thank you!
(Not sharing script sadly, because I have a game with 30k members and id rather not get my scripts stolen)


Thank you! - CloudYugen.

You can use a remote event, something like this:

--client script
local remoteEvent = --the remote event instance
game.Players.LocalPlayer:GetMouse():GetPropertyChangedSignal("Hit"):Connect(function()
    remoteEvent:FireServer(player:GetMouse("Hit").Position)
end)

--server script
local remoteEvent = --the remote event instance, again
remoteEvent.OnServerEvent:Connect(function(player, hit)
    local character = player.Character or player.CharacterAdded:Wait()
    local humanoidRootPart = character:FindFirstChild("Humanoid")
    spawn(function()
        while humanoidRootPart do
            humanoidRootPart.CFrame = humanoidRootPart.CFrame:Lerp(CFrame.lookAt(humanoidRootPart.Position, hit), 0.1)
            task.wait()
        end
    end)
end)

Works… Somewhat…


Results with this.