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

How do i make a ClickDetector that if pressed, shows the person's inventory? [More in bio]

I have a button with a ClickDetector, now I'm not sure how to make it so when you press the button with the ClickDetector, it shows a players inventory on a screen GUI on a part. It shows the players inventory which is in a certain place. I do not have any code to put here since I have no clue how to do this, and if it's even possible. Thank you in advance, any help appreciated.

1 comment

0

This is not a request site

1 answer

✓ Accepted answer

Okay so first step-1 Make a variable for where the screenbutton is step-2 Make a variable for where the inventory GUI is step-3 Make the inventory GUI disabled. Then write a script inside of the screen button. That contains this-

local screenbutton = script.Parent
local inventorygui = script.Parent.Parent.Inventory

screenbutton:MouseButton1Click(connect(function(Pressed)
inventorygui.Enabled = True
end)

Idk if this helped. But I am 100% sure I can help you if you give me a call on discord showing me the problem. You don't have to talk. You can just chat.

1 comment

0

disc: daniel99oslo #3852

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