How can I make a Pad that teleports everyone to the same every 10 seconds[Solved]

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 image

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)

1 Like

You aren’t passing the player value into the teleport thingy

So like this?

game:GetService('TeleportService'):Teleport(player, 7799618344)
game:GetService('TeleportService'):Teleport(7799618344, player)

its the other way around

image

what is the game you are trying to teleport to?

A place that I created(it public and has Third party TP’s)

So both places have the 3rd party tps enabled?

yes they are I just double checked too

Nevermind Fixed thanks a lot for helping me with this.