Hmm..... I want to make a Game (Not a place) with all places i have, but i can't. My code won't work, even that model can edit and got from a person. I tried all but.. won't work. Help me Guys What part of script is not working.
function onTouched(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then game:GetService("TeleportService"):Teleport(127345959, player) end end script.Parent.Touched:connect(onTouched)
function onTouched(hit) while true do local play = game.Players:GetPlayerFromCharacter(hit.Parent) if player then game:GetService("TeleportService"):Teleport(127345959,player) end end script.Parent.Touched:connect(onTouched)