local function createFunc(playyrr)
if plrTableMain[playyrr] then
return
end
local newLabel = plrLabel:clone()
plrTableMain[playyrr] = newLabel
newLabel.Visible = true
newLabel.Parent = scrollingFrame
newLabel.Text = getFullName(playyrr)
local Noto = game.ReplicatedStorage.PlayerStats:WaitForChild(playyrr.Name):WaitForChild("Notoriety")
Noto = game.ReplicatedStorage.PlayerStats[playyrr.Name].Notoriety.Value
print(Noto)
plrLabel.Icon.Amount.Text = tostring(Noto)
spawn(function()
game.ReplicatedStorage.PlayerStats[playyrr.Name].Notoriety.Changed:connect(function()
plrLabel.Icon.Amount.Text = tostring(game.ReplicatedStorage.PlayerStats[playyrr.Name].Notoriety.Value)
end)
end)
newLabel.MouseEnter:connect(function()
newLabel.Text = playyrr.Name
newLabel.TextTransparency = 0.3
end)
newLabel.MouseLeave:connect(function()
newLabel.Text = getFullName(playyrr)
newLabel.TextTransparency = 0
end)
pcall(function()
newLabel.Parent = scrollingFrame
end)
resizeManager()
return newLabel
end
When I print the Notoriety value, it prints the players notoriety value correctly, but in the line directly below it, the notoriety is shown as 0 in the text? I am at a complete loss of ideas as to why this happens.