I have this portion of my script:
local player = hit.Parent --It's a character, not an actual player.
player:WaitForChild("Humanoid"):UnequipTools()
wait(.1)
for i,v in pairs(game.Players:GetPlayerFromCharacter(player).Backpack:GetChildren()) do
if v.ClassName == "Tool" then
v.Parent = player:WaitForChild("Saved_Weapons")
end
end
The problem here is that the script unequips all the tools in the character but for some reason the tool decides to come back to the character and not to the "Saved_Weapons" folder.
Why is this happening? Am I missing something?
Any help is appreciated!
Ty <3

2 comments
You could try setting its parent in saved_weapons folder each time? or something like if not blah.Parent then or if ~= blah.Parent then. If you get my drift. (sorry im terrible at scripting lol)
That would not change anything ;C