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:
placement = script.Parent.Parent.Parent.StorageRoomPlacement script.Parent.MouseButton1Click:connect(function() placement.Disabled = false end)
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?
Try this.
Put this script in the GUI button.
local ServerStorage = game:GetService("ServerStorage") --use this to find the server storage(put the localscript in here) placement = ServerStorage.localscript script.Parent.MouseButton1Click:connect(function() local location= ServerStorage.placement:Clone() --makes a copy of the script location.Parent = game.Workspace -- replace game.Workspace with the location you want the script to goto. location.Disabled = false end)
If it helps, then accept my answer please.