#why cant it find this child when i can find it myself in the workplace?

1 messages · Page 1 of 1 (latest)

ocean anchor
low ember
#

Light mode + npc code

#

Hold on

#

Dawg

#

Why u listing each body part as an individual variable @ocean anchor

#

Use pairs/tables

ocean anchor
low ember
#

..

ocean anchor
#

tried to learn like 4 times

low ember
#

What r u tryna make?

low ember
#

for loops n shi so simple

ocean anchor
ocean anchor
low ember
#

like idk basic shit like
local wtvtf = workspace.wtv

for index, value in pairs(wtvtf:GetChildren()) do
bla bla shit

low ember
#

To use tables u needa be able to use pairs

ocean anchor
low ember
ocean anchor
#

what

low ember
#

If u can do that u can do ipairs

ocean anchor
#

i never used ai

ocean anchor
low ember
#

Because it’s simple

#

J watch a tut

#

Like brawldev

ocean anchor
#

ive watched brawldev video on it already

low ember
#

did u learn it though

#

Or j watch if ygm

plush merlin
#

what were you trying to solve?

ocean anchor
ocean anchor
#

in this scenario

sour idol
plush merlin
sour idol
sour idol
sour idol
#

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

plush merlin
#

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

low ember
sour idol
#

loop is easier

low ember
ocean anchor
sour idol