Problem with IsA:

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make the character invisible
  2. What is the issue? Include screenshots / videos if possible!
    It’s only making the humanoidrootpart visible and other parts no
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Debugging

so I made the code loop on the character’s children if the character’s children are a part then change its transparency

local character=game:GetService("Players"):FindFirstChild(target).Character
		for i,v in ipairs(character:GetChildren()) do
			print(v)
			if v:IsA("part") then
				print(v)
				local x=0
				print("xx")
				--Here we handle the part Transparency so it be invisible 
				--if transparency==1 then its invisible and you know what we should do
				if v.Transparency==1 then
					v.Transparency=0
					x=1
					print("x")
					end
				if v.Transparency==0 and x==0 then
					print("x")
					v.Transparency=1
				end
			end
			
		end
		
	end

change that to

if v:IsA("BasePart") then
1 Like