Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why its remove when i equip tool and how to fix?

Asked by 5 years ago
script.EquipSword.OnServerEvent:connect(function(plr,w,v)
plr.Character.Humanoid:EquipTool(plr.Inventory:FindFirstChild(v.Name))
end)
0
its not inside the humanoid Gameplayer365247v2 1055 — 5y

1 answer

Log in to vote
0
Answered by
CjayPlyz 643 Moderation Voter
5 years ago
Edited 5 years ago

script.EquipSword.OnServerEvent:connect(function(plr,w,v) plr.Character.Humanoid:EquipTool(plr.Backpack:FindFirstChild(v.Name)) end)

It's plr.Backpack not plr.Inventory

0
custom inventory dark_nineret -25 — 5y
Ad

Answer this question