Advertisement
Shyvha

heavy WIP

Jul 21st, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.09 KB | None | 0 0
  1. --I gave up on this :/
  2.  
  3. local Character = game.Players.LocalPlayer
  4. Shirt = Instance.new("Shirt")
  5. Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=104953936"
  6. Shirt.Parent = Character
  7. Pants = Instance.new("Pants")
  8. Pants.PantsTemplate = "http://www.roblox.com/asset/?id=104954987"
  9. Pants.Parent = Character
  10.  
  11. hop = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
  12. wait(0.05)
  13. debounce = true
  14. etime = 0
  15. etimem = 20
  16. down = false
  17. vPlayer = game.Players.LocalPlayer
  18. cPlayer = nil
  19. Humanoid = nil
  20. Welds = {}
  21. stopVictoly = function()
  22. for _,v in pairs(Welds) do
  23. v.Parent = cPlayer.Torso
  24. end
  25. wait(0.2)
  26. g1:Remove()
  27. g2:Remove()
  28. g3:Remove()
  29. g4:Remove()
  30. g5:Remove()
  31. b1:Remove()
  32. b2:Remove()
  33. p1:Remove()
  34. p2:Remove()
  35. bpos:Remove()
  36. brot:Remove()
  37. Head.Anchored = false
  38. Humanoid.PlatformStand = false
  39. end
  40.  
  41. startVictoly = function()
  42. Welds = {}
  43. cPlayer = vPlayer.Character
  44. Humanoid = nil
  45. for _,v in pairs(cPlayer:children()) do
  46. if v.className == "Humanoid" then
  47. Humanoid = v
  48. end
  49. if v.Name == "Torso" then
  50. for __,vv in pairs(v:children()) do
  51. if vv:IsA("JointInstance") then
  52. table.insert(Welds, vv)
  53. end
  54. end
  55. end
  56. end
  57. Torso = cPlayer.Torso
  58. Head = cPlayer.Head
  59. RightArm = cPlayer["Right Arm"]
  60. LeftArm = cPlayer["Left Arm"]
  61. RightLeg = cPlayer["Right Leg"]
  62. LeftLeg = cPlayer["Left Leg"]
  63. Head.Anchored = true
  64. headpos = Head.CFrame.p
  65. print("DEAD")
  66. Humanoid.PlatformStand = true
  67. Torso.Anchored = true
  68. p1 = Instance.new("Part", cPlayer)
  69. p1.Anchored = true
  70. p1.formFactor = "Custom"
  71. p1.Size = Vector3.new(1, 1, 1)
  72. p1.TopSurface = 0
  73. p1.BottomSurface = 0
  74. p1.CanCollide = false
  75. p1.Name = "AnchorR"
  76. p1.CFrame = Torso.CFrame * CFrame.new(0.5, -5.5, 0)
  77. p1.Transparency = 1
  78. p2 = Instance.new("Part", cPlayer)
  79. p2.Anchored = true
  80. p2.formFactor = "Custom"
  81. p2.Size = Vector3.new(1, 1, 1)
  82. p2.TopSurface = 0
  83. p2.BottomSurface = 0
  84. p2.CanCollide = false
  85. p2.Name = "AnchorL"
  86. p2.CFrame = Torso.CFrame * CFrame.new(-0.5, -3.5, 0)
  87. p2.Transparency = 1
  88. g1 = Instance.new("Glue", RightLeg)
  89. g1.Part0 = Torso
  90. g1.Part1 = RightLeg
  91. g1.C0 = CFrame.new(0.5, -2, 0)
  92. g1.C1 = CFrame.new(0, 0, 0)
  93. g1.F0 = Vector3.new(0, 1, 0)
  94. g1.F1 = Vector3.new(0, 1, 0)
  95. g1.F2 = Vector3.new(0, 1, 0)
  96. g1.F3 = Vector3.new(0, 1, 0)
  97. g2 = Instance.new("Glue", p1)
  98. g2.Part0 = p1
  99. g2.Part1 = RightLeg
  100. g2.C0 = CFrame.new(0, 1.5, 0)
  101. g2.C1 = CFrame.new(0, 0, 0)
  102. g2.F0 = Vector3.new(0.25, -1, 0.25)
  103. g2.F1 = Vector3.new(0.25, -1, -0.25)
  104. g2.F2 = Vector3.new(-0.25, -1, 0.25)
  105. g2.F3 = Vector3.new(-0.25, -1, -0.25)
  106. g3 = Instance.new("Glue", LeftLeg)
  107. g3.Part0 = Torso
  108. g3.Part1 = LeftLeg
  109. g3.C0 = CFrame.new(-0.5, -2, 0)
  110. g3.C1 = CFrame.new(0, 0, 0)
  111. g3.F0 = Vector3.new(0, 1, 0)
  112. g3.F1 = Vector3.new(0, 1, 0)
  113. g3.F2 = Vector3.new(0, 1, 0)
  114. g3.F3 = Vector3.new(0, 1, 0)
  115. g4 = Instance.new("Glue", p2)
  116. g4.Part0 = p2
  117. g4.Part1 = LeftLeg
  118. g4.C0 = CFrame.new(0, 1.5, 0)
  119. g4.C1 = CFrame.new(0, 0, 0)
  120. g4.F0 = Vector3.new(0.25, -1, 0.25)
  121. g4.F1 = Vector3.new(0.25, -1, -0.25)
  122. g4.F2 = Vector3.new(-0.25, -1, 0.25)
  123. g4.F3 = Vector3.new(-0.25, -1, -0.25)
  124. g5 = Instance.new("Glue", Torso)
  125. g5.Part0 = Head
  126. g5.Part1 = Torso
  127. g5.C0 = CFrame.new(0, 0, 0)
  128. g5.C1 = CFrame.new(0, 1.5, 0)
  129. g5.F0 = Vector3.new(0, 0, 0)
  130. g5.F1 = Vector3.new(0, 0, 0)
  131. g5.F2 = Vector3.new(0, 0, 0)
  132. g5.F3 = Vector3.new(0, 0, 0)
  133. for _,v in pairs(Welds) do
  134. if v.Name ~= "Neck" then
  135. print(v.Name)
  136. v.Parent = nil
  137. if v.Name == "Right Shoulder" then
  138. RSC0 = v.C0
  139. RSC1 = v.C1
  140. else
  141. if v.Name == "Left Shoulder" then
  142. LSC0 = v.C0
  143. LSC1 = v.C1
  144. end
  145. end
  146. end
  147. end
  148. b1 = Instance.new("Motor6D", RightArm)
  149. b1.Part0 = Torso
  150. b1.Part1 = RightArm
  151. b1.C0 = RSC0
  152. b1.C1 = RSC1 * CFrame.new(0, 0.25, 0)
  153. b2 = Instance.new("Motor6D", LeftArm)
  154. b2.Part0 = Torso
  155. b2.Part1 = LeftArm
  156. b2.C0 = LSC0
  157. b2.C1 = LSC1 * CFrame.new(0, 0.25, 0)
  158. pos = Torso.Position
  159. brot = Instance.new("BodyAngularVelocity", Torso)
  160. brot.P = 2250
  161. brot.maxTorque = Vector3.new(8000000, 8000000, 8000000)
  162. bpos = Instance.new("BodyPosition", Torso)
  163. bpos.P = 4250
  164. bpos.D = 150
  165. bpos.maxForce = Vector3.new(8000000000, 0, 8000000000)
  166. bpos.position = Torso.Position
  167. Torso.RotVelocity = Vector3.new()
  168. Torso.Velocity = Vector3.new()
  169. for i = 1, 5 do
  170. for _,v in pairs(cPlayer:children()) do
  171. if v:IsA("BasePart") then
  172. v.Velocity = Vector3.new()
  173. v.RotVelocity = Vector3.new()
  174. end
  175. end
  176. wait(0.05)
  177. end
  178. Torso.Neck.Parent = nil
  179. Torso.Anchored = false
  180. ex = 0
  181. em = 0
  182. elo = 0
  183. local mus = Instance.new("Sound", Torso)
  184. mus.Volume = 1
  185. mus.SoundId = "http://www.roblox.com/asset/?id=230597205"
  186. wait()
  187. mus:Play()
  188. ded = false
  189. wait()
  190. li = Instance.new("PointLight", Torso)
  191. li.Range = 25
  192. li.Brightness = 5
  193. li.Shadows = true
  194. pos = Torso.CFrame
  195. while down do
  196. game:GetService("RunService").Stepped:wait()
  197. em = em + 1
  198. elo = elo + 1
  199. if em == 11 then
  200. brot.angularvelocity = Vector3.new(math.random(-26, 26), math.random(-20, 20) / 6, math.random(-26, 26) / 2)
  201. bpos.position = pos * CFrame.new(math.random(-20, 20) / 10, 0, math.random(-20, 20) / 20).p
  202. em = math.random(0, 4)
  203. li.Color = Color3.new(math.random(100, 255) / 255, math.random(100, 255) / 255, math.random(100, 255) / 255)
  204. end
  205. b1.C0 = RSC0 * CFrame.new(math.cos(math.rad(elo * 15)) / 20, 0.5, math.sin(math.rad(elo * 15)) / 30) * CFrame.Angles(math.rad(ex / 8) * elo - math.pi / 3, math.cos(math.rad(elo * 15)) / 100, math.sin(elo / 8) * 7)
  206. b2.C0 = LSC0 * CFrame.new(math.cos(math.rad(elo * 15)) / 20, 0.5, math.sin(math.rad(elo * 15)) / 30) * CFrame.Angles(math.rad(-ex / 8) * elo - math.pi / 3, math.sin(math.rad(elo * 15)) / 100, -math.cos(elo / 8) * 7)
  207. ex = ex + math.random(-5, 5) / 5
  208. if ex > 50 then
  209. ex = 50
  210. else
  211. if ex < 10 then
  212. ex = 20
  213. end
  214. end
  215. if elo > 15 then
  216. if g1.Parent == nil or g2.Parent == nil or g3.Parent == nil or g4.Parent == nil or g5.Parent == nil or Humanoid.Health <= 0 then
  217. ded = true
  218. break
  219. end
  220. if g1.Part0 == nil or g2.Part0 == nil or g3.Part0 == nil or g4.Part0 == nil or g5.Part0 == nil then
  221. ded = true
  222. break
  223. end
  224. if RightArm.Parent == nil or LeftArm.Parent == nil or LeftLeg.Parent == nil or RightLeg.Parent == nil then
  225. ded = true
  226. break
  227. end
  228. end
  229. end
  230. li:Remove()
  231. mus:Stop()
  232. if ded then
  233. Head.Anchored = false
  234. for _,v in pairs(cPlayer:children()) do
  235. if v:IsA("BasePart") then
  236. v:BreakJoints()
  237. v.CFrame = CFrame.new(Torso.Position + Vector3.new(math.random(-2, 2), math.random(-1, 2), math.random(-2, 2))) * CFrame.Angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  238. v.Velocity = Vector3.new(0, 0, 0)
  239. end
  240. end
  241. e = Instance.new("Explosion", workspace)
  242. e.BlastRadius = 10
  243. e.BlastPressure = 0
  244. e.Position = Torso.Position
  245. e.Hit:connect(function(hit)
  246. if hit.Parent == cPlayer and hit.Name ~= "AnchorR" and hit.Name ~= "AnchorL" then
  247. if hit:FindFirstChild("Fire") == nil then
  248. Instance.new("Fire", hit)
  249. end
  250. hit:BreakJoints()
  251. hit.Velocity = e.Position - hit.Position.unit * 80
  252. hit.RotVelocity = hit.Velocity
  253. end
  254. end
  255. )
  256. s = Instance.new("Sound", Head)
  257. s.SoundId = "http://www.roblox.com/asset/?id=230597277"
  258. s.Volume = 1
  259. wait()
  260. s:Play()
  261. s = Instance.new("Sound", p1)
  262. s.SoundId = "http://www.roblox.com/asset/?id=221920821"
  263. s.Volume = 1
  264. s.Pitch = 1.25
  265. wait()
  266. s:Play()
  267. end
  268. wait(0.5)
  269. mus:Remove()
  270. end
  271.  
  272. onEquip = function(mouse)
  273. mouse.Button1Down:connect(function()
  274. down = true
  275. startVictoly()
  276. end
  277. )
  278. mouse.Button1Up:connect(function()
  279. down = false
  280. stopVictoly()
  281. end
  282. )
  283. end
  284.  
  285. hop.Selected:connect(onEquip)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement