I tried this format but it doesn't even connect to the function? Any ideas?
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
print("connected")
end)
I tried this format but it doesn't even connect to the function? Any ideas?
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
print("connected")
end)
I hope this can help:
local function clicked(player)
print("Connected to".. player.Name)
end
script.Parent.ClickDetector.MouseClicked:Connect(clicked)
(Hasn't been tested)
This didn't work. Not sure why. No error was shown in the output, but also no print.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
The script is inside a part, or a GUI?
Part