You know how when your gun is equipped or unequipped the gun is in different places right? That is my problem.
I tried two scripts to solve this. 1 for the gun in the character, and 1 for the gun being in the player's backpack.
The purpose of the script is to remove the gun when you stand up after you were sitting down from a certain seat.
Is there anything wrong with these scripts?
--When gun is equipped while true do wait() if script.Parent.Parent:FindFirstChild("Humanoid").Sit == false then script.Parent:remove() end end
--When gun is unequipped while true do wait() if script.Parent.Parent.Parent:FindFirstChild("Character"):FindFirstChild("Humanoid").Sit == false then script.Parent:remove() end end
I need an answer immediately.
You misspelled Humanoid in the 4th line of When the gun is unequiped