Attention. I had used Google Translator , as do not know much English
What's wrong with the code to teleport to another place?
local TeleportService = game:GetService("TeleportService")
local level1Id = 241113670
function onClicked()
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
TeleportService:Teleport(level1Id, player)
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
