I probably screwed it up when trying to make an anonymous function but its crucial that it have a click detector in it as well.
here is the code..
local mult_ID = 34534 script.Parent.Clicked:connect(function(OnClick) local player = game.Players:GetPlayerFromCharacter(OnClick.Parent) if player then game:GetService("TeleportService"):Teleport(mult_ID, player) end end)
The mistake is on line 2.
Is this a ClickDetector, because Clicked isn't a valid member.
local mult_ID = 34534 script.Parent.MouseClick:connect(function(player)--onClick is the Player therefore... if player then game:GetService("TeleportService"):Teleport(mult_ID, player) end end)