#Roblox acting funky

34 messages · Page 1 of 1 (latest)

wild spruce
#

heres the script incase anyone needs it

#

I might be dumb or something idk why roblox is saying that

sterile zenith
#

@wild spruce WaitForChild

#

Talking might not have loaded yet

sharp birch
#

local music = game.Workspace:FindFirstChild("Talking").sound

#

I would use FindFirstChild cuz i've had lots of issues with WaitForChild in the past

sterile zenith
#

local music = game.Workspace:WaitForChild("Talking").sound

#

Nah

#

Like

#

Find first child doesn't wait at all

#

It's just a way to check if something exists or not

sharp birch
#

You sure?

whole hemlockBOT
#

studio** You are now Level 3! **studio

sterile zenith
#

Yes

sharp birch
#

Cuz i've used FindFirstchild in scripts and that isn't the case personally

sterile zenith
#

It's like a accessor that doesn't error if its nil

sharp birch
#

Tbh i've used FindFirstChild, cuz WaitForchild hasn't worked for me the best

#

But yeah i'd assume that would work

sterile zenith
#

What did u use it for

sharp birch
#

Don't remember tbh

sterile zenith
#

If the object doesn't exist ofc it'll be stuck there

#

But if you're sure it exists and it's still loading

#

Use WaitForChild

sharp birch
#

So the difference is FindFirstChild checks once, and WaitForChild checks repeatedly

sterile zenith
#

WaitForChild waits for the child

#

To be added

sharp birch
#

Also, i would never blame roblox studio itself, i would blame myself like something wrong i did in the code

sharp birch
wild spruce
#

thanks

sterile zenith
#

Np

sharp birch
#

Cheers

wild spruce
#

its just it was working fine before and then it started not working and it confused me

#

then I noticed I was having really slow loading issues with the game