Hi Everyone!
I have an image button on a surface gui with this script
script.Parent.MouseButton1Click:Connect(function()
print("test")
end)
Nothing prints in the output when I click for some reason, idk if its the script.
Any help is apreciated!
Hi Everyone!
I have an image button on a surface gui with this script
script.Parent.MouseButton1Click:Connect(function()
print("test")
end)
Nothing prints in the output when I click for some reason, idk if its the script.
Any help is apreciated!
If you put that script in a local script, then it would not work, but if you put that script in a script instead of a local script then it would work fine.
It worked! Thanks a lot :D
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
rather than using mousebutton1click use mousebutton1down and see if it makes a diffrence
nope. I also tried activated, but that was a dud too. Thank you anyways!
Did you put the script in a local script?
yes
It should be in a script instead