so. i have a shop ui. and i clicked on this item because i wanna buy it.. when you click on the item. the BUY button doesn't pop up. what do i do..?
the script:
local frame = game.StarterGui.ShopFrame3.Frame local open = true
script.Parent.MouseButton1Click:Connect(function() if frame.Visible == false then frame.Visible = true end
end)
look dude , create a ScreenGui in the StarterGui , add in there 2 Frames , name first Frame , Frame1 and second Frame , Frame 2 , then add in the ScreenGui a local script ,in the Frame1 add a TextButton, in the Frame 2 add a TextButton aswell , then look , Frame1 is the shop , Frame2 is the shopbutton
here is the script , put it in the ScreenGui:
Frame1 = script.Parent.Frame1 ShopButton = script.Parent.Frame2.TextButton ShopButton.MouseButton1Click:Connect(function() Frame1.Visible = not Frame1.Visible end)
I tested it , so it 100% working
By the code in the comments, it seems you're getting it from StarterGui rather than PlayerGui. StarterGui is where you store the UIs in which they get when they spawn, PlayerGui is for the current UI interface they have.