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

Why is this not putting the current Stats off of my Leaderboard?

Asked by 6 years ago
local players = game:GetService("Players")
local gui = game.ServerStorage.Name_stats
local function playerjoin(player)
    local gc = gui:clone()
    repeat wait() until player.Character
    gc.Parent = player.Character.Head
    local name = player.Name
    local level = player.leaderstats.Level.Value
    while wait() do
    gc.Frame.Nameandlevel.Text = "" ..name.." | Level: "..level..""

    end
    end

players.PlayerAdded:connect(playerjoin)

I want it to show name and level but level isnt working correctly.

0
Is game.ServerStorage.Name_stats a BillboardGui? creeperhunter76 554 — 6y
0
character = player.CharacterAdded:wait() is a better replacement for looping it's existence. Also :clone() should be :Clone(). User#18043 95 — 6y

Answer this question