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

How to transparent a humanoid?

How do I make a character humanoid 1 transparent for an unlimited amount of time when it touches or collides into a part?

3 comments

1

Is this a joke

0

i cant stop laughing lmao

0

Guys be polite, he may not generally know how to do this. I would suggest learning Transparency and how to access the humanoid of a player, check the wiki or YouTube videos.

1 answer

I will assume you mean one of the Players part such as torso. Here is what I think and what you may want.

game.Players.LocalPlayer.Character.Torso.Transparency = 1 ---Makes it invisible(invisibility is set from 0-1, visible to invisible)

game.Players.LocalPlayer.Character.Humanoid.Transparency = 1 ---That's seems what you are asking, but I doubt it will make the whole player invisible seeing how Humanoid is what basically holds the health of a player, and other things too.

If you want to make the player invisible you will have to individually make the parts of the player invisible. For things like RightArm or RightLeg I would do

game.Players.LocalPlayer.Character["RightArm"] To make it where when the player touches a part you would do,

script.Parent.Touched:connect(function(hit) --Code here end)

That would assume that the script was in the part you want to execute code when touched.

You would have to check of the humanoid exist and use the parameter. That is generally how it is set up.

Simply because you cannot do spaces in Lua. Hope this helped!

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