Trying to write a script that make the player transparent but it's just too long
Paste the following script;-
01 | for i,v in pairs (game.Players.LocalPlayer.Character:GetChildren()) do |
02 | if v.IsA( "Accessory" ) then |
03 | wait() |
04 | v:FindFirstChild( "Handle" ).Transparency = 1 |
05 | end |
06 | end |
07 |
08 | --now for parts |
09 |
10 | for i,v in pairs (game.Players.LocalPlayer.Character:GetChildren()) do |
11 | if v.IsA( "Part" ) then |
12 | wait() |
13 | v.Transparency = 1 |
14 | end |
15 | end |
LocalScript inside of StarterCharacterScripts.
01 | local player = game.Players.LocalPlayer |
02 | local character = player.Character |
03 |
04 | local function ghost(part) |
05 | if part:IsA( "BasePart" ) then |
06 | part.Transparency = 1 ; |
07 | end |
08 | end |
09 |
10 | -- Invokes AFTER the for loop when something is added to character. |
11 | character.DescendantAdded:connect( function (part) |
12 | ghost(part) |
13 | end ) |
14 |
15 | -- Takes everything that is currently loaded in character and calls ghost |
16 | for i,v in pairs (character:GetChildren()) do |
17 | ghost(v) |
18 | end |