hello i want the text on the textbutton to change color but it doesnt works script i use
while true do
script.Parent.TextColor3 = Color3.new(85, 255, 0)
end
hello i want the text on the textbutton to change color but it doesnt works script i use
while true do
script.Parent.TextColor3 = Color3.new(85, 255, 0)
end
Color3.new takes values in the range from 0-1. What you want is to do Color3.fromRGB. Also, you don't need a while true do loop.
You can try this:
script.Parent.TextColor3 = Color3.fromRGB(85, 255, 0)
you beat me to it
didnt work
Are you sure you are using it correctly? It should be a local script in a TextLabel.
wait a local script?
Yes, LocalScripts should be used in StarterGui. Using Scripts is terribly bad practice as it controls what the client sees on the server, and there is a slight delay.
doesnt work
You aren't on the client - you are on the server. It says Current: Server.
lol im so dumb
No you aren't - we all make little mistakes. You won't believe how many times something I made didn't work because I made a very small mistake.
This worked i tested it in studio myself
while true do
script.Parent.TextColor3 = Color3.fromRGB(85, 255, 0)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
this is my first time scripting