I very well know the Unequipped Event and i know how to use it. Although once i added the Unequipped Event to the script, when ever I would Equip it once again it wouldn't work. Why?(This is FE)
--Local script--
repeat wait() until game.Players.LocalPlayer.Character
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
en = true
script.Parent.Equipped:Connect(function()
script.Disabled = false
Mouse.KeyDown:Connect(function(Key)
if Key == "r" then
if not en then return end
en = false
script.Parent.RemoteEvents:FireServer()
wait(0.5)
en = true
end
end)
end)
script.Parent.Unequipped:Connect(function()
script.Disabled = true
end)
--Server script--
script.Parent.RemoteEvents.OnServerEvent:Connect(function()
local Part = Instance.new("Part")
Part.Parent = game.Workspace
Part.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,0,-5)
Part.BrickColor = BrickColor.new("Really black")
end)
