Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Best way to constantly update Orientation / CFrame of Character from the client to the server [?]

#Introduction:# So as we all know, the client does not replicate to the server. Many have said that the properties of the character will but for a fact, I know editing the orientation or the cframe of the character will not replicate.

So, I'm make one of those games where you have a list of abilities. These abilities can be held by holding a key and what I'd like to do is somehow edit the orientation on the client so that it will replicate to the server (so that other people know what the person is looking at)

#Question:# So I've tried the most simple ways similar to this one:

while UIS:IsKeyDown(Key) do
	wait()
	Character.PrimaryPart.CFrame = CFrame.new(Character.PrimaryPart.Pos, MouseHit.Pos)
end

I've also wanted to try Body Forces but I was unable to get them to function properly.

So my question is, is there a way to edit the Orientation / CFrame of the character so that it replicates to the server?

Thanks for any feedback

#Edit:# I've tried to use BodyPosition Objects and BodyGyro and unfortunately the results are similar to the script above. Still no luck.

1 answer

✓ Accepted answer

if anyone's viewing this thread,

This turned out to be the issue: https://devforum.roblox.com/t/cframe-not-replicating-while-character-is-anchored/247019/6

the thread says:

When you anchor the character you take away the clients ability to manipulate character movement, because the client no longer have network ownership over their character.

op had his character's humanoidrootpart anchored so it wasn't allowing him to make changes on the server.

he managed to get it working with bodymovers.

This discussion is preserved as it was. New answers, comments, and votes are closed.