Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I change the GUI logo and textbox for everyone?

How do I make it so when I make changes to the GUI image, background color and Text it changes for everyone and not just me?

3 comments

0

Forgot to add that I change it in game

0

you mean with a script?

0

No Its for a scoreboard so I have it where for example Dallas cowboys if I say DAL it will change it to dallas logo DAL and color of cowboys, heres scoreboard http://prntscr.com/a5jejm

1 answer

✓ Accepted answer

You will have to synchronize all the scoreboards using a global scoreboard if you want an easy version. That works like this:

-- Setting the example leaderboard.
global = Instance.new("Folder", workspace)
global.Name = "GlobalScoreboard"
points = Instance.new("IntValue", global)
points.Name = "Points"
logo = Instance.new("ImageLabel", global)

function Update()
	local plrs = game.Players:GetPlayers() -- Returns a table with all the players.
	for _, plr in pairs(plrs) do -- Will do the same for all players.
		-- Destroying the old ScoreBoard
		plr.ScoreBoard:Destroy()
		-- Setting the new ScoreBoard
		local new = global:Clone()
		new.Parent = plr
		new.Name = "ScoreBoard"
	end
end

points.Changed:connect(Update) -- Event
logo.Changed:connect(Update) -- Event
global.Changed:connect(Update) -- Event

Hope this helps you with the understanding and good luck with the game!

This discussion is preserved as it was. New answers, comments, and votes are closed.