I’ve attempted several times but failed. Can anyone help me out?
5 Likes
You can use string manipulation to add the values to the string you use for the nametag, for example you can make the nametag say [RANK] NAME | POINTS
instead of just NAME
1 Like
Try using a BillboardGui
with a TextLabel
that has its value set to the current value of a leaderstat.
https://developer.roblox.com/en-us/api-reference/class/BillboardGui
https://developer.roblox.com/en-us/api-reference/class/TextLabel
You can insure the label is always updated by using the .Changed
signal.
SomeStat.Changed:Connect(function()
label.Text = SomeStat.Value
end)
1 Like
Alright i’ll try out all those methods, thanks.
game.Players:FindFirstChild(player).leaderstats.YourStats.Changed:Connect(function()
script.Parent.Text = game.Players:FindFirstChild(player).leaderstats.YourStats.Value
end
Or if you wanna combine Name Tag + Stats then do
game.Players:FindFirstChild(player).leaderstats.YourStats.Changed:Connect(function()
script.Parent.Text = player.." | YourStatsHere"..game.Players:FindFirstChild(player).leaderstats.YourStats.Value
end
5 Likes