How to do E To Teleport

Hello Fellow Developers,

recently, i maded a E to teleport script system. and i wanted to show you, if you are beginner developer. you can view the scripts down in this topic.

** TUTORIAL**

  • Enter 2 Parts in Workspace.
  • Change the color how you want.
  • enter the ProximityPrompt in the teleporters.
  • enter a script in proximityPrompt.

Here is the script:

local ProximityPrompt = script.Parent
script.Parent.Triggered:Connect(function(player)
	player.Character.HumanoidRootPart.Position = workspace.Destination.Position
end)

do the same thing with the Destination.

  • for beginners who want to make an RP, and make a morph room, this is very useful. so you can teleport, instead of walking.

Topic is closing on:

2022-02-02T23:00:00Z2022-02-20T11:45:00Z

10 Likes

here is the example:

5 Likes

Why set up a variable but don’t use it?

You can either remove the first line or write ProximityPrompt.Triggered:connect(function(player) to the second line, otherwise it makes no sense, because the first line is pointless.

6 Likes

oh, thanks for saying that. i didn’t noticed that.

5 Likes

Good point. By the way, you spelled wrong proximity prompt.

2 Likes

sorry. i’m not good at grammer in english. :confused:

1 Like

I have spelled it wrong, not you :slight_smile:

1 Like

oh, didn’t noticed he replied to you. :smiley: