plynumber = tonumber(string.sub(script.Parent.Name,4))
print(plynumber)
function checklol()
ppl = game.Players:GetChildren()
print("checking")
if #ppl >= plynumber then
script.Parent.Visible = true
print("yes")
ply = ppl[plynumber]
script.Parent.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username="..ply.Name
function hover()
script.Parent.Parent.plyname.Text = ply.Name
end
script.Parent.MouseEnter:connect(hover)
function left()
script.Parent.Parent.plyname.Text = ""
end
script.Parent.MouseLeave:connect(left)
else
script.Parent.Visible = false
end
end
checklol()
game.Players.Changed:connect(checklol)
it says 02:29:31.822 - Players.Jade7070.PlayerGui.Model.PES.Main.Main.MainScript.Script:6: attempt to compare nil with number

1 comment
Where do I put it