Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When I CFrame a player from a server script the client doesn't get rotated. Why?

Asked by 3 years ago

I'm trying to teleport and rotate a player by setting its CFrame. However, when I try doing it, the server successfully rotates the player but on the client (and only for the player that was rotated) it seems to have no effect, causing the player to look like they are walking backwards/walking sideways depending on what orientation they were teleported from.

Since I was making a basic walk animation I wanted to replace the clone of the player with the real player using this code:

sheriffClone.Humanoid.MoveToFinished:Wait()
sheriffCharacter:SetPrimaryPartCFrame(sheriffClone:GetPrimaryPartCFrame())
opponentCharacter:SetPrimaryPartCFrame(opponentClone:GetPrimaryPartCFrame())
sheriffClone:Destroy()
opponentClone:Destroy()
0
try setting the CFrame of the PrimaryPart instead of the function to see if anything changes, I've heard its actually better than the function anyways ArtFoundation 255 — 3y
0
I tried but it still didn't work. Thanks anyway. second_120 5 — 3y

Answer this question