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!
You can use GetPropertyChangedSignal()
to detect a change in the leaderstat's Points value. When it changes, you will need to make the Gui's Text change as well. It would look something like this.
local GUI = --Reference your GUI here. local leaderstats = --Reference your Leaderstats here local Points = leaderstats:WaitForChild("Points") Points.Value:GetPropertyChangedSignal("Value"):Connect(function() -- When the Points changes then fire the event. GUI.Text = Points.Value -- Set the Gui Text to the Value of the Points. end)