when i press a gui button with this script in it it doesent print

script.Parent.Activated:connect(function()
	print ("ll color")
end)

the script is

StarterGUI.ScreenGUI.TextButton.script

4 comments

0

try MouseButton1Click instead of Activated

0

Sometimes it doesn't work in Studio, but it works in the real game, so publish the game and play it to see if it works, if it does not work, in your script add a pcall(function(), these are used if the Output doesn't detect/show an error. If you use a pcall and it still shows no error, it could just be ROBLOX stuffing up or if changes are needed in your scripting location and script.

0

Also change connect to Connect and dont add a space after the print, so instead of print ("1") do print("1")

0

my question wasn't answered and i dont know why i have 5 less reputation