i am new to scripting and i was wondering why it said attempt to index nil with find first child when i typed this in.the problem is on the bold line.This is a regular script.
local stats = game.ServerScriptService.LeaderStats:FindFirstChild("leaderstats")
local Pmoney = stats:findFirstChild("Cash")
local Pmulti = stats:findFirstChild("Multi")
local Preb = stats:findFirstChild("Rebirths")
so i was wondering if any of you guys can help me. sorry if this is a easy solution im very new to scripting and barely know anything.

1 comment
Do :WaitForChild(), as the objects might not be added when the script run