Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I don't know how to make the left leg on a player invisible?

I'm trying to make the left leg invisible whenever I touch a block. So far I have the touch part set up, but I don't know what to put with the If statement. I know I need to set it up with transparency, but I don't know what to do further than that.

script.Parent.Touched:Connect(function(p)
	local human = p.Parent:FindFirstChild("Humanoid")
	
	if human.className == "Humanoid" then
		


	end
	end)

1 answer

✓ Accepted answer

It's pretty simple. When part is touched, check if the object touching it is an actual player character (check if the humanoid exists), if so then do thing.

script.Parent.Touched:Connect(function(Hit)
	local Humanoid = Hit.Parent:FindFirstChild("Humanoid")
	if Humanoid then
		Humanoid.Parent.LEFTLEG.Transparency = 1
	end
end)

Replace LEFTLEG with the name of the character leg to make invisible since I can't remember R15 limb names.

1 comment

0

thanks so much

This discussion is preserved as it was. New answers, comments, and votes are closed.