MainModule errors

So whenever I go into studio testing, and then exit, it gives this error:

17:31:43.016 - The Parent property of 
17:31:43.017 - a
17:31:43.017 -  is locked, current parent: NULL, new parent ReplicatedFirst
17:31:43.018 - Stack Begin
17:31:43.018 - Script 'Model.MainModule', Line 20
17:31:43.019 - Stack End

I honestly have no clue why. Any help is appreciated :slight_smile:

1 Like

If we can’t see the code, it’s very difficult to know why it’s erroring. Can you show what’s at line 20 of Model.MainModule?

2 Likes

I don’t even know where Model.MainModule is. Isn’t that a roblox script?

No, that’s a ModuleScript you have somewhere.

2 Likes

Search it in the explorer, that’ll help you find it quicker

Looks like a regular Kohls admin error.

@WooleyWool (I’m trying to reply to both here haha)

There’s nothing. I use the explorer search, while testing in studio, while in server mode.

1 Like

I do use Kohls admin. Do you know if there is a fix?

I did post the entire error. That’s all it gives

Wrap the require call in a RunService:IsStudio() check, so it doesn’t run in studio anymore.

1 Like

Sorry, didn’t realize that. We need your script, we need to see how you scripted it.

I didn’t script it though. That’s the thing. It may be Kohls Admin like someone else said

It’s likely because you’re in studio. Try doing it in the roblox application instead.

It is because I’m in studio, that was covered in the original post.

This was the fix. Thank you so much!