#why cant it find this child when i can find it myself in the workplace?
1 messages · Page 1 of 1 (latest)
Light mode + npc code
Hold on
Dawg
Why u listing each body part as an individual variable @ocean anchor
Use pairs/tables
i dont understand that dawg
..
tried to learn like 4 times
What r u tryna make?
Luau easiest coding language ever btw, anyone can learn
for loops n shi so simple
complicated
ye i can use tables for loops and stuff but i dont understand the pairs and stuff expecially how u could use that in this situation
like idk basic shit like
local wtvtf = workspace.wtv
for index, value in pairs(wtvtf:GetChildren()) do
bla bla shit
So you can’t use tables
To use tables u needa be able to use pairs
this how i use tables
ai?
what
If u can do that u can do ipairs
i never used ai
how
ive watched brawldev video on it already
what were you trying to solve?
why it cant find "squareleft" when i can find it in the same place im asking i to look
what would be after the do part in this
in this scenario
prince 💔
you need to put the rest of the lines outside of characteradded function inside characteradded function
🥀
ok i can teach you
nah thats just a loop
try FindFirstChild
you dont need :WaitForChild when the character is already loaded
there's also a cleaner way of waiting for character
char = plr.Character or plr.CharacterAdded:Wait()
it means if plr.character is nil then it'll wait until character added
would that not work as the rest is outside of that function?
ah never mind, I think I am looking at the wrong lines, my apologize
ipairs easier than it
nope
came back as nil
maybe try different code