Making an invis script and the script doesn’t work past the :IsA() if statement:
game.ReplicatedStorage:WaitForChild("TurnInvis").OnServerEvent:Connect(function(character, invis)
for _, part in pairs(character:GetDescendants()) do
print(1)
if part:IsA("BasePart") or part:IsA("Decal") then
print(2)
end
end
end)