#Attempt to call nil value

1 messages · Page 1 of 1 (latest)

rapid coral
#

The script will be in this post, when I click the error it highlights line 18 pls help-

#

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
-- Wait for accessories to load
character:WaitForChild("Humanoid")
wait(1) -- brief wait to ensure everything loads

    local accessories = {}

    for _, item in ipairs(character:GetChildren()) do
        if item:IsA("Accessory") then
            table.insert(accessories, item:Clone())
        end
    end

    -- Send the accessories to your rig handler
    AddAccessoriesToRig(accessories)
end)

end)

#

Ping me when u can help

visual eagle
#

AddAccessoriesToRig(accessories) this function is undefined in your code

visual eagle
potent prism
#

And he is m1 actually

potent prism
#

Line 18

#

Huge hint

rapid coral
#

Why are u here then

potent prism
rapid coral
potent prism
#

But youve already found it

#

Just fix it

rapid coral
#

Yeah and I don’t know how to fix it

potent prism
#

Google the error

potent prism
#

since this script isn't yours

rapid coral
#

That’s why I came here

#

😭😭😭

potent prism
#

just learn the basics

rapid coral
potent prism
#

and make your own script

potent prism
#

and read the doc

rapid coral
#

so helpful

#

ty

#

I’ll instantly make a new script BY ME proud

#

BY YOUTUBE

potent prism
#

Takes weeks to learn the basics

#

Months to master advanced basics

rapid coral
#

Instead of you just telling me how to fix it tho

potent prism
#

Years to be an intermediate-expert scripter

potent prism
#

To learn how to script in general

rapid coral
potent prism
rapid coral
#

If I wanted to learn how to script I would’ve done it tho

potent prism
#

If I wanted to fix your script I would've done it

#

But I don't want too

rapid coral
#

💔

potent prism
#

Because there is no point in fixing it

potent prism
rapid coral
#

If there’s no point then leaveeee

potent prism
#

You've used AI to generate the script

#

How does fixing it helps you learning

rapid coral
potent prism
rapid coral
#

Exactly so help me fix this

potent prism
#

Helping is not about fixing the script

rapid coral
#

Okay ur doing too much can u leave

potent prism
#

It's about learning how to fix it

#

nuh uh

#

listen

rapid coral
#

yuh huh

rapid coral
potent prism
#

and your question should be "why doesn't my script work"

rapid coral
#

What was the point of coming in my post just to tell me to learn tho

#

😓

potent prism
#

not "fix my script because ChatGPT didn't manage to make it work"

rapid coral
#

I alr tried to hire someone

#

And nothing but scammers dm me

#

So I went for option 2?

#

IDK WHAT U WANT ME TO DO

#

I WANT THIS SCRIPT NOW

#

???