Can somebody help me with this simple script

Alright I will try that (30 chars)

I did this…

script.Parent.MouseButton1Click:Connect(function()

script.Parent.Text = “Off”

wait(0.1)

script.Parent.imagecolor3 = Color3.new(255,255,255)

end)

Anything I should change because it doesn’t work?

Nope… It might be my other scripts inside?

You should use a local script if you aren’t already, but that looks good. Oh. And capitalize ImageColor3. And that’s just gonna turn it white

script.Parent.MouseButton1Click:Connect(function()

script.Parent.Text = “Off”

wait(0.1)

script.Parent.Imagecolor3 = Color3.new(255,255,255)

end)

Anything I should change because it doesn’t work?

I did… (30 characters…) :worried:

No you didnt Capitalize the I in ImageColor3

Hmmm let me try that. Maybe that will work

roundify creates a transparency of 1 and the textbutton has a transpency of 1 as well

Nope still doesn’t work should i use a normal script

You are just changing it to white. It should work. Just choose a different color. Actually, you are trying to use RGB with just color3.new. Use Color3.fromRGB

Still nothing I removed it from the button still nothing. Is it my other scripts?

Nope. Still nothing. (30 chars)

you have to say script.Parent.Roundify.ImageColor3 = color3.fromrgb

Its Color3.new(rednumber/255,greennumber/255,bluenumber/255) you forgot to add the /255 to all of them. Color3.new(255/255,255/255,255/255) gives white.

Make sure to name the Roundify image to “Frame” for this to work

script.Parent.MouseButton1Click:Connect(function()

script.Parent.Text = "Off"

wait(.1)

script.Parent.Frame.ImageColor3 = Color3.fromRGB(255,0,0)

end)

Problem

The Local script is the problem the other scripts are other scripts that do other things

Did you try the Color3.new()/255 method?

Yeah didn’t work either. Should I turn all of those 3 scripts into 1?