I am trying to wield a gun to the player, but every time this happens, the player equips the tool, how can I disable the equip?
@A9X that will only unequip if the player has already equipped the tool
Instead hide the core gui of backpack
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false)
for more on this: StarterGui | Documentation - Roblox Creator Hub
if you need it still enabled while the player is equipping follow what Timothy says
If you parent a tool to a player’s character, they will automatically equip it. Try parenting it somewhere else or removing the tool object.
Don’t use a tool object. Contain the gun’s model in a model, parent it to the character and weld it to their hand. Typically, this is done by using a proxy part which is the same size of the hand (RightHand on R15, Right Arm for R6) that’s invisible and attached to the gun.
Also, it only will fire when the player manually unequips it too. Maybe try adding a folder into the player’s character using Instance.new(“Folder”), then put the gun in there? Let me know if this works.
In the default Animate script there is an animation called toolnone, when u remove that animation the equip animation will stop.
I believe they want to remove the equipping part, not the animation…
So wait, another solution, change the gun’s handle’s name to “Base”, or something similar. It can even just be “handle” with lowercase h! That’s all you’ve gotta do really. if you want the player to be able to equip it later, say after a cutscene, just say:
-- ^cutscene scripting^ -- player.Character.Guns.AK47:FindFirstChild([Handle's name]).Name = "Handle" -- you can change the "Character.Guns.AK47" path to the real path.--