I'm using this code and it doesn't work!
game.Workspace.Player.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-0.59, 177.93, -32.51))
I'm using this code and it doesn't work!
game.Workspace.Player.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-0.59, 177.93, -32.51))
Your script can be better. The main issue is the conversion of vector3 to cframe. You have 2 ways to fix this:
Option 1: get rid of Vector3. This would be done by modifying your script:
game.Workspace.Player.HumanoidRootPart.CFrame = CFrame.new(-0.59, 177.93, -32.51)
The position would be the same as Vector3, they are just different methods.
Option 2: get rid of CFrame. Your script wouldn't change the CFrame via script, but the Position (which will change the CFrame). Your script:
game.Workspace.Player.HumanoidRootPart.Position = Vector3.new(-0.59, 177.93, -32.51)
I hope this answers your question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
I have specified this in my previous answer to your last question. https://scriptinghelpers.org/questions/105164/why-isnt-the-player-being-teleported