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

How do I make a dialog that Teleports you to another brick?

So my game is an adventure and you are the main character so you go to the store across the street and theres this guy who poisons you and when he evil laughs how do I make you teleport to another brick or spot in the game?

1 answer

✓ Accepted answer

You can teleport a player by adjusting the CFrame (Coordinate Frame) of their Player's Torso.

Lets say you have a brick in a LocalScript called brickthat you want to move the player to:

brick = workspace.Destination

player = game.Players.LocalPlayer
character = player.Character
torso = character.Torso

torso.CFrame = CFrame.new(brick.Position)

Hope that helps!

1 comment

0

Thank you!

This discussion is preserved as it was. New answers, comments, and votes are closed.