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

can someone help with my script error?

Asked by 10 years ago

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

Log in to vote
0
Answered by
IcyEvil 260 Moderation Voter
10 years ago

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)

Ad

Answer this question