local TeleportService = game:GetService("TeleportService") local gameID = (Place Id)
function onTouched(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then TeleportService:Teleport(gameID, player) end end
script.Parent.Touched:connect(onTouched)
This is my script. Now how can I change it so that when Clicked teleports you to another game. I would appreciate if somebody would help me. Thanks.

2 comments
sorry but which one do you want, when touched(.Touched) or when clicked (ClickDetector)
It even says in the title...