Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

the script looks's fine so why doesn't the GUI button work?

Asked by 5 years ago
Edited 5 years ago

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
0
try MouseButton1Click instead of Activated Trew86 175 — 5y
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. TheOnlySmarts 233 — 5y
0
Also change connect to Connect and dont add a space after the print, so instead of print ("1") do print("1") TheOnlySmarts 233 — 5y
0
my question wasn't answered and i dont know why i have 5 less reputation SLENDERMANCLONE -27 — 5y

Answer this question