Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to fix: Workspace.Admin Commands:2437: attempt to index nil with 'FindFirstChild'? [closed]

Asked by 3 years ago

So I am confused yes I had capitalized most of the F's and most of them were fine and I didn't think anything of it. Until when I tested it and it didn't work. So then I asked some people in the Community chat

Me: So I have a struggle

Person: Okay.

Me: Workspace.Admin Commands:2437: attempt to index nil with 'findFirstChild' What do I do to fix this?

Person: Make the f to F

Me: Okay did that

Me: So turns out it's fine with: game:service("Lighting"):findFirstChild("KACV2"):Destroy()

Person: Make :Service to :GetService

Person2: Capitalization means E V E R Y T H I N G When coding.

Me: Okay Fixed It.

(I'm just gonna stop here before it becomes to long.)

Please help I am trying to make my own commands but it got in the way so now I am confused.

(I am a Newbie btw so you kinda have to break it down I know I need to put a value but most of the things Person is saying is like: If you want to set the property your changing it

So you use one =

if you want to check it's property, use double = signs (==) if you want to check if it is any other value than the value you placed after, you use ~= Which continued to confuse me.)

------Kearna09

0
What type of question is this? This isnt playwright site so stop writing plays here ! Tizzel40 243 — 3y
0
can you just show the script so I can actually see what your going at?!?! 7zjh 146 — 3y
0
Never mind I'll use HD admin and change the prefix if I can find it. Kearna09 -5 — 3y
0
ok 7zjh 146 — 3y
View all comments (3 more)
0
Even if I did add the WHOLE Script it would work. Kearna09 -5 — 3y
0
Because of the fact it had been Very Lengthy Kearna09 -5 — 3y
0
The method is fine; camel case calling is valid, although deprecated.. It's the Instance :FindFirstChild() is being called that is nil... The equality operator (==) matches values, while the inequality (~=) looks for a difference. In GPP languages, the "not" logic expression, is formally recognized as "!" , an inequality (not equal to) would be represented like so: !=. Ziffixture 6913 — 3y

Closed as Too Broad by Ziffixture

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?