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

How would I make a script where the leaderstat updates a billboardGUI above a players head?

Asked by
ghxstlvty 133
4 years ago

Salutations. I am making this script for my Event Center at my establishment.

The user gets points for getting things correct during the training. This is the Points BillboardGUI: https://prnt.sc/r8s10q

I want the BillboardGUI to change when the Leaderstat is changed.

I've tried looking up how to do this for so long and can only find stuff about GUIs but not BillboardGUIs.

Please help if you know! Any answers will help!

Please don't get mad at me for asking for a request.

0
Use a server script and a while loop killerbrenden 1537 — 4y
0
I agree with killerbrenden. Geobloxia 251 — 4y
0
Use my answer not killerbrenden Idea as this can cause lag mine only changes upon the value changing EnzoTDZ_YT 275 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Make it so

game.Players.LocalPlayer.leaderstats.STATNAME.Changed:Connect(function()
    game.ReplicatedStorage.ChangeStatBoard:InvokeServer()
end)

Is in StarterPlayerScripts and

game.ReplicatedStorage.ChangeStatBoard.OnServerInvoke = function(Player)
    Player.Character.Head.StatBillboard.TextLabel.Text = tostring(Player.leaderstats.STATNAME.Value)
end

I did write this from memory and not in roblox studio so forgive me if something is wrong

0
You could also use a while loop if you wanted. broham896 54 — 4y
0
while loops cause lag mine does not EnzoTDZ_YT 275 — 4y
0
This wouldn't work since there is no "ChangeStatBoard" in replicated storage. Or it could be that I put these scripts in two different local scripts in StarterPlayerScripts ghxstlvty 133 — 4y
0
Apologies, I created a BindableEvent in ReplicatedStorage named "ChangeStatBoard." This is the error code. https://prnt.sc/r9agqf ghxstlvty 133 — 4y
Ad

Answer this question