Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 8 years ago

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?

0
Forgot to add that I change it in game iSidersz 70 — 8y
0
you mean with a script? Benqazx 108 — 8y
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 iSidersz 70 — 8y

1 answer

Log in to vote
0
Answered by
Wutras 294 Moderation Voter
8 years ago

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!

Ad

Answer this question