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

Why i can't change the CFrame of the player's character?

Asked by 3 years ago

https://gist.github.com/Kim123LP/84453552bc5f2596699a5f840cc3928f at line 24 nothing happens, why?

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Try using set primary part cframe instead.

Here is a very useful link: SetPrimaryPartCFrame

Here, if you want to set the character's CFrame, it should look something like this:

--after you have defined the character and everything, done all the if statements, once you want to move the character:

character:SetPrimaryPartCFrame(CFrame.new(85.5613, 15, -496.286)


If that doesn't work try adding a vector3.new infront of the new script above, like you did in your original script. You shouldn't need to though, i just haven't checked.

If this has helped you, please accept this answer :) thanks

Ad

Answer this question