I have this script on the client -
local RS = game:GetService(“ReplicatedStorage”)
local Equip = RS:WaitForChild(“Equip”)
script.Parent.MouseButton1Click:Connect(function(Player)
local clone = game.ReplicatedStorage.Halos.WhiteHalo:Clone()
script.Parent.MouseButton1Click:Connect(function()
if game.Players.LocalPlayer.leaderstats.Stage.Value >= 1 then
end
end)
Equip:FireServer(clone)
end)
And this script on the server:
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local Equip = ReplicatedStorage:WaitForChild(“Equip”)
local Halo = ReplicatedStorage.Halos:WaitForChild(“WhiteHalo”):Clone()
local Players = game:GetService(“Players”)
Equip.OnServerEvent:Connect(function(player, halo)
game.ReplicatedStorage.Equip.OnServerEvent:Connect(function(Player,Halo)
local clone = game.ReplicatedStorage.Halos.WhiteHalo:Clone()
Player.Character.Humanoid:AddAccessory(clone)
end)
end)
So, I would like to make whenever you press the equip button a second time it unequips the item.