I have tried many different scripts but none work! This is what I have.
endlocal TeleportService = game:GetService('TeleportService') local gameID = 4723545494
function onTouched (hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then TeleportService:Teleport(gameID, player) end
script.parent.touched:Connect(onTouched)
Can anybody help me? This is my first time posting on here.

1 comment
What is the error?