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

when i press the ui button in the shop ui. the BUY button doesn't pop up...?

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)

5 comments

0

Can you please share the script?

0

first of all , show me ur script

0

look , if u have in script smh like

0

local frame = game.StarterGui.ShopFrame3.Frame -- change “Test” to the name of the frane local open = true script.Parent.MouseButton1Click:Connect(function() if frame.Visible == false then frame.Visible = true end end)

0

thats the script

2 answers

✓ Accepted answer

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

10 comments

0

btw , dont forget to put it in a local script , not just script

0

btw at line 11 put end) aswell

0

i put this and its not working...

0

local frame2 = script.Parent.Parent.Parent.Parent.GuitarInfoFrame local frame1 = script.Parent.Parent.Parent local guitarinfo = script.Parent.Parent.Parent.Parent.GuitarInfoFrame.ImageLabel frame2.MouseButton1Click:Connect(function() frame1.Visible = not frame1.Visible end) frame2.MouseButton1Click:Connect(function() frame2.Visible = true end)

0

dud , u prob didnt put the frames as i told u

0

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 , now here is the script:Frame1 = script.Parent.Frame1 ShopButton = script.Parent.Frame2.TextButt

0

wait , ill edit my answer and put the script there

0

it wokring for 100% i tested it in the studio , just do as i said and it will work , dnt forget to give me upvotes and make my asnwer as a sloution cuz my rep is bad , and im triying to make it good again

0

THANK YOU IT WORKED FINALLLYYY!!! THANK YOUUU!!

0

np :) im happy for u

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.

2 comments

0

it didnt work..

0

check mine dude

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