I am trying to make a game that teleports people to a different Place(Game) using a pad, if they are in the pad when the timer hits 0 it tp’s them if they are not nothing happens, how can I make them go specifically to the same server/
Timer:
t = 10
while true do
wait()
script.Parent.Main.Disabled = false
wait(0.3)
script.Parent.Main.Disabled = true
end
Main:
local Players = game:GetService("Players")
local part = script.Parent
local function onTouched(part)
local player = Players:GetPlayerFromCharacter(part.Parent)
if not player then return end
game:GetService('TeleportService'):Teleport(7799618344, player)
end
part.Touched:Connect(onTouched)
The timer works but Main says
and I am unsure how to make them all go to a different server.
(I may be doing this all wrong but it’s my first time trying to make a teleport like this please help)