rubikz

Untitled

Aug 5th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Player = game.Players.LocalPlayer
  2. Char = Player.Character
  3. Mouse = Player:GetMouse()
  4. invis = false
  5.  
  6. --Made by Auma
  7.  
  8. local s = Instance.new("Sound")
  9.  
  10. s.Name = "Sound"
  11. s.SoundId = "http://www.roblox.com/asset/?id=142633540"
  12. s.Volume = 2
  13. s.Looped = true
  14. s.archivable = false
  15.  
  16. s.Parent = game.Workspace
  17.  
  18. wait(3)
  19.  
  20. s:play()
  21.  
  22. Mouse.KeyDown:connect(function(key)
  23. if key:lower() == "0" then
  24. if not invis then
  25. for i,v in pairs(Char:children()) do
  26. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  27. v.Transparency = 1
  28. local f = Instance.new("ParticleEmitter",v)
  29. f.Name = "Particle"
  30. f.Color = ColorSequence.new(BrickColor.new("White").Color, BrickColor.new("Really black").Color)
  31. f.Texture = "http://www.roblox.com/asset/?id=29304451"
  32. f.Size = NumberSequence.new(0.20)
  33. f.Transparency = NumberSequence.new(0)
  34. f.Lifetime = NumberRange.new(1,1)
  35. f.Rate = math.small
  36. f.Rotation = NumberRange.new(math.huge)
  37. f.RotSpeed = NumberRange.new(math.huge)
  38. f.Speed = NumberRange.new(0)
  39. if Char.Head:findFirstChild("face") then
  40. Char.Head.face.Parent = Char
  41. end
  42. elseif v:IsA("Hat") then
  43. if v.Handle then
  44. v.Handle.Transparency = 1
  45. end
  46. end
  47. end
  48.  
  49. invis = true
  50. elseif invis then
  51. for i,v in pairs(Char:children()) do
  52. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  53. v.Transparency = 0
  54. if v.Particle then
  55. v.Particle:Destroy()
  56. end
  57. elseif v:IsA("Hat") then
  58. if v.Handle then
  59. v.Handle.Transparency = 0
  60. end
  61. end
  62. end
  63. if Char.face then
  64. Char.face.Parent = Char.Head
  65. end
  66. Char.Humanoid.WalkSpeed = 30
  67. invis = false
  68. end
  69. end
  70. end)
Add Comment
Please, Sign In to add comment