Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I need a teleport to other game script! Can someone help? [closed]

Asked by 4 years ago

Hello, i was startng to make the game with trip type, everything was going good because i watched tutorial, but i got stuck on the last part of the lobby. I couldn't be teleported to another game: trip game. Can someone send me a script? Thanks for advice.

0
This is not a request site, please give us what you have already made. 6zk8 95 — 4y
0
Please, i need the script. bowowowowosso -5 — 4y
0
Also i alreday made the look, some of the scripts, i just need the script for teleporting to other game. bowowowowosso -5 — 4y

Closed as Not Constructive by Block_manvn, killerbrenden, ihatecars100, and JakyeRU

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

3 answers

Log in to vote
1
Answered by 4 years ago

****Firstly, this isn't any request site.****

This would be an example teleporting an player to another game. It uses the teleport service enter your place ID and the player object you wish to teleport. Remember this service dosen't work in studio only in the Application. Here should be some helpful links regarding to the service and the :Teleport.

Click here to learn more about the Teleport Service

Click here to learn more about the :Teleport

Going to remind you do not use this as an request site.

local TeleportService = game:GetService('TeleportService')
local PlayerObject = game.Players['YourName']
local PlaceId = 00000000
TeleportService:Teleport(PlaceId,PlayerObject)
Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

If you are talking about going to another GAME and not in the lobby itself. then write this script: (also do not take scriptinghelpers.org as a request site)

local TPs = game:GetService("TeleportService")
local place = 123 -- insert place ID
-- also choose what the players should do to get teleported i used the touched event
local part = game.Workspace.Part

part.Touched:Connect(function(hit)
if hit.Parent == hit.Parent:FindFirstChildWhichIsA("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(plr)
end
TPs:Teleport(place, player) 

end)
Log in to vote
0
Answered by
JesseSong 3916 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

Although, this is not a request site. Make sure you publish the game.

To learn about teleportservice click here

local Players = game:GetService("Players")
local TeleportService = game:GetService("TeleportService")

local placeId = 0 -- replace here
local userId = 1 -- replace with player's userId

-- find the player
local player = Players:GetPlayerByUserId(userId)

-- teleport the player
TeleportService:Teleport(placeId, player)