#How to make the game wait until it is fully loaded to execute a local script?

1 messages · Page 1 of 1 (latest)

clever imp
#

I'm having an issue where if the player tries to do an action before the player loads in, it freezes and breaks my script (as expected.) How would I go about implementing a function or something to tell the script to wait until the game loads?

marsh hinge
#

if this is what you mean

#

if you wanna wait for your scripts to fully load them in and get initialized then you can use an attribute

clever imp
finite haloBOT
#

studio** You are now Level 5! **studio

marsh hinge
#

then u gotta set ur stuff up properly to make wait until theyre loaded

#

so use an attribute ig

marsh hinge
clever imp
#

or do i have to add it myself kinda thing

#

😭

marsh hinge
#

you can name it whatever you want broo

clever imp
#

mb i thought there was a set of like premade ones 😭

#

ok well thank you

amber thunder
clever imp
#

What do you mean by this

#

I think i figured it out anyway tho, it has something to do with the animations and not the main game loading

clever imp
nocturne mural
finite haloBOT
#

studio** You are now Level 1! **studio

amber thunder
clever imp
nocturne mural
#

you shouldnt just wait until a function is true

#

you should use something else

marsh hinge
#

It's certainly what he was asking for

nocturne mural
#

But its not reliable

iron plover
nocturne mural
#

Oich in auch in boch