game.ReplicatedStorage.Folder.inuisibilitas.OnServerEvent:Connect(function(player, Action) local CharToInvis = player.Character:GetChildren()
if Action == "First" then
for i,v in pairs(CharToInvis) do
if v:IsA("Accessory") then
v:Destroy()
end
if v:IsA("Humanoid") then
return
end
v.Transparency = 1
end
end
end)

2 comments
well you just posted the answer yourself...
it's not working for me in roblox studio