You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want to make a GUI change for everyone in the server, in this case if I click a button to change from a light blue to a dark blue, it would change to dark blue for everyone
What is the issue? Include screenshots / videos if possible!
Listed in 1.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve searched around Google, YouTube and the DevForum and have not found any solutions at all.
(I am new to the forum and this is my first post so it may be kinda messy!)
taken = Color3.fromRGB(21, 88, 99)
available = Color3.fromRGB(41, 171, 191)
transition = Color3.fromRGB(85,85,85)
function Horizon()
if button.ImageColor3 == taken then
button.ImageColor3 = available
else
button.ImageColor3 = taken
wait(5)
end
end
button.MouseButton1Click:Connect(Horizon)
It is being used for a table seating system for one of my groups
Okay, thanks for being more specific. You might create a variable for seats / module script and when a player clicks a seat you can change variable / module script to true / false.
– Edit –
You can connect a .Changed function and change colors in GUI.
– Edit2 –
If this fixed your problem please mark it as a solution.
local button = script.Parent
taken = Color3.fromRGB(21, 88, 99)
available = Color3.fromRGB(41, 171, 191)
transition = Color3.fromRGB(85,85,85)
function Horizon()
for v, localPlr in pairs(game.Players:GetPlayers()) do
local plrButton = localPlr.PlayerGui.ReserviUI.Core.SeatingReservations[button.Name]
if plrButton.ImageColor3 == taken then
plrButton.ImageColor3 = available
else
plrButton.ImageColor3 = taken
end
end
end