local part = script.Parent
local click = part["ClickDetector"]
cnnct = click.MouseClick:connect(function(player)
-- So we can disconnect, instead of using a debounce.
if player.PlayerGui:findFirstChild('Tele') then
-- Make sure it's even there.
cnnct:disconnect()
-- You aren't using it again, so just disconnect it.
local dir = player.PlayerGui.Tele.Slot.Datteledoe
for i = dir.BackgroundTransparency, 1, .1 do
-- start, stop, increment
dir.BackgroundTransparency = i
wait()
end
dir.Visible = false
end
end)