Im trying to make an Account Age Script, And Ive got An Error That Says
attempt to concatenate local 'AccountAge' (a nil value)
Here is the script
script.Parent.Touched:connect(function(hit)
if hit.Parent then
for _,v in pairs(game.Players:GetChildren())do
local hum = v.Character:findFirstChild("Humanoid")
if hum then
local AccountAge = v:findFirstChild("AccountAge")
h = Instance.new("Hint")
script.Parent.BrickColor = BrickColor.new("Bright red")
h.Parent = game.Workspace
h.Text = v.Name.." Is "..AccountAge.." Days Old" -- attempt to concatenate local 'AccountAge' (a nil value)
wait(15)
h:Destroy()
script.Parent.BrickColor = BrickColor.new("Black")
end
end
end
end)
