Teleport, but without a pad

Hello devs!

I need help with a problem I’m having. I’m working on a game that first starts off with a cutscene, which i have successfully made work, however my problem is that i want to make it, so that the player gets teleported to a certain location after the cutscene ends without the use of a typical teleport part. Sort of automatically. I can’t find any solution and my attempts have not worked out.

Scripting is overall not my strong side so any help would be appreciated!
(if i made anything unclear or you need some more explaining to understand what i mean please let me know!)


I found the solution, thank you for your answers they were really helpful!<3

local character = game.Players.LocalPlayer.Character
-- if this is run on a serverscript, use the appropriate player parameter, this is for localscript only
-- here goes your code
character:WaitForChild("HumanoidRootPart").Position = Vector3.new(x, y, z)

if that’s what you’re looking for.

Nitpicking:

This won’t work with custom rigs that don’t have their character’s model’s PrimaryPart named HumanoidRootPart.

I’d suggest using:

local char = path/to/mdoel

char.PrimaryPart.Position = vector3

Arguably better:

local char = path/to/model

char:MoveTo(vector3)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.