I am trying to make a game where you search for codes it is called Code Hunters II and it is opening July 14th, 2017 so time is running out. This is a main thing I need done. I placed the script in the part that I want the people to touch to teleport to and script.Name is the id I used to teleport to the map. Please help me the script is below I do not know the bug. It was working a few weeks ago and then suddenly it no longer worked! I want to make then teleport to another game btw.
local s = game:service("TeleportService")
local id = script.Name
script.Parent.Touched:Connect(function(onTouched)
s:Teleport(id)
end)

2 comments
Code Hunters II opens on my birthday :D
Awesome, happy early birthday! :-D