Aikious
(Aikious)
March 15, 2023, 4:18pm
#1
How can I make a leaderstat billboard gui above everyone’s head ?
I have a system of stars that we win following votes, I want them to be displayed above the heads of all players like this: “15⭐️”
I need a clear explanation of each step to follow, I am new to scripting thank you !
Can I see your billboard hierarchy? And where is it cloned?
Aikious
(Aikious)
March 15, 2023, 4:26pm
#3
I don’t have a billboard, that’s exactly what I want, I just have a “stars” leaderstat that records the number of stars received.
You’d have to start with a Player GUI that will go on top of the player’s head.
Aikious:
Here you can use this model, it has a script and a billboardgui for you. Just change the Stars variable in the script inside billboardgui
it should be
local Star:NumberValue? = Player.leaderstats.Stars
gui.rbxm (6.4 KB)
Place the script inside ServerScriptService.
1 Like
Aikious
(Aikious)
March 15, 2023, 4:55pm
#6
I don’t really understand, I have to replace the “handler” script with my own “statsmanager” for it to work? Because even when trying nothing happens.
Handler just clones the billboard to player head.
The script inside the billboard just changes the text to the amount of stars the player has.
Aikious
(Aikious)
March 15, 2023, 4:59pm
#8
but if I click “play” in studio there is no billboard
Weird because when I tried it, I got it.
Where is the script located?
Aikious
(Aikious)
March 15, 2023, 5:02pm
#10
I placed as you told me, ServerScriptService
Is the billboardgui inside it too?
Aikious
(Aikious)
March 15, 2023, 5:05pm
#12
yes and i have this error
The gui should be inside the player character head where does it get cloned at?
Aikious
(Aikious)
March 15, 2023, 5:10pm
#14
it’s in this script " statsManager, do you need to see the script?
The actual error is the gui tdoesn’t get cloned to player character, where does the gui get cloned?
Aikious
(Aikious)
March 15, 2023, 5:16pm
#16
sorry but I don’t understand what GUI are you talking about?
the billboard gui inside Handler. It should get cloned at player character head.
Aikious
(Aikious)
March 15, 2023, 5:23pm
#18
I suspect well, but it is not cloned nowhere…
Here is an updated version.
It should be in server script service.
gui.rbxm (6.4 KB)
Aikious
(Aikious)
March 15, 2023, 5:32pm
#20
there is no longer the error, but still no billboard, knowing that when I drag the file it goes into the workspace, I have to drag it myself into the serverscriptservice