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

How do I script a Inventory GUI with two "Equip" buttons? [See post for more details]

Asked by 5 years ago

So basically I am making a game similar to MM2 where you can collect knife and gun skins and I am trying to make a Inventory GUI for the game as shown below. !enter image description here I made two test "Tools" and added them to the starter pack to test out how the GUI functions and sure enough, they appeared in the GUI. However, when you click on one of the blank squares, the labels or one of the labels is supposed to change to "Tool" instead of keep saying label but it doesn't. Also, when that happens, you should be able to click on Equip and that should equip the Tool which is actually just a basic "part".

Here are my lines of script that I used to create this GUI: !enter image description here !enter image description here !enter image description here But yeah that's basically it. If anyone here knows what the problem is and how to fix it, I would greatly appreciate it! Thanks!

0
I can barely understand some of the explanation but I'll see what I can do. ItsBankai 31 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

In your first script, line 21, the thing says "button.Name = v.Name". If you want the text to change you have to make it "button.Text = v.Name"

Ad

Answer this question