So I have a gui with stuff in it so when someone clicks a brick it shows them the gui (ScreenGui)... It shows them the gui but when they click on something in the gui and the script finds a item inside the gui (My case a frame) it says there is no frame...
It works in studio but not in a real game... Welp...
-- Brick Script--
script.Parent.MouseClick:connect(function(plr)
Gui = script.Maker:Clone()
Gui.Parent = plr.PlayerGui
end)
-- Gui Button Script--
options = script.Parent.Parent.Parent.Options.MilkshakeOptions --[[ For some reason it says that there are no options (Frame) in the actual server... --]]
loading = options.Parent.Loading
script.Parent.MouseButton1Down:connect(function()
for i,v in pairs(script.Parent.Parent:GetChildren()) do
v.Visible = false
v.Selectable = false
end
loading.Visible = true
wait(2)
loading.Visible = false
for i,v in pairs(options:GetChildren()) do
v.Visible = true
v.Selectable = true
end
end)
