Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

This works in studio but not in the game??? Is it deleting something???? What am I doing wrong?

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)

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.