This script is located within a TextButton in a ScreenGui. "colourval" is a BrickColor3 value which I've set to be created for each player that joins and have the name of the value to the player that has joined and I want this script to make the value change to whatever the TextButton BackgroundColor3 is. Any help?
local colour = script.Parent.BackgroundColor3
function onClick(Player)
local colourval = game:GetService("ServerStorage")[Player.Name]
colourval.Value = colour
end
script.Parent.MouseButton1Click:connect(onClick)
output vvv
18:24:26.580 - Stack Begin 18:24:26.580 - Script 'Players.ShiforRBLX.PlayerGui.colourGui.mainFrame.TextButton.Script', Line 7 18:24:26.581 - Stack End
