Roblox Studio Tutorials - August 5, 2021

How to Make a Place Teleporter


Buzzy Beth


  • today i’m going to show you how you can teleport in between places in your game
  • so i’ve already made this little pad and attached a script to it, we’re going to take a look at that script right now
  • so we have a touched event right here and we have just some other variables and then if you find a humanoid then we get teleport service the playe rservice slash the player and then we go and we teleport right here
  • this line we do not need then once we’ve done this script we can go over to the places over here
  • you’ll have to publish your game in order for this to work but you’re going to asset manager places and if you don’t have a place you’re going to add a new place i’ve already added aplace so i’m just going to openthen i can you can see my place right here right click it copy id to clipboard and put it right here
  • once that is done you’re going to want to publish to roblox and then in order for this to work we’re going to have to go into the live game
  • so i’ll see you there in a second. so now i’m in game you should see me in here and i’m going to step onto the pad i’m going to wait a little bit and there we go that is how you make a place teleporter!
	local character = hit.Parent
	local humanoid = character:FindFirstChildWhichIsA("Humanoid")
	local ServerStorage = game:GetService("ServerStorage")
	local teleportData = {}
	if humanoid then
		local TeleportService = game:GetService("TeleportService")
		local player = game:service("Players"):GetPlayerFromCharacter(hit.Parent)
		TeleportService:Teleport(ID, player, teleportData) --change "ID" to your product ID