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

How to teleport a player through a script?

1 answer

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.