How to fix this?

how to fix this error? i was trying to make if hitbox.Touched the wall dissapear

Transparency is not a valid member of Model
hitbox.Touched:Connect(function(hitpart)
			if not hitpart:IsDescendantOf(char) then
				if not hitpart.Parent:FindFirstChild("Humanoid") then
					local enemy = hitpart.Parent
					for i,v in pairs(hitpart.Parent:GetDescendants()) do
						if v:IsA("BasePart") then

Mate, Half of it is gone. Can you send the full script

You can’t make transparent to a model, you can only make transparent to all the parts inside the model. That means you will have to loop through the model, check if the instance inside the model is a part, then make the part invisible

		local hitbox = script.Hitbox:Clone()
		hitbox.Parent = workspace
		hitbox.CFrame = standroot.CFrame
		deb:AddItem(hitbox,.4)
		local ignorelist = {} 

		hitbox.Touched:Connect(function(hitpart)
			if not hitpart:IsDescendantOf(char) then
				if not hitpart.Parent:FindFirstChild("Humanoid") then
					local enemy = hitpart.Parent
					for i,v in pairs(hitpart.Parent:GetDescendants()) do
						if v:IsA("BasePart") then
							enemy:Clone()

							enemy.Transparency = 1

							enemy:Destroy()

							wait(5)

							local tweenInfo = TweenInfo.new(
								1, 
								Enum.EasingStyle.Linear, 
								Enum.EasingDirection.InOut, 
								0, 
								false, 
								0 
							)

							local goal = {Transparency = 0}
							local tween = TweenService:Create(enemy, tweenInfo, goal)
							tween:Play()
						end
					end
				end
			end
		end)

You’d need to tween the transparency property of the BasePart instances which make up the enemy individually.