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

How can I make a CSGO style "Buy Menu" inventory?

Asked by 5 years ago
Edited 5 years ago

What I'm trying to make is an inventory similar to the CSGO "Buy Menu" or the inventory from SCP Secret Laboratory. Here's what it looks like.

https://gyazo.com/bf11da81dc16f9199eb93320712299b8

What I want to accomplish is when the mouse hovers over a certain section the lit up part lights up that section. I cant make buttons that match the shape of the selection so I cant light up an area when its hovered over. Any ideas on how to make this happen?

0
Sorry, its wrong site for u. this site for helping with scripting not for giving ideas. Makz69 0 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Use MouseHoverEnter function.

Example:

script.Parent.MouseEnter:Connect(function()
    script.Parent.BackgroundTransparency = 1
end)

script.Parent.MouseLeave:Connect(function()
    script.Parent.BackgroundTransparency = 0
end)

When the mouse enters the button, it will change the transparency to 1, when it leaves, it changes it to 0.

Ad

Answer this question