I'm trying to make a script where if a Player clicked on a part(TeleDoor), it'd teleport them to another place:
game.Workspace.TeleDoor.onClicked.ClickDetector(
game:GetService("TeleportService"):Teleport(154300059,
game.Players.LocalPlayer.Character)
)
I think this script is wrong, but then again, I don't because it doesn't have a red line under it... Help?

2 comments
You're forgetting to index the ClickDetector's
MouseClickevent (the connection line)Actually, I thought that it was a mistake so I changed it to Click Detector. I originally had MouseClick lol