Hello fellow developers, I’ve recently come across a game that looked nice and I wanted to challenge myself to make something like it. I want to make a lobby sort of thing, you join and you click a join button that will teleport you to the arena where you pick a character and you also have points/money that also saves. I’ve looked at yt tutorials but I cannot find the right one.
teleport script to other place with button is here:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local button = script.Parent:WaitForChild("TextButton")
local targetPlaceID = 8675100730 --your place ID
local function onButtonActivated()
game:GetService("TeleportService"):Teleport(targetPlaceID,player)
end
button.Activated:Connect(onButtonActivated)
I have a question, if I own the game the player is teleported to, will the amount of people playing rise or no? Since the game is a lobby but then the real game is another one. If not, do you know how I can do this?
I’m not sure what your asking but I pretty much mean, the game the player joins will be the lobby and then they teleport if they click the button, would the lobby game get another player active if I own the actual game with everything?