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.
****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)
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)
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)
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?