How can I make a character stay in place as if anchored in the air without anchoring it?

So basically, I want to have my character be anchored in the air, whilst being rotated from a LocalScript, looking at the mouse using this script:

Connection = runService.Heartbeat:Connect(function()
	if hold and Equipped then
		Root.CFrame = CFrame.new(Root.Position, Root.Position + mouse.Hit.lookVector)
	end
end)

However, the rotation won’t be replicated to the server if the character is anchored.

I’ve tried creating a recent character position variable, and keep updating the position along with the orientation with the script, but that made the player’s camera bug out and make the character litterally fly around.

How can I create something similar to having the player being anchored, so that the rotation from the script gets replicated to the server?

it wont be replicated regardless if they are anchored or not. you are doing this in a local script, so it only changes the client, not the server. you will need to use something like a remote event to do the CFrame changes.

Bruh, all things with Character can be done on client side. WalkSpeed, JumpPower, Position etc. Just test it out. How do you think exploiters can teleport when they work on client script?

2 Likes

Wait so I should fire a remote event to the server litterally every single frame which is loaded and cause massive la- nvm it worked.

(R0mAAn is correct about what he said btw. However is the Root is anchored, I heard the network ownership is set to auto so yea)