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
It says that the Saved_Weapons folder is in the character, because player is a reference to the character, and when a tool is put into a roblox character it automatically equips the weapon (even in a object thats inside of the character).
So in order to fix this, try and moving the folder to another place besides the character.