[SOLVED] Badge giver script not working

Try replacing

if ball:Destroy() then

With

if ball == nil or ball.Parent == nil then