Dark_EccentricYT

Untitled

Sep 5th, 2017
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1.  
  2.  
  3. script.Name = "Shade"
  4. Player = game.Players.LocalPlayer
  5. Character = Player.Character
  6. script.Parent = Character
  7. Mouse = Player:GetMouse()
  8.  
  9. shaded = false
  10.  
  11.  
  12. function Weld(p0,p1,c0)
  13. local weld = Instance.new("Weld",p0)
  14. weld.Part0 = p0
  15. weld.Part1 = p1
  16. weld.C0 = c0 or CFrame.new()
  17. return weld
  18. end
  19.  
  20. Character.Torso.Changed:connect(function()
  21. if shaded then
  22. Character.Torso.CanCollide = false
  23. Character.Head.CanCollide = false
  24. end
  25. end)
  26.  
  27. game:GetService('RunService').Stepped:connect(function()
  28. if shaded then
  29. Character.Torso.CanCollide = false
  30. Character.Head.CanCollide = false
  31. end
  32. end)
  33.  
  34. Torso = Character.Torso
  35.  
  36. function Melt(rev)
  37. local Melsp = Instance.new("Part",Character)
  38. Melsp.CanCollide = false
  39. Melsp.BrickColor = BrickColor.new("Really black")
  40. local Melme = Instance.new("SpecialMesh",Melsp)
  41. Melme.MeshType = "Sphere"
  42. Melme.Scale = Vector3.new(20,40,20)
  43. Melsp.formFactor = 3
  44. Melsp.Size = Vector3.new(0.2,0.2,0.2)
  45. Melsp.Position = Torso.Position
  46. local Melwe = Weld(Torso,Melsp)
  47. coroutine.resume(coroutine.create(function()
  48. if not rev then
  49. for i = 40,10,-3 do
  50. Melme.Scale = Vector3.new(20,i,20)
  51. wait()
  52. end
  53. else
  54. for i = 10,40,3 do
  55. Melme.Scale = Vector3.new(20,i,20)
  56. wait(0.001)
  57. end
  58. end
  59. end))
  60. coroutine.resume(coroutine.create(function()
  61. if not rev then
  62. for i = -1,-5,-0.2 do
  63. Melwe.C0 = CFrame.new(0,i,0)
  64. wait()
  65. end
  66. else
  67. for i = -5,-1,0.2 do
  68. Melwe.C0 = CFrame.new(0,i,0)
  69. wait()
  70. end
  71. end
  72. Melsp:Destroy()
  73. end))
  74. end
  75.  
  76. function Invisible()
  77. Character.Head.face.Transparency = 1
  78. for _,v in pairs(Character:children()) do
  79. if v:IsA("Part") then
  80. v.Transparency = 1
  81. v.CanCollide = false
  82. elseif v:IsA("Hat") then
  83. v.Handle.Transparency = 1
  84. end
  85. end
  86. end
  87.  
  88. function Visible()
  89. Character.Head.face.Transparency = 0
  90. for _,v in pairs(Character:children()) do
  91. if v:IsA("Part") then
  92. v.Transparency = 0
  93. elseif v:IsA("Hat") then
  94. v.Handle.Transparency = 0
  95. end
  96. end
  97. end
  98.  
  99.  
  100. function Part(parent,size)
  101. part = Instance.new("Part",parent)
  102. part.formFactor = 3
  103. part.Size = size
  104. return part
  105. end
  106.  
  107. trailmod = Instance.new("Model",Character)
  108.  
  109. function Trail()
  110. for _,v in pairs(trailmod:children()) do
  111. pcall(function()
  112. if v.Mesh.Scale.x <= 0 then
  113. v:Destroy()
  114. else
  115. v.Mesh.Scale = v.Mesh.Scale + Vector3.new(-0.2,0,-0.2)
  116. end
  117. end)
  118. end
  119.  
  120. local trail = Part(trailmod,Vector3.new(0.35,0.35,0.35))
  121. trail.CanCollide = false
  122. trail.BrickColor = BrickColor.new("Really black")
  123. trail.Anchored = true
  124. Instance.new("CylinderMesh",trail).Scale = Vector3.new(10,0.1,10)
  125. trail.CFrame = Torso.CFrame*CFrame.new(0,-3,0)
  126. end
  127.  
  128. Mouse.KeyDown:connect(function(k)
  129. k = k:lower()
  130. if k == "m" then
  131. if shaded then
  132. Melt(true)
  133. coroutine.resume(coroutine.create(function() wait(0.9) Visible() shaded = false end))
  134. else
  135. shaded = true
  136. Invisible()
  137. Melt()
  138. Trail()
  139. end
  140. end
  141. end)
  142.  
  143. Running = false
  144.  
  145. Character.Humanoid.Running:connect(function(speed)
  146. if speed > 0 then
  147. Running = true
  148. coroutine.resume(coroutine.create(function()
  149. repeat
  150. if shaded then
  151. Trail()
  152. end
  153. wait(0.01)
  154. until Running == false
  155. end))
  156. else
  157. Running = false
  158. end
  159. end)
  160.  
  161. --mediafire gtfo password
Add Comment
Please, Sign In to add comment