Atlathic
(Atlathic)
#1
I added this script in my TextButton :
script.Parent.MouseButton1Click:Connect(function()
game.Lighting.Ambient = {149, 149, 149}
end)
I did a lot of research why the color change doesn’t work. Didn’t find anything. If it’s needed this says the output:
Localscript:3: invalid argument #3 (Color3 expected, got table) How do I fix this problem?
batteryday
(batteryday)
#2
You need to provide a Color3
datatype, this is a table
game.Lighting.Ambient = Color3.new(149, 149, 149)
script.Parent.MouseButton1Click:Connect(function()
game.Lighting.Ambient = Color3.new(149, 149, 149)
end)
Bare in mind that because this is a local script the ambient will only be changed client-side (in other words the change won’t reflect to the server).