Is there a limit on the number of local scripts in the StarterGui?
Asked by
7 years ago Edited 7 years ago
I have 2 local scripts in the StarterGui at the moment that are both initially disabled.One of them places a room, and the other places a single block. When you click on a button, it changes the script to enabled and allows the user to place the room. Here is the code inside the button that activates the placement script:
1 | placement = script.Parent.Parent.Parent.StorageRoomPlacement |
3 | script.Parent.MouseButton 1 Click:connect( function () |
5 | placement.Disabled = false |
However whenever I start the game, it outputs an error that says: "20:55:49.221 - StorageRoomPlacement is not a valid member of PlayerGui", and now the other script says the same thing. Are you only allowed a certain amount of local scripts in the StarterGui or is it something else?