The script is a script not a local script and I placed the script in a part.
Script is Below:
function onTouched(hit)
character = hit.Parent
if character then
game:GetService("TeleportService"):Teleport(720436745, character)
script.Parent.BrickColor=BrickColor.new('Bright red')
wait(0.1)
script.Parent.BrickColor=BrickColor.new('Parsley green')
script.Parent.PointLight.Enabled = true
wait(5)
script.Parent.PointLight.Enabled = false
end
end
script.Parent.Touched:Connect(onTouched)

3 comments
I recommend that you check if the hit.Parent is actually a player by using 'if character.Humanoid == true then'. Also, make sure that your place is part of a game I checked your place and it said, "Sorry, this place is currently closed to visitors," which indicates that it isn't part of a game..
The game place "720436745" is closed, that's why the teleport doesn't work, try making your game active. If I'm right an upvote or correct answer would be appreciated!
You can't teleport a player's character: it requires the player itself, AKA the client.