I want to create a game but I don't know how can I script an elevator that teleports you to another game when 20 seconds has passed. (And the people can't join to the elevator if it's full) Thank you for helping me.
TeleportService is a start, and eventually check how many players that can be there. https://developer.roblox.com/en-us/api-reference/class/TeleportService
local tp = game:GetService("TeleportService") local gameid = 00000000 -- Put The ID of the other game local time = 20 -- Time until Teleport
script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then local chr = hit.Parent else if hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then local chr = hit.Parent.Parent end end local plr = game.Players:GetPlayerFromCharacter(chr) wait(20) tp:Teleport(gameid,plr) end)