Model classname check in workspace issue

Hi there, I’ve been trying to make a localscript that basically enables a certain GUI after the intro GUI is dismissed (player presses the play button) and the map is spawned in to the workspace (as the map is stored in the Intro GUI initially). I’m a relative noob at making functions and I’m sure I did something wrong here:

Basically all I’m trying to do is have the localscript check if whether or not there’s an existing model class in the workspace or not, and if there is, the “Wake” gui is enabled.
If someone could get me back on the correct course in fixing the problem, I would greatly appreciate it.

workspace:GetDescendants returns a table of all the Descendents of the workspace. Functions go like this:

function name(parameters)

end

You need to put a name and not what you want to set the parameters to.

Another question here is why the use of a function?

The descendants are a table so you would need to do a for loop to check their class names.

Useful Links To Help You:

If you need any more help just send me a message on here or reply to the post :slight_smile: