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

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

Asked by 3 years ago
Edited 3 years ago

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)

0
Can you please share the script? tomekcz 174 — 3y
0
first of all , show me ur script xbloodyguyx 10 — 3y
0
look , if u have in script smh like xbloodyguyx 10 — 3y
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) KoneGFX 2 — 3y
0
thats the script KoneGFX 2 — 3y

2 answers

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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

0
btw , dont forget to put it in a local script , not just script xbloodyguyx 10 — 3y
0
btw at line 11 put end) aswell xbloodyguyx 10 — 3y
0
i put this and its not working... KoneGFX 2 — 3y
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) KoneGFX 2 — 3y
View all comments (6 more)
0
dud , u prob didnt put the frames as i told u xbloodyguyx 10 — 3y
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 xbloodyguyx 10 — 3y
0
wait , ill edit my answer and put the script there xbloodyguyx 10 — 3y
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 xbloodyguyx 10 — 3y
0
THANK YOU IT WORKED FINALLLYYY!!! THANK YOUUU!! KoneGFX 2 — 3y
0
np :) im happy for u xbloodyguyx 10 — 3y
Ad
Log in to vote
0
Answered by
pwx 1581 Moderation Voter
3 years ago

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.

0
it didnt work.. KoneGFX 2 — 3y
0
check mine dude xbloodyguyx 10 — 3y

Answer this question