I am trying to fire a remote event when the player clicks a button but nothing is happening and I am not getting any errors.
Local Script:
local equip = workspace:WaitForChild("Remotes"):WaitForChild("EquipShaggy")
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
equip:FireServer(player,"HI")
end)
Server Script:
script.Parent.OnServerEvent:Connect(function(player,shaggy)
print("Fired")
local char = workspace:FindFirstChild(player.Name)
local d = char:GetChildren()
for i = 1,#d do
if d[i]:IsA("Accessory") then
d[i]:Destroy()
print(d[i].Name.." succefully removed")
end
end
end)

2 comments
dont put remote events in the workspace, use replicated storage
you don't need to send the player object over, it is sent by default