HayHay
1
Is it possible to make it so when you go up to the trash can to clear your inventory, you can make it so you can’t clear some items, such as a room key? Thanks if you can lmk!
HayHay
I’m pretty sure you can modify the script in there to delete a certain item with a certain name.
Noah
3
Alright, so you have the current code, right?
If so, send it to me please, then we can go over it.
HayHay
4
LocalScript or ServerScript?
HayHay
7
LOL. (20char) I am probably not right…
HayHay
8
Also, here is a suggestion: Airport Gate System/Boarding System
Noah
9
Out of interest, why would you say “LocalScript”?
HayHay
10
The one that is in StarterGUI, and that is a LocalScript.
Noah
11
Alright, but why would you pick that, what’s inside the code that would persuade you to do that?
1 Like
HayHay
12
In the video, it said to…
Noah
13
I asked you what script you think we should edit to achieve what you want to?
1 Like
HayHay
14
Oh! Because it has the most of the script.
I think cookie is looking for a better answer, to ensure you understand some of the code in there.
1 Like
Noah
16
Yeh, we’re a bit off there, we should be using the ServerScriptService script, this is as we have our delete function inside of it, anyway, let’s continue, how do you want to prevent an item from being deleted, if it has a certain name, or do you have a different way of identifying it?
1 Like
Noah
18
Alright, well we want to make this code efficient, right?
1 Like
HayHay
19
Yessirree! (20charrrrrrr)
Noah
20
Epic, so we should probably make a table with the names of the objects we want to protect, have a go at that.
1 Like