yuriabel

Untitled

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