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

How To Create A Server Side Billboard Above Someones Head?

Asked by 6 years ago
Edited 6 years ago

I am creating one of those clicker games and I want to display the amount of gold above someones head. I have found a way to do it with a local script which only shows the billboard for the player but not other players. Here is what I have.

bill = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
bill.Size = UDim2.new(4, 0, 4.5, 0)
bill.AlwaysOnTop = true
label = Instance.new("TextLabel", bill)
label.Size = UDim2.new(2, 0, 1, 0) 
label.Position = UDim2.new(-0.5, 0, -0.5, 0) 
label.BackgroundTransparency = 1
label.FontSize = "Size12"
while true do            
        label.TextColor3 = Color3.new(255,255,255)
wait(.09)
        label.TextStrokeTransparency = 0    
        label.Text = "Gold: "..game.Players.LocalPlayer.leaderstats.Gold.Value..""
end  

Is there a way to make it work server side so everyone has one above there heads and everyone can see each others?

Also filtering is enabled.

0
yes. #answeringTheQuestion #HeAsksIfThereIsAWay #JK #DontBeMad DrPredablox 153 — 6y
2
I'm going to assume this is in StarterPlayerScripts or anywhere inside the player. When you generate a class and parent it within a script inside the player, it will only be visible to that player. You can try putting this script in the workspace and formatting it with a PlayerAdded event. SkeletalReality 590 — 6y

Answer this question