Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Trying to make a script to remove everything in backpack, but something wrong?

hello i have script which when you click, it removes everything in your backpack, then puts a new gun, but the problem is, if your holding the pistol it does"t remove the pistol then adds the new gun?

1 comment

0

if u need the script please tell

1 answer

✓ Accepted answer

Hi Cjay,

The reason for why it doesn't remove an equipped gun is simple. It doesn't remove an equipped gun because once a tool is equipped, it becomes parented to the character. So, what you want to do is check the character for tools as well, and remove them. Then, all the tools should be removed. I won't give you the script but, if you're a scripter that can remove things from the backpack, you can most likely remove things from the character.

##I hope I helped and have a nice day/night.

Thanks,

Best regards,

~~ KingLoneCat

2 comments

0

thanks ill test it right away, by the way, by character u mean the character of the player?

0

Yes, the character is the character of the player. It's found in the workspace with the same name as the player and is what you can see in the game.

This discussion is preserved as it was. New answers, comments, and votes are closed.