Character's Shirt is Glitching

So I got this problem with my invisible skill when the player returns to the visible state the character’s shirt is kinda glitching out

Here’s a video of it : https://streamable.com/q604eb

this is the local script:

        local Char = Player.Character or Player.CharacterAdded:Wait()
		local Face = Char.Head:FindFirstChildOfClass("Decal")
		local CharParts = Char:GetDescendants()
		
		InvisibleinCooldown = true
		for i,v in pairs(CharParts) do
			if v:IsA("BasePart")then
				InvEvent:FireServer(v,Face)
			end
		end

and this is the server script:

InvEvent.OnServerEvent:Connect(function(player,charParts,face)
         charParts.Transparency = 1
         face.Transparency = 1
         wait(5)
         face.Transparency = 0
         charParts.Transparency = 0
end)

You’ll need to check if a part is named ‘HumanoidRootPart’, before setting it’s transparency back to 0, because that specific part is transparent by default.

3 Likes

I just tried doing that and it worked, thanks!