Is this a bug? I have this in StarterGUI as can be seen with this image, http://i.imgur.com/od8Mp5J.png

The issue here is that, the "ImageButton" is clickable and is supposed to make the Frame visible. It works in STUDIO play mode, however when I go into Test or online play mode, I get "Frame is not a valid member of screengui". If I go and check "FilteringEnabled" that solves the issue (but creates more as all of my weapons break, so this is not a feasible option for me). Is this how Roblox works with client/server requests or something? Just seems odd to me.

The code for the "ImageButton" is this, though I doubt it is of any use

local imageButton = script.Parent
local frame = script.Parent.Parent.Frame
local close = script.Parent.Parent.TextButton
Open = false

imageButton.MouseButton1Down:connect(function()
	if Open == false then
	Open = true
	imageButton.Image = "rbxassetid://453171362"
	wait(0.1)
	imageButton.Image = "rbxassetid://453174362"
	imageButton.Visible = false
	frame.Visible = true
	close.Visible = true
	elseif Open == true then
	wait(0.2)
	Open = false	
	end
end)

UPDATE: Pssh, Roblox is so broken. Even more odd, if I make the GUI from scratch, using code in a script. Nothing shows up first off. If i add something like "while true do" then it shows up on my screen.....AND GUESS WHAT, THE BUTTON WORKS. There seems to be something weird with the way Roblox is handling client/server thingies and GUIs.

2 comments

0

I suggest reinstalling the studio at this point, also, this seems weird, make sure you are using localscripts and scripts for the right things.

0

You need to understand how Filtering works to be able to go around this. There are tutorials on youtube and Roblox Wiki, check them out. My guess is that you're using a normal script instead of a normal one so it doesn't work correctly.