Everything else works fine, the player's name shows up above the player's head, the level display GUI displays the level value on the player's UI, but I cant get the player's level to show up along with the player's username My code for the level is setup like this:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
-- Level
local level = Instance.new("IntValue")
level.Name = "Level"
level.Value = 0
level.Parent = player
end)
end)
and the display user and level above head code is setup like this:
game.Players.PlayerAdded:Connect(function(player)
local level = game.Players.LocalPlayer.Level
local clone = script.Rank:Clone()
clone.Parent = game.Workspace:WaitForChild(player.Name).Head
clone.Frame.Name1.Text = player.Name
clone.Frame.Rank.Text = level.Value
player.CharacterAdded:Connect(function()
local level = game.Players.LocalPlayer.Level
local clone = script.Rank:Clone()
clone.Parent = game.Workspace:WaitForChild(player.Name).Head
clone.Frame.Name1.Text = player.Name
clone.Frame.Rank.Text = level.Value
end)
end)
Every time I check the output it either says Level isn't a valid member of (my username) or attempt to index nil with Level

2 comments
Is this a local script or a regular script?
both are regular scripts