I'm making a whiteboard for a classroom with a question and some answers, so when they click an answer, the text will change to green if its right, and red if it's wrong. Here's what i have:
`function onClicked() game.Workspace.Whiteboard.Answer2.TextColor3 = (121, 243, 0) end script.Parent.ClickDetector.MouseClick:connect(onClicked)`
Yes i have a clickdetector inserted into the textbutton, but nothing happens when i click on the answer! Could someone please help me fix this? And i don't know much about scripting.
game.Workspace.Whiteboard.Answer2.TextColor3 = Color3.fromRGB(121, 243, 0)
or
game.Workspace.Whiteboard.Answer2.TextColor3 = Color3.new(121/255, 243/255, 0)
Also check your output. It shows errors that could help you solve your problem.
Also, :connect
is deprecated (from my understanding), start using :Connect
You also started the script with `, is that correct?
I used the 1st method and the 2nd method, but they're not working. No i didn't put `, in my script, i tried :Connect instead of :connect, and no errors are in my output. I don't know what I'm doing wrong. I'm using a surfaceGUI & two textbuttons.