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

I have problems with destroy all gears from backpack?

Asked by
tykoone -8
6 years ago

when i have equipped one of gears and script runs equipped gear will stay in my backpack...

0
i don't understand what your trying to say just do clear all children if you are trying to destroy everything in the backpack. GameBoyOtaku 63 — 6y
0
You already know the problem: Tools can remain equipped. Now account for it.. the same way you accounted for tools in the backpack Goulstem 8144 — 6y

2 answers

Log in to vote
1
Answered by 6 years ago

If you have a tool equipped, it won't destroy it. First you have to run UnequipTools on the Humanoid to unequip all tools. After that you run ClearAllChildren on the backpack to clear the backpack.

Humanoid:UnequipTools()
Backpack:ClearAllChildren()
0
You helpped me im not a good scripter so i didnt kbow about UnequipTools so im going to get a basic scripting book thank you still! tykoone -8 — 6y
0
ROBLOX is sandboxed Lua. You won't be able to find them in a Lua scripting book. hiimgoodpack 2009 — 6y
0
ik tykoone -8 — 6y
Ad
Log in to vote
0
Answered by
Audiimo 105
6 years ago
Edited 6 years ago

I think I know what you are trying to say and you can use :UnequipTools() or :ClearAllChildren(). Next time you try to ask for help make sure you provide code! We can't help or understand 100% of everything without code, but anyway I hope this helped you.

0
same for you sorry if you frist didnt understand :) tykoone -8 — 6y

Answer this question