#FindFirstChild confusion

1 messages · Page 1 of 1 (latest)

shut frost
#

does anyone know why I can find leaderstats and Level using FindFirstChild but the commented out attempt to find CheckpointNum doesn't assign it to levelNum? I found a way around it in the next if statement by changing levelNum.Value to tonumber(checkpoint.Name) , but I still would really like to know why levelNum failed.

#

Also I believe local Workspace = game:GetService("Workspace") is redundant, but I was desperate and I don't know that for sure either

#

I never use any of its methods so I assume it's a pointlessly assigned variable

slim pendant
#

is the dot operator the problem?

#

for your commented out line you use .FindFirstChild but you need to use a : like the previous lines

shut frost
#

OMG YOU'RE RIGHT AAAA

#

TY

#

I was defaulting to another language's syntax

#

well now I feel silly

old parrotBOT
#

studio** You are now Level 2! **studio

slim pendant
#

90% of errors are like that, just keep an eye on your code