#GetChildren doest work

168 messages · Page 1 of 1 (latest)

gritty shore
#

output got nothing its stuck at line 9 and idk what the issue

eager sphinx
#

red dot thing

#

it pauses the game when the code reaches that point

gritty shore
#

ye ik

#

that why i placed it in there

#

to check if scripts working

#

but it ddoesnt

tall hound
#

He means it pauses the game

#

probably move the breakpoint down then

#

Cause it probs doesnt run any code after it if i were to guess

gritty shore
tall hound
#

maybe its still waiting somewhere for a child?

#

try changing them to FindFirstChild so it doesnt yield

gritty shore
tall hound
#

Okay

#

print worlds

gritty shore
#

it just gonna print WorldPortals

#

tested before

tall hound
#

print worlds:GetChildren()

gritty shore
#

hmm okay

tall hound
#

see what comes out of it

gritty shore
tall hound
#

okay so it doesnt see any children

#

is archivable on in the parts

gritty shore
tall hound
#

cause if its not the script cant find them

gritty shore
#

borth

#

both

tall hound
#

hm okay

#

Try just doing worlds:FindFirstChild("1000")

#

printing that

#

just to see if it can find any of em

gritty shore
#

nil...

tall hound
#

Okay

#

so the issue is that it doesnt see any children inside the folder

#

Do you maybe have some other object called WorldPortals?

#

That isnt the folder

gritty shore
#

lemme check

tall hound
#

alr

gritty shore
#

okay so

#

i changed the name of this folder to WorldPortalsss

#

and its still nil

#

but

tall hound
#

what am i looking at

gritty shore
#

the door is working

#

but value still nil after changing name

tall hound
#

okay so it works when it shouldnt work

#

thats cool

#

💀

gritty shore
#

xd

tall hound
#

what does it print

gritty shore
tall hound
#

so it still doesnt print the portal.ClassName

gritty shore
tall hound
#

maybe its the :GetService("Workspace") part

#

no clue but atp try everything lol

#

cause i have no clue why it errors

#

just do .Workspace

gritty shore
#

hmm okay

#

lemme try

gritty shore
tall hound
#

Maybe also print workspace:GetChildren() btw?

gritty shore
upper foxBOT
#

studio** You are now Level 10! **studio

tall hound
#

workspace[2]:GetChildren()?

gritty shore
#

hmm

#

can you tell how do i print it?

#

i did this but it doesnt work

tall hound
#

oh mb

#

workspace:GetChildren()[2]:GetChildren()

#

maybe thatll work

#

just a guess

gritty shore
#

oh

tall hound
#

also u dont need game

#

u can do workspace

#

without the capital

#

itll find it

gritty shore
#

what the sigma

#

it jsut doesnt see it

tall hound
#

huh

gritty shore
#

maybe because its local script or what?

tall hound
#

can you show me all variables the parts have

tall hound
#

it can still find the folder

#

why wouldnt it be able to find the parts

gritty shore
tall hound
#

i mean all the properties

#

like archivable, enabled etc

gritty shore
tall hound
#

what is the script in btw

gritty shore
#

maybe

#

because this parts was union and i separate them?

tall hound
#

hm

#

its the same for me

#

in my own project

#

lemme do some testing

#

gimme a bit

gritty shore
tall hound
#

it finds the script if i add it

#

into the folder

#

not the parts

#

hm

#

it might be because of its location

#

cause it doesnt find parts in another folder i have either

#

okay

#

@gritty shore

#

i think i found fix

gritty shore
#

oh rly?

tall hound
#

move the script to startercharacterscripts

gritty shore
#

wanna hear it

tall hound
#

dont think u need to change anything

tall hound
gritty shore
#

okay its found

tall hound
#

sick

#

yea scripts in startercharacterscripts actually get put into the character in the workspace so it can find it easier than characters in the player

#

ig starterplayerscripts doesnt have access to it

gritty shore
#

just ask, what is this?

tall hound
#

ehm

#

An error thats very annoying

#

I had it in my first game

#

dont remember what i did tho

#

Does the animation work

gritty shore
#

does it affect for anything?

tall hound
#

even if it says that

gritty shore
tall hound
#

okay

#

just ignore it then

#

looked online, people saying its just roblox issues

#

cause people got it by just sleeping lol

#

like its fine at first, then they go to bed, wake up, and it suddenly says that

gritty shore
#

lol

#

silly issue

tall hound
#

Agreed!

#

Anyway do you need help with anything else? Or is it all fixed now

gritty shore
#

okay all good

#

but

#

still wondering

tall hound
#

?

gritty shore
#

im doing everything like in this tutorial

#

and its working here

#

but not for me

tall hound
#

whats not working?

peak shore
#

isnt that just a server script

gritty shore
#

ah okay

#

okay

#

the issue was very simple why it doesnt work

#

i just make some manipulations with part

#

i make parts union

#

and then separate them

#

i just duplicated parts now

#

and all working good

#

what the pain

tall hound
#

okay thats good

gritty shore
tall hound
#

studio is confusing sometimes

#

hehe

gritty shore
#

tysm dude

#

without you i didnt find an issue

tall hound
#

No worries! Glad i could help

gritty shore
#

166 msgs btw