Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. wait(2)
  2.  
  3. plr = game.Players.LocalPlayer
  4. char = plr.Character
  5. hum = char.Humanoid
  6. hum.WalkSpeed = 0
  7.  
  8. for i,v in pairs(char:GetChildren()) do
  9. if v:IsA('Part') then
  10. v.Transparency = .6
  11. if v.Name == "Left Arm" then
  12. larm = v
  13. end
  14. if v.Name == "Right Arm" then
  15. rarm = v
  16. end
  17. if v.Name == "Left Leg" then
  18. lleg = v
  19. end
  20. if v.Name == "Right Leg" then
  21. rleg = v
  22. end
  23. if v.Name == "Head" then
  24. head = v
  25. end
  26. if v.Name == "Torso" then
  27. torso = v
  28. end
  29. if v.Name == "HumanoidRootPart" then
  30. hrp = v
  31. end
  32. if v:IsA('Accessory') then
  33. v.Handle.Transparency = .6
  34.  
  35. end
  36.  
  37. end
  38. end
  39. face = head.face
  40. parts={larm,rarm,lleg,rleg,torso,head,hrp,face}
  41.  
  42. char.Animate.Disabled = true
  43.  
  44.  
  45.  
  46. do
  47.  
  48. a = Instance.new('Animation')
  49. a.AnimationId = 'http://www.roblox.com/Asset?ID=865492655'
  50. t = hum:LoadAnimation(a)
  51. t:Play()
  52. wait(1.5)
  53. p = Instance.new('ParticleEmitter')
  54. p.Parent = hrp
  55. p.LightEmission = 999999984306749440.000
  56. p.LightInfluence = 9999999562023526247432192.000
  57. p.Size = NumberSequence.new(10)
  58. p.Texture = 'rbxassetid://29241119'
  59. p.Transparency = NumberSequence.new(.3)
  60. p.Lifetime = NumberRange.new(0.17)
  61. p.Rate = 100
  62. p.Rotation = NumberRange.new(100)
  63. p.RotSpeed = NumberRange.new(99999)
  64. p.Speed = NumberRange.new(100)
  65. p.VelocitySpread = 200
  66. for i=1,math.huge do
  67. if p.Rate == 0 then
  68. p:Remove()
  69. break
  70.  
  71.  
  72.  
  73. end
  74. p.Rate = p.Rate - 1
  75. if i>=70 then
  76. hum.WalkSpeed = 16
  77. char.Animate.Disabled = false
  78. end
  79. wait()
  80. end
  81.  
  82.  
  83.  
  84.  
  85. end
  86.  
  87. ms = plr:GetMouse()
  88. act = false
  89. qon = false
  90. function sws()
  91. for i,v in pairs(parts) do
  92. v.Transparency = .6
  93. end
  94. for i,v in pairs(char:GetChildren()) do
  95. if v:IsA('Accessory') then
  96. v.Handle.Transparency = .6
  97. end
  98. end
  99. end
  100. ms.KeyDown:connect(function(key)
  101. if key == 'g' then
  102. if act == false and qon == false then
  103. qon = true
  104. act = true
  105. pe = Instance.new('ParticleEmitter')
  106. pe.Parent = hrp
  107. pe.LightEmission = math.huge
  108. pe.LightInfluence = math.huge
  109. pe.Size = NumberSequence.new(4)
  110. pe.Texture = 'rbxasset://textures/particles/sparkles_main.dds'
  111. pe.Transparency = NumberSequence.new(0)
  112. pe.Lifetime = NumberRange.new(1)
  113. pe.Rate = math.huge
  114. pe.Rotation = NumberRange.new(0)
  115. pe.RotSpeed = NumberRange.new(0)
  116. pe.Speed = NumberRange.new(10)
  117. pe.VelocitySpread = -40
  118. pe.EmissionDirection = 'Back'
  119. for i,v in pairs(parts) do
  120. v.Transparency = 1
  121.  
  122.  
  123.  
  124. end
  125. for i,v in pairs(char:GetChildren()) do
  126. if v:IsA('Accessory') then
  127. v.Handle.Transparency = 1
  128. end
  129. end
  130. hum.WalkSpeed = 60
  131. hum.JumpPower = 120
  132. else
  133. qon = false
  134. act = false
  135. pe:Remove()
  136. hum.WalkSpeed = 16
  137. hum.JumpPower = 50
  138. sws()
  139. end
  140. end
  141. if key == 'f' then
  142.  
  143. if act == false then
  144. if ms.Target then
  145. if ms.Target:FindFirstChild('Humanoid') then
  146. local t = ms.Target.Parent.HumanoidRootPart
  147.  
  148.  
  149.  
  150.  
  151. force = Instance.new('Part', workspace)
  152. force.Size = Vector3.new(1,1,1)
  153. force.Anchored = false
  154. force.CanCollide = false
  155. force.CFrame = CFrame.new(hrp.Position.X,hrp.Position.Y,hrp.Position.Z)
  156.  
  157. bp = Instance.new('BodyPosition',force)
  158. bp.MaxForce = Vector3.new(500000000, 500000000, 500000000)
  159. bp.P = 20000
  160. bp.Position = t.Position
  161.  
  162. end
  163. end
  164. end
  165. end
  166.  
  167. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement