Character becomes invisible after animation

i made my character visible in first person with the following line (this is just for torso)

character:WaitForChild("Torso").LocalTransparencyModifier = 0 

this is what happens when the animation is triggered, it goes invisible.


i have reason to believe this is a serverside issue

if input.KeyCode == Enum.KeyCode.F and maskon == false   and vb == false then
			vb = true
			maskon = true
			local anim = player.Character.Humanoid:LoadAnimation(ani)
			anim.Looped = false
			anim:Play()
			wait(.72)
			dataevent:FireServer(133)
			wait(2)
			vb = false
			
			--motos.C0.Position = Vector3.new(0, 0.089, -0.059)
			
		
			return
		end

when the data event is set to a comment ie --dataevent:FireServer(133)
then the character going invisible doesnt happen, but then it doesn’t show the mask server side so i need it.
serverside script:

	if prm == 133 then
	
		
		
		local msk = reps.Mask:Clone()
		local motos = Instance.new("Motor6D")
		msk.Parent= player.Character
		motos.Parent = player.Character:WaitForChild("Head")
		print(motos.Parent)
		motos.Part0 = player.Character:WaitForChild("Head")
		motos.Part1 = msk
		local cfra = CFrame.new(0, 0.089, -0.059)
		motos.C0 = cfra
		print(msk.Parent)

		return
	end

i guess something in this server sided part of it is messing up the LocalTransparencyModifier of the players character? im unsure.

same video but with the fireserver not enabled

--dataevent:FireServer(133)

1 Like

it’s that mask to make player invisible or it’s gas mask?

edit: maybe the loop fault

1 Like

the gas mask makes the player invisible in the local game not server. the script above showing the serverside somehow effects it

after wearing Mask does it Show UI of Mask?