kingkoolie

Untitled

Oct 31st, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.71 KB | None | 0 0
  1. Player = game.Players.SuperiorSpringy
  2. Char = Player.Character
  3. Torso = Char.Torso
  4. Mouse = Player:GetMouse()
  5. function onKeyDown(key)
  6. key = key:lower()
  7. if key == "z" then
  8. wait(.1)
  9. Torso.Anchored = false
  10. local bodyVelocity = "";
  11. local bodyAngularVelocity = "";
  12.  
  13. Wind = Instance.new("Part")
  14. Wind.Parent = Workspace
  15. Wind.Size = Vector3.new (math.random(4,6),math.random(4,6),math.random(4,6))
  16. Wind.Anchored = true
  17. Wind.CanCollide = false
  18. Wind.Transparency = .6
  19. Wind.TopSurface = 0
  20. Wind.BottomSurface = 0
  21. Wind.BrickColor = BrickColor.new("White")
  22. Wind.CFrame = Torso.CFrame * CFrame.new(0,1,0)* CFrame.fromEulerAnglesXYZ(0,90,0)
  23. local Windm = Instance.new("SpecialMesh",Wind)
  24. Windm.MeshType = "FileMesh"
  25. Windm.MeshId = "http://www.roblox.com/asset/?id=16606212"
  26.  
  27. for i = 1,10 do
  28. Wind.CFrame = Wind.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0.5)
  29. Windm.Scale = Vector3.new(5,5,5)
  30. wait()
  31. end
  32.  
  33. if db then return end
  34. db = true;
  35. local human = Char;
  36.  
  37. if human == nil then
  38. return;
  39. end
  40.  
  41. local torso = human:FindFirstChild("Torso");
  42.  
  43. if torso == nil then
  44. return;
  45. end
  46.  
  47. local bv = Instance.new("BodyVelocity");
  48. bodyVelocity = bv;
  49.  
  50. bv.maxForce = Vector3.new(1e+009, 1e+009, 1e+009);
  51.  
  52. local velocity = torso.Velocity;
  53. velocity = velocity - Vector3.new(0, velocity.y - 20, 0);
  54.  
  55. bv.velocity = velocity;
  56.  
  57. bv.Parent = torso;
  58.  
  59. local bav = Instance.new("BodyAngularVelocity");
  60. bodyAngularVelocity = bav;
  61. bav.maxTorque = Vector3.new(1e+009, 1e+009, 1e+009);
  62.  
  63. bav.angularvelocity = Vector3.new(0,110,0);
  64.  
  65. bav.Parent = torso;
  66.  
  67. wait(1)
  68. if bodyVelocity == "" then
  69. return
  70. end
  71.  
  72. bodyVelocity:Remove();
  73.  
  74. if bodyAngularVelocity == "" then
  75. return;
  76. end
  77.  
  78. bodyAngularVelocity:Remove();
  79.  
  80. db = false
  81.  
  82.  
  83.  
  84. for u, c in pairs(workspace:GetChildren()) do
  85. if c.Name ~= Player.Character.Name then
  86. h = c:findFirstChild("Humanoid")
  87. t = c:findFirstChild("Torso")
  88. if h ~= nil and t ~= nil then
  89. if (Wind.Position-t.Position).magnitude <= 10 then
  90. t.CFrame = t.CFrame * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  91. h:TakeDamage(7)
  92. h.PlatformStand = true
  93. Dmg=h.MaxHealth - h.Health
  94. ShowDamage=function(Char,Dealt,du)
  95. m=Instance.new("Model")
  96. m.Name="dmg"
  97. --h=Instance.new("Humanoid")
  98. --h.Health=0
  99. --h.MaxHealth=0
  100. --h.Parent=m
  101. ccc=Instance.new("Part")
  102. ccc.Transparency=.99
  103. ccc.BrickColor=BrickColor:Red()
  104. ccc.Name="Head"
  105. ccc.TopSurface=0
  106. ccc.BottomSurface=0
  107. ccc.formFactor="Plate"
  108. ccc.Size=Vector3.new(1,.4,1)
  109. ms=Instance.new("CylinderMesh")
  110. ms.Scale=Vector3.new(.8,.8,.8)
  111. ms.Parent=c
  112. ccc.Reflectance=0
  113. Instance.new("BodyGyro").Parent=c
  114. ccc.Parent=m
  115. ccc.CFrame=ccc.CFrame*CFrame.new(c["Head"].CFrame.p+Vector3.new(0,1.5,0))
  116. f=Instance.new("BodyPosition")
  117. f.P=2000
  118. f.D=100
  119. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  120. f.position=ccc.Position+Vector3.new(0,3,0)
  121. f.Parent=ccc
  122. cccc = workspace.BillboardGui
  123. cccc.Enabled = true
  124. cccc.Adornee = c.Head
  125. Text = cccc.TextLabel:Clone()
  126. Text.Parent = cccc
  127. Text.Name = "Dmg"
  128. Text.Visible = true
  129. Text.BackgroundTransparency = 1
  130. Text.Font = "Legacy"
  131. Text.FontSize = "Size24"
  132. Text.Text = tostring(Dealt)
  133. Text.TextColor3 = Color3.new(0,4,0)
  134. if Dmg > 20 then
  135. Text.TextColor3 = Color3.new(4,4,0)
  136. end
  137. if Dmg > 80 then
  138. Text.TextColor3 = Color3.new(4,0,0)
  139. end
  140. Text.TextStrokeColor3 = Color3.new(0,0,0)
  141. Text.TextStrokeTransparency = 0
  142. game:GetService("Debris"):AddItem(Text,.5+du)
  143. ccc.CanCollide=false
  144. m.Parent=workspace
  145. ccc.CanCollide=false
  146.  
  147. end
  148.  
  149. ShowDamage(c.Parent,Dmg,0)
  150.  
  151. end
  152. end
  153. end
  154. end
  155.  
  156.  
  157. Torso.Anchored = false
  158. elseif key == "c" then
  159. Torso.Anchored = true
  160. for i = 1, 200 ,3 do
  161. Wind = Instance.new("Part")
  162. Wind.Name = "Earth1"
  163. Wind.Parent = Workspace
  164. Wind.Size = Vector3.new (math.random(4,6),math.random(4,6),math.random(4,6))
  165. Wind.Anchored = true
  166. Wind.CanCollide = false
  167. Wind.Transparency = .6
  168. Wind.TopSurface = 0
  169. Wind.BottomSurface = 0
  170. Wind.BrickColor = BrickColor.new("White")
  171. Wind.CFrame = Torso.CFrame * CFrame.new(0,-2,-i-5)* CFrame.fromEulerAnglesXYZ(0,0,1)
  172. local Windm = Instance.new("SpecialMesh",Wind)
  173. Windm.MeshType = "FileMesh"
  174. Windm.MeshId = "http://www.roblox.com/asset/?id=16606212"
  175. Windm.Scale = Vector3.new (math.random(2,6),math.random(2,6),math.random(2,6))
  176. wait()
  177.  
  178.  
  179.  
  180. for u, c in pairs(workspace:GetChildren()) do
  181. if c.Name ~= Player.Character.Name then
  182. h = c:findFirstChild("Humanoid")
  183. t = c:findFirstChild("Torso")
  184. if h ~= nil and t ~= nil then
  185. if (Wind.Position-t.Position).magnitude <= 10 then
  186. t.CFrame = t.CFrame * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  187. h:TakeDamage(7)
  188. h.PlatformStand = true
  189. Dmg=h.MaxHealth - h.Health
  190. ShowDamage=function(Char,Dealt,du)
  191. m=Instance.new("Model")
  192. m.Name="dmg"
  193. --h=Instance.new("Humanoid")
  194. --h.Health=0
  195. --h.MaxHealth=0
  196. --h.Parent=m
  197. ccc=Instance.new("Part")
  198. ccc.Transparency=.99
  199. ccc.BrickColor=BrickColor:Red()
  200. ccc.Name="Head"
  201. ccc.TopSurface=0
  202. ccc.BottomSurface=0
  203. ccc.formFactor="Plate"
  204. ccc.Size=Vector3.new(1,.4,1)
  205. ms=Instance.new("CylinderMesh")
  206. ms.Scale=Vector3.new(.8,.8,.8)
  207. ms.Parent=c
  208. ccc.Reflectance=0
  209. Instance.new("BodyGyro").Parent=c
  210. ccc.Parent=m
  211. ccc.CFrame=ccc.CFrame*CFrame.new(c["Head"].CFrame.p+Vector3.new(0,1.5,0))
  212. f=Instance.new("BodyPosition")
  213. f.P=2000
  214. f.D=100
  215. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  216. f.position=ccc.Position+Vector3.new(0,3,0)
  217. f.Parent=ccc
  218. cccc = workspace.BillboardGui
  219. cccc.Enabled = true
  220. cccc.Adornee = c.Head
  221. Text = cccc.TextLabel:Clone()
  222. Text.Parent = cccc
  223. Text.Name = "Dmg"
  224. Text.Visible = true
  225. Text.BackgroundTransparency = 1
  226. Text.Font = "Legacy"
  227. Text.FontSize = "Size24"
  228. Text.Text = tostring(Dealt)
  229. Text.TextColor3 = Color3.new(0,4,0)
  230. if Dmg > 20 then
  231. Text.TextColor3 = Color3.new(4,4,0)
  232. end
  233. if Dmg > 80 then
  234. Text.TextColor3 = Color3.new(4,0,0)
  235. end
  236. Text.TextStrokeColor3 = Color3.new(0,0,0)
  237. Text.TextStrokeTransparency = 0
  238. game:GetService("Debris"):AddItem(Text,.5+du)
  239. ccc.CanCollide=false
  240. m.Parent=workspace
  241. ccc.CanCollide=false
  242.  
  243. end
  244.  
  245. ShowDamage(c.Parent,Dmg,0)
  246.  
  247. end
  248. end
  249. end
  250. end
  251.  
  252.  
  253. end
  254. for i, v in pairs(Workspace:GetChildren()) do
  255. if v.Name == "Earth1" then
  256. v:Remove()
  257. end
  258. end
  259. Torso.Anchored = false
  260. end
  261.  
  262. end
  263.  
  264. Mouse.KeyDown:connect(onKeyDown)
Advertisement
Add Comment
Please, Sign In to add comment