PivotTo/SetPrimaryPartCFrame broken?


Why does it PivotTo/SetPrimaryPartCFrame and then come back? I have no anti cheat in my game either…

Victim.Character:SetPrimaryPartCFrame(CFrame.new(game.Workspace.JailBase.CFrame.Position.X,game.Workspace.JailBase.CFrame.Position.Y, game.Workspace.JailBase.CFrame.Position.Z ))

need more of the script and more of what your actually trying to achieve

Also if I am understanding right it seems the other humanoid maybe reseting the cframe

try setting that humanoid to PlatformStand then set the cframe right after

1 Like

Is this run in a LocalScript?

If it is you need to use remote events or remote functions to run the code as other players characters positions can only be set in a server script.

3 Likes

I have figured it out, sorry about that. It needed a wait to : moveto which I forgot. Sorry once again. @mongoos_ee @Nyonic