i disabled the backpack gui and i want to use EquipTool() to have a specific player equip a tool.
wait(5)
local randomPlayer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
randomPlayer.TeamColor = BrickColor.new("Really black")
randomPlayer.character.LowerTorso.CFrame = CFrame.new(workspace.KillerSpawn.Position)
randomPlayer.character.Head.face.Texture = 'http://www.roblox.com/asset/?id=2383072347'
randomPlayer.character.Head.BrickColor = BrickColor.new("Really black")
randomPlayer.character.LeftFoot.BrickColor = BrickColor.new("Really black")
randomPlayer.character.LeftHand.BrickColor = BrickColor.new("Really black")
randomPlayer.character.LeftLowerArm.BrickColor = BrickColor.new("Really black")
randomPlayer.character.LeftLowerLeg.BrickColor = BrickColor.new("Really black")
randomPlayer.character.LeftUpperArm.BrickColor = BrickColor.new("Really black")
randomPlayer.character.LeftUpperLeg.BrickColor = BrickColor.new("Really black")
randomPlayer.character.LowerTorso.BrickColor = BrickColor.new("Really black")
randomPlayer.character.RightFoot.BrickColor = BrickColor.new("Really black")
randomPlayer.character.RightHand.BrickColor = BrickColor.new("Really black")
randomPlayer.character.RightLowerArm.BrickColor = BrickColor.new("Really black")
randomPlayer.character.RightLowerLeg.BrickColor = BrickColor.new("Really black")
randomPlayer.character.RightUpperArm.BrickColor = BrickColor.new("Really black")
randomPlayer.character.RightUpperLeg.BrickColor = BrickColor.new("Really black")
randomPlayer.character.UpperTorso.BrickColor = BrickColor.new("Really black")
randomPlayer.character.Humanoid:RemoveAccessories()
randomPlayer.character.Shirt:Destroy()
randomPlayer.character.Pants:Destroy()
randomPlayer.character.Humanoid:EquipTool(game.StarterPack.Katana)
this works, up until the equiptool part. it only equips the tool. it doesnt function at all (like it doesnt attack) and when i tried it outside of studio it doesnt even equip it at all. PLEASE help me with this i really need it and ive tried all day and not a single person has actually helped me out on this
also, its a regular script in serverscriptservice

6 comments
If you want to use EquipTool(), then why aren't you using it? Why are you trying to clone the tool to the character?
crap, i just realized this is the older script oh my god, here i will fix it
You shouldn't really use EquipTool() to equip a tool from the StarterPack. You should equip the tool from the player's Backpack using the code you can find in my answer.
Wait, how would I get the tool into the player's backpack? Sorry for being stupid I'm just sorta new at this
It's no problemo, amigo. The tool is automatically cloned into the player's Backpack when you put it in StarterPack in Studio. The Backpack is inside of the player itself, and is where the tools in the player's inventory, so to speak, are stored. For example, when in game and you see the tools at the bottom of the screen, you are looking at the tools that are in the player's Backpack.
OH. Well, I used what you showed me (but I replaced player with my randomPlayer variable ofc) and it still had the same result, it equipped it and placed it in my hand, but didn't attack or function at all and yet again doesn't even equip outside of studio.