i want to teleport players to a public server when the lives value is = to 1, not a reserved server like a private server. i want it to teleport the player to a second game within the same universe using a code like this but i dont know how to approach it
local LivesFld = game.ReplicatedStorage.LiveEvents
local Debounce = {}
LivesFld.DiedFired.OnServerEvent:Connect(function(Player)
if Debounce[Player] then return end
Debounce[Player] = true
local Lives = Player:WaitForChild("SystemFolder"):WaitForChild("Lives")
Lives.Value -= 1
Player.CharacterAdded:Connect(function()
if Lives.Value == 1 then
--TP PLAYER TO PUBLIC SERVER WITHIN SAME UNIVERS
spawn(function()
end)
end
end)
wait(.25)
Debounce[Player] = nil
end)