function onClicked() script.Parent.Parent.Fight.Visible = true end script.Parent.MouseButton1Down:connect(onClicked)
So, I want the above script to make a frame visible, it is in a local script, but, It does nothing when I press the button...
EDIT: Should probably add in this detail: The script works fine in studio, buts when playing the game on roblox it self, doesn't work.
script.Parent.MouseButton1Click:connect(function() print("Clicked") script.Parent.Parent:WaitForChild("Fight") print("Found Fight") script.Parent.Parent.Fight.Visible = true print("Visible") end)
Ok, so I edited it a bit. I added a WaitForChild just in case it isnt loading or anything.
I also added prints. If you go into the game and press F9, it shows a little output and can tell you any errors. Comment back on what prints/doesnt print.