Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
4D_X 118
7 years ago

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

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago
Ad

Answer this question