Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make characters invisible?

Asked by 5 years ago

Hi! I don’t know if this involves scripting or not, but I was wondering how to make my characters invisible so they can become a surprise to players when they get killed from stumbling upon them.

1 answer

Log in to vote
0
Answered by 5 years ago
Edited by royaltoe 5 years ago

Acess the players character and change their transparency to 0

1repeat wait() until game.Players.LocalPlayer.Character
2 
3character = game.Players.LocalPlayer.Character
4 
5for i, v in pairs(character:GetDescendants())do
6    if(v:IsA:("BasePart") or v:IsA("Decal") then
7        v.Transparency = 1
8    end
9end
Ad

Answer this question