- What do you want to achieve? Keep it simple and clear!
I want to achive withing Tool that don’t remove from Gui, Is it Classes Gun
I want a certain tool(name) that don’t remove from Player.Backpack,Tool stay and other will remove.
- What is the issue? Include screenshots / videos if possible!
AssignClass Script
player = script.Parent.Parent.Parent
backpack = player.Backpack
function chooseClass(class)
for i, v in pairs(backpack:GetChildren()) do v:remove() end
for i, v in pairs(class:GetChildren()) do
if v:IsA(“Tool”) then
v:clone().Parent = backpack
elseif v:IsA(“HopperBin”) then
v:clone().Parent = backpack
end
end --classes dissapear – info dissapears also
end
for i, v in pairs(script.Parent.Box:GetChildren()) do
wait(.2)
v.MouseButton1Up:connect(function () chooseClass(v) end)
end
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I searched Tool remover with specified, to use that script to modify into that script.
Tool remover Script
ch=p.Backpack:getChildren()
for i = 1, #ch do
if ch[i].Name~=“Reset” and ch[i].Name==“BuildInsert” and ch[i].Name~=“ToolName” and ch[i].Name~=“ToolName” and ch[i].Name~=“ToolName” and ch[i].Name~=“ToolName” and ch[i].Name~=“ToolName” then ch[i]:Remove() end
I don’t understand between with ~= and == Need help from the script, that i don’t want a certain Tool remove and other will. Need help with those, I don’t know if im doing right.
If you don’t undertstand, please reply here.