I’m making a tool system that if you unequip the item, it drops it. But the only way I found of to do this is with this .Unequipped event, but it does nothing ingame.
local UIS = game:GetService("UserInputService")
local rep = game:GetService("ReplicatedStorage")
local event = rep.Events.SendItemDrop
local item = script.Parent
UIS.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.Backspace and game.Players.LocalPlayer.Character:FindFirstChild(item.Name) then
event:FireServer(item)
end
end)
script.Parent.Unequipped:Connect(function() --Here
event:FireServer(item)
end)