Teleport Service not working

Ok so I want to make when a player joins a game they instantly get teleported to another game but its not working

Script

local TeleportService = game:GetService('TeleportService')
local ID = 11149837050


wait(5)
print('hi')
game.Players.PlayerAdded:Connect(function(plr)
	print("started")
	TeleportService:Teleport(ID, plr)
	print("done")
end)

And I have received no errors

Is this a serverscript? If it isn’t, you don’t need the plr thing. Also pretty sure it waits 5 after a second player joins the game.

it is in serverscriptservice
.

Probably because you connected the function after the wait.

New code:

--//Services
local Players = game:GetService("Players")
local TeleportService = game:GetService("TeleportService")

--//Controls
local placeId = 11149837050

--//Functions
Players.PlayerAdded:Connect(function(player)
	print("started")
	TeleportService:Teleport(placeId, player)
	print("done")
end)

It still does not work, i am not sure why, it does not even print anything

Ok I just realized I had it in replicated storage so I tested it now with it in severscript and it gives a new error
image

Publish then test, u cant tp in studio