SHOW:
|
|
- or go back to the newest paste.
1 | Player = game.Players.LocalPlayer | |
2 | Char = Player.Character | |
3 | Mouse = Player:GetMouse() | |
4 | invis = false | |
5 | ||
6 | Mouse.KeyDown:connect(function(key) | |
7 | - | if key:lower() == "0" then |
7 | + | if key:lower() == "z" then |
8 | if not invis then | |
9 | for i,v in pairs(Char:children()) do | |
10 | - | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then |
10 | + | if v:IsA("Part") and v.Name ~= "Torso" then |
11 | v.Transparency = 1 | |
12 | local f = Instance.new("ParticleEmitter",v) | |
13 | f.Name = "Particle" | |
14 | f.Color = ColorSequence.new(BrickColor.new("White").Color, BrickColor.new("Really black").Color) | |
15 | - | f.Texture = "http://www.roblox.com/asset/?id=285779809" |
15 | + | f.Texture = "http://www.roblox.com/asset/?id=179527864" |
16 | f.Size = NumberSequence.new(0.20) | |
17 | f.Transparency = NumberSequence.new(0) | |
18 | f.Lifetime = NumberRange.new(1,1) | |
19 | f.Rate = math.small | |
20 | f.Rotation = NumberRange.new(math.huge) | |
21 | f.RotSpeed = NumberRange.new(math.huge) | |
22 | f.Speed = NumberRange.new(0) | |
23 | if Char.Head:findFirstChild("face") then | |
24 | Char.Head.face.Parent = Char | |
25 | Char.Humanoid.WalkSpeed = 50 | |
26 | end | |
27 | elseif v:IsA("Hat") then | |
28 | if v.Handle then | |
29 | v.Handle.Transparency = 1 | |
30 | end | |
31 | end | |
32 | end | |
33 | ||
34 | invis = true | |
35 | elseif invis then | |
36 | - | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then |
36 | + | |
37 | - | v.Transparency = 0 |
37 | + | if v:IsA("Part") and v.Name ~= "Torso" then |
38 | v.Transparency = 1 | |
39 | if v.Particle then | |
40 | v.Particle:Destroy() | |
41 | end | |
42 | elseif v:IsA("Hat") then | |
43 | if v.Handle then | |
44 | v.Handle.Transparency = 0 | |
45 | end | |
46 | end | |
47 | end | |
48 | if Char.face then | |
49 | Char.face.Parent = Char.Head | |
50 | end | |
51 | Char.Humanoid.WalkSpeed = 16 | |
52 | invis = false | |
53 | end | |
54 | end | |
55 | end) |