Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i make a TeleportService? [closed]

Asked by 10 years ago

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)

Neonridex

I don't know what tag to add. Lol

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?