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

How do I create a GUI that appears when the specified folder is in your backpack?

Asked by 2 years ago

I did not know what to call it except for a folder with content inside. Effectively, when this folder is put in the player's backpack, all spells become able to be used. What I want to do is make it so that a GUI also appears which will have all the keybinds for the spells on it. I do not know how to make the GUI appear when the folder is in your backpack and was wondering how since there are going to be multiple elements and I only want the element the player is using's GUI to appear. I can do this with a tool but I am not using a tool so I do not know how to go about this.

1 answer

Log in to vote
0
Answered by
lamgogo 56
2 years ago
Edited 2 years ago

If you can give the gui's script and the current script,i can help,but maybe what u want is to use this:

local folderPar = --the parent that will hold the folder

--if in the folder's parent have many other variables
if folderPar:FindFirstChild("Folder name here") then
-- open the gui
end

this should be in gui script,this code is the requirement for the gui to appear if u give me the gui script i can put it inside for u

0
Sorry for the late reply, the only code I have is the code to open the GUI on button click. What I want to do is to make it so that the button to open this GUI only appears if the folder is in your backpack. ThatShadowRein 18 — 2y
0
ok so can u give me the gui open code,i can write the full script for u lamgogo 56 — 2y
Ad

Answer this question