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 4 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 4 years ago
Edited by royaltoe 4 years ago

Acess the players character and change their transparency to 0

repeat wait() until game.Players.LocalPlayer.Character

character = game.Players.LocalPlayer.Character

for i, v in pairs(character:GetDescendants())do
    if(v:IsA:("BasePart") or v:IsA("Decal") then
        v.Transparency = 1
    end
end
Ad

Answer this question