Please help me out with this, i have been trying to do this all night!
what i am trying to do here is make an overhead currency UI so that the server can see how much currency you have in game, for more detail, Check out my script:
local rStorage = game:GetService("ReplicatedStorage")
local tag = rStorage.NameTag
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local head = char.Head
local newtag = tag:Clone()
local toptext = newtag.UpperText
local bottomtext = newtag.LowerText
local human = char.Humanoid
local points = plr.leaderstats.Points.Value
human.DisplayDistanceType = "None"
newtag.Parent = head
newtag.Adornee = head
toptext.Text = plr.Name
bottomtext.Text = "Points: "..points
while wait(0.1) do
bottomtext.Text = "Points: "..points
end
end)
end)
