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

can someone help with my script error?

I don't know what the problem is in this script. I need it to open up a description of a item in my shop but I already have the shop button to open but I used same script to do the description for the item but it doesn't work, ive to tried to fiddle with it?

can some help me?

heres the original script v

1 2 mainShop = script.Parent.Parent.MainShop 3 script.Parent.MouseButton1Click:connect(function() 4 if mainShop.Visible == false then 5 mainShop.Visible = true 6 script.Parent.Text = "Close" 7 else 8 mainShop.Visible = false 9 script.Parent.Text = "Shop" 10 end 11 end)

1 answer

well one you dont add numbers in that script anywhere... here you go.

mainShop=script.Parent.Parent.MainShop 
script.Parent.MouseButton1Click:connect(function() if mainShop.Visible == false
then mainShop.Visible = true 
script.Parent.Text = "Close" 
else mainShop.Visible = false script.Parent.Text = "Shop" end end)

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