✓ Accepted answer
I'm assuming this is a script located inside a part.
Also make sure to use a regular script, not a localscript.
You forgot to tell it which player to teleport
local Part = script.Parent
local CD = Part.ClickDetector
local GameId = 454058684
CD.MouseClick:connect(function(player)
game:GetService('TeleportService'):Teleport(GameId,player)
end)
We added player argument
CD.MouseClick:connect(function(player)
then told it who to teleport him/her
game:GetService('TeleportService'):Teleport(GameId,player)
Hoped this helped.
2 comments
It's called an argument
Thanks for correcting me.