Hi,
I have a simple imageGui script that is intended to print the clicker's name when he or she clicks the button. However it does not print anything when clicked.
local player = game:GetService("Players").LocalPlayer
script.Parent.ImageButton.MouseButton1Down:Connect(function() print(player.Name.." clicked the green play button") end)
Help would be apprieciated
Thanks!

1 comment
try, Activated:Connect(function() instead of the MouseButton1Down:Connect(function() also, make sure you're using a LocalScript and not a regular Server Script