Advertisement
MysteriousL

UltTest

Jul 22nd, 2017
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.24 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local torso = char.Torso
  10. local hum = char.Humanoid
  11. local cam = game.Workspace.CurrentCamera
  12. local root = char.HumanoidRootPart
  13.  
  14. local particleemitter = Instance.new("ParticleEmitter", torso)
  15. particleemitter.VelocitySpread = 180
  16. particleemitter.LockedToPart = true
  17. particleemitter.Lifetime = NumberRange.new(0.1)
  18. particleemitter.Speed = NumberRange.new(2)
  19. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  20. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  21. particleemitter.Rate = 100
  22. particleemitter.Rotation = NumberRange.new(-45, 45)
  23. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  24. particleemitter.LightEmission = 0
  25. particleemitter.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255))
  26.  
  27. s = Instance.new('Sound',char)
  28. s.SoundId = "rbxassetid://367193208" -- 356686094 = megalotrousle,414711562 = here we are,367193208 = SharaX DDYD
  29. s.Volume=3
  30. s.Pitch = 1
  31. s.Looped = true
  32. s:Play()
  33. local deb = false
  34. local shot = 0
  35. local debris=game:service"Debris"
  36. local l = game:GetService("Lighting")
  37. local rs = game:GetService("RunService").RenderStepped
  38. hum.MaxHealth = math.huge
  39. hum.Health = math.huge
  40. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  41. math.randomseed(os.time())
  42. for i,v in pairs (hed:GetChildren()) do
  43. if v:IsA("Sound") then
  44. v:Destroy()
  45. end
  46. end
  47.  
  48.  
  49. ----------------------------------------------------
  50. Debounces = {
  51. CanAttack = true;
  52. NoIdl = false;
  53. Slashing = false;
  54. Slashed = false;
  55. RPunch = false;
  56. RPunched = false;
  57. LPunch = false;
  58. LPunched = false;
  59. }
  60. local Touche = {char.Name, }
  61. ----------------------------------------------------
  62. hed.face.Texture = "rbxassetid://257837512"
  63. ----------------------------------------------------
  64. ypcall(function()
  65. char.Shirt:Destroy()
  66. char.Pants:Destroy()
  67. shirt = Instance.new("Shirt", char)
  68. shirt.Name = "Shirt"
  69. pants = Instance.new("Pants", char)
  70. pants.Name = "Pants"
  71. char.Shirt.ShirtTemplate = "rbxassetid://345371561"
  72. char.Pants.PantsTemplate = "rbxassetid://345372241"
  73. end)
  74. ----------------------------------------------------
  75. function lerp(a, b, t) -- Linear interpolation
  76. return a + (b - a)*t
  77. end
  78.  
  79. function slerp(a, b, t) --Spherical interpolation
  80. dot = a:Dot(b)
  81. if dot > 0.99999 or dot < -0.99999 then
  82. return t <= 0.5 and a or b
  83. else
  84. r = math.acos(dot)
  85. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  86. end
  87. end
  88.  
  89. function matrixInterpolate(a, b, t)
  90. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  91. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  92. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  93. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  94. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  95. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  96. local t = v1:Dot(v2)
  97. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  98. return CFrame.new()
  99. end
  100. return CFrame.new(
  101. v0.x, v0.y, v0.z,
  102. v1.x, v1.y, v1.z,
  103. v2.x, v2.y, v2.z,
  104. v3.x, v3.y, v3.z)
  105. end
  106. ----------------------------------------------------
  107. function genWeld(a,b)
  108. local w = Instance.new("Weld",a)
  109. w.Part0 = a
  110. w.Part1 = b
  111. return w
  112. end
  113. function weld(a, b)
  114. local weld = Instance.new("Weld")
  115. weld.Name = "W"
  116. weld.Part0 = a
  117. weld.Part1 = b
  118. weld.C0 = a.CFrame:inverse() * b.CFrame
  119. weld.Parent = a
  120. return weld;
  121. end
  122. ----------------------------------------------------
  123. function Lerp(c1,c2,al)
  124. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  125. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  126. for i,v in pairs(com1) do
  127. com1[i] = v+(com2[i]-v)*al
  128. end
  129. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  130. end
  131. ----------------------------------------------------
  132. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  133. local wld = Instance.new("Weld", wp1)
  134. wld.Part0 = wp0
  135. wld.Part1 = wp1
  136. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  137. end
  138. ----------------------------------------------------
  139. function weld5(part0, part1, c0, c1)
  140. weeld=Instance.new("Weld", part0)
  141. weeld.Part0=part0
  142. weeld.Part1=part1
  143. weeld.C0=c0
  144. weeld.C1=c1
  145. return weeld
  146. end
  147. ----------------------------------------------------
  148. function HasntTouched(plrname)
  149. local ret = true
  150. for _, v in pairs(Touche) do
  151. if v == plrname then
  152. ret = false
  153. end
  154. end
  155. return ret
  156. end
  157. ----------------------------------------------------
  158. newWeld(torso, larm, -1.5, 0.5, 0)
  159. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  160. newWeld(torso, rarm, 1.5, 0.5, 0)
  161. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  162. newWeld(torso, hed, 0, 1.5, 0)
  163. newWeld(torso, lleg, -0.5, -1, 0)
  164. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  165. newWeld(torso, rleg, 0.5, -1, 0)
  166. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  167. newWeld(root, torso, 0, -1, 0)
  168. torso.Weld.C1 = CFrame.new(0, -1, 0)
  169.  
  170. mouse.KeyDown:connect(function(key)
  171. if key == "q" then
  172. if Debounces.CanAttack == true then
  173. Debounces.CanAttack = false
  174. Debounces.NoIdl = true
  175. Debounces.on = true
  176. function FindNearestTorso(Position,Distance,SinglePlayer)
  177. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  178. local List = {}
  179. for i,v in pairs(workspace:GetChildren())do
  180. if v:IsA("Model")then
  181. if v:findFirstChild("Torso")then
  182. if v ~= char then
  183. if(v.Torso.Position -Position).magnitude <= Distance then
  184. table.insert(List,v)
  185. end
  186. end
  187. end
  188. end
  189. end
  190. return List
  191. end
  192. z = Instance.new("Sound",hed)
  193. z.SoundId = "rbxassetid://232213955"
  194. z.Pitch = 1
  195. z.Volume = 1
  196. wait(0.2)
  197. z:Play()
  198. sp = Instance.new("Part",rarm)
  199. sp.Anchored = true
  200. sp.CanCollide = false
  201. sp.Locked = true
  202. sp.Transparency = 0
  203. sp.Material = "Neon"
  204. sp.Size = Vector3.new(1,1,1)
  205. sp.TopSurface = "SmoothNoOutlines"
  206. sp.BottomSurface = "SmoothNoOutlines"
  207. sp.BrickColor = BrickColor.new("Toothpaste")
  208. spm = Instance.new("SpecialMesh",sp)
  209. spm.MeshId = "http://www.roblox.com/asset/?id=9756362"
  210. spm.Scale = Vector3.new(21,21,21)
  211. sp2 = Instance.new("Part", rarm)
  212. sp2.Name = "Energy"
  213. sp2.BrickColor = BrickColor.new("Toothpaste")
  214. sp2.Size = Vector3.new(1, 1, 1)
  215. sp2.Shape = "Ball"
  216. sp2.CanCollide = false
  217. sp2.Anchored = true
  218. sp2.Locked = true
  219. sp2.TopSurface = 0
  220. sp2.BottomSurface = 0
  221. sp2.Transparency = 1
  222. spm2 = Instance.new("SpecialMesh",sp2)
  223. spm2.MeshId = "rbxassetid://9756362"
  224. spm2.Scale = Vector3.new(2,2,2)
  225. for i = 1, 20 do
  226. spm.Scale = spm.Scale - Vector3.new(1,1,1)
  227. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  228. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4)
  229. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4)
  230. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
  231. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  232. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  233. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  234. if Debounces.on == false then break end
  235. rs:wait()
  236. end
  237. for i = 1, 100, 20 do rs:wait()
  238. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  239. end
  240. for i = 1, 20 do
  241. sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
  242. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4)
  243. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4)
  244. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4)
  245. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4)
  246. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  247. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  248. if Debounces.on == false then break end
  249. rs:wait()
  250. end
  251. sp.Transparency = 1
  252. for i = 1, 20 do
  253. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4)
  254. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4)
  255. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4)
  256. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4)
  257. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  258. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  259. if Debounces.on == false then break end
  260. rs:wait()
  261. end
  262. wait(1)
  263. sp.Transparency = 0
  264. sp2.Transparency = 0.84
  265. for i = 1, 20 do
  266. --spm.Scale = spm.Scale - Vector3.new(1,1,1)
  267. sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0)
  268. sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i))
  269. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4)
  270. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2)
  271. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2)
  272. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  273. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2)
  274. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2)
  275. if Debounces.on == false then break end
  276. rs:wait()
  277. end
  278. for i = 1, 2880, 50 do
  279. rs:wait()
  280. sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0)
  281. sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10))
  282. rs:wait()
  283. end
  284. sp:Destroy()
  285. sp2:Destroy()
  286. local X = Instance.new("Part",char)
  287. local O = Instance.new("ObjectValue",X)
  288. O.Name = "creator"
  289. X.Locked = true
  290. X.Name = "Shell"
  291. X.Anchored = false
  292. X.CanCollide = false
  293. X.Transparency = 0
  294. X.Reflectance = 0
  295. X.BottomSurface = 0
  296. X.TopSurface = 0
  297. X.Shape = 0
  298. local V = Instance.new("ObjectValue",X)
  299. V.Value = char
  300. V.Name = "creator"
  301. X.BrickColor = BrickColor.new("Toothpaste")
  302. X.Size = Vector3.new(2,2,2)
  303. X.Material = "Neon"
  304. local Z = Instance.new("SpecialMesh",X)
  305. Z.MeshId = "http://www.roblox.com/asset/?id=9982590"
  306. Z.Scale = Vector3.new(0.5,0.5,1)
  307. X.CFrame = rarm.CFrame*CFrame.new(-3,0,0)
  308. local bv = Instance.new("BodyVelocity",X)
  309. bv.maxForce = Vector3.new(99999,99999,99999)
  310. X.CFrame = CFrame.new(X.Position,mouse.Hit.p)
  311. bv.velocity = X.CFrame.lookVector*500
  312.  
  313. Explode = X.Touched:connect(function(hit)
  314. if hit ~= char and hit.Name ~= "Shell" then
  315. local cf = X.CFrame
  316. bv:Destroy()
  317. X.Anchored = true
  318. Z:Remove()
  319. Explode:disconnect()
  320. X.Size = Vector3.new(3,3,3)
  321. X.Touched:connect(function(hit) end)
  322. X.CanCollide = false
  323. local part3 = Instance.new("Part", rarm)
  324. part3.Anchored=true
  325. part3.CanCollide=false
  326. part3.Locked = true
  327. part3.TopSurface = "SmoothNoOutlines"
  328. part3.BottomSurface = "SmoothNoOutlines"
  329. part3.FormFactor='Custom'
  330. part3.Size=Vector3.new(1,1, 1)
  331. part3.CFrame=X.CFrame
  332. part3.Transparency=0
  333. part3.BrickColor=BrickColor.new("Toothpaste")
  334. local mesh3 = Instance.new("SpecialMesh",part3)
  335. mesh3.MeshId = "http://www.roblox.com/asset/?id=9756362"
  336. mesh3.Scale = Vector3.new(1,1,1)
  337. --debris:AddItem(X,8)
  338. local part4 = Instance.new("Part", rarm)
  339. part4.Material = "Neon"
  340. part4.Anchored=true
  341. part4.CanCollide=false
  342. part4.Locked = true
  343. part4.TopSurface = "SmoothNoOutlines"
  344. part4.BottomSurface = "SmoothNoOutlines"
  345. part4.FormFactor='Custom'
  346. part4.Size=Vector3.new(1,1, 1)
  347. part4.CFrame=X.CFrame
  348. part4.Transparency=0
  349. part4.BrickColor=BrickColor.new("Hot pink")
  350. local mesh4 = Instance.new("SpecialMesh",part4)
  351. mesh4.MeshId = "http://www.roblox.com/asset/?id=9756362"
  352. mesh4.Scale = Vector3.new(.5,.5,.5)
  353. local part7 = Instance.new("Part", rarm)
  354. part7.Material = "Neon"
  355. part7.Anchored=true
  356. part7.CanCollide=false
  357. part7.Locked = true
  358. part7.TopSurface = "SmoothNoOutlines"
  359. part7.BottomSurface = "SmoothNoOutlines"
  360. part7.FormFactor='Custom'
  361. part7.Size=Vector3.new(1,1, 1)
  362. part7.CFrame=X.CFrame
  363. part7.Transparency=0
  364. part7.BrickColor=BrickColor.new("Really black")
  365. local mesh7 = Instance.new("SpecialMesh",part7)
  366. mesh7.MeshId = "http://www.roblox.com/asset/?id=9756362"
  367. mesh7.Scale = Vector3.new(0.1, 0.1, 0.1)
  368. --[[X.Touched:connect(function(ht)
  369. hit = ht.Parent
  370. if ht and hit:IsA("Model") then
  371. if hit:FindFirstChild("Humanoid") then
  372. if hit.Name ~= p.Name then
  373. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  374. wait(.3)
  375. end
  376. end
  377. elseif ht and hit:IsA("Hat") then
  378. if hit.Parent.Name ~= p.Name then
  379. if hit.Parent:FindFirstChild("Humanoid") then
  380. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  381. wait(.3)
  382. end
  383. end
  384. end
  385. end)
  386. part3.Touched:connect(function(ht)
  387. hit = ht.Parent
  388. if ht and hit:IsA("Model") then
  389. if hit:FindFirstChild("Humanoid") then
  390. if hit.Name ~= p.Name then
  391. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  392. wait(.3)
  393. end
  394. end
  395. elseif ht and hit:IsA("Hat") then
  396. if hit.Parent.Name ~= p.Name then
  397. if hit.Parent:FindFirstChild("Humanoid") then
  398. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
  399. wait(.3)
  400. end
  401. end
  402. end
  403. end)]]--
  404. for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do
  405. if v:FindFirstChild('Humanoid') then
  406. v.Humanoid:TakeDamage(math.random(60,90))
  407. v.Humanoid.PlatformStand = true
  408. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  409. end
  410. end
  411.  
  412. local acos = math.acos
  413. local sqrt = math.sqrt
  414. local Vec3 = Vector3.new
  415. local fromAxisAngle = CFrame.fromAxisAngle
  416.  
  417. local function toAxisAngle(CFr)
  418. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  419. local Angle = math.acos((R00+R11+R22-1)/2)
  420. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  421. A = A == 0 and 0.00001 or A
  422. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  423. B = B == 0 and 0.00001 or B
  424. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  425. C = C == 0 and 0.00001 or C
  426. local x = (R21-R12)/sqrt(A)
  427. local y = (R02-R20)/sqrt(B)
  428. local z = (R10-R01)/sqrt(C)
  429. return Vec3(x,y,z),Angle
  430. end
  431.  
  432. function ApplyTrig(Num,Func)
  433. local Min,Max = Func(0),Func(1)
  434. local i = Func(Num)
  435. return (i-Min)/(Max-Min)
  436. end
  437.  
  438. function LerpCFrame(CFrame1,CFrame2,Num)
  439. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  440. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  441. end
  442.  
  443. function Crater(Torso,Radius)
  444. Spawn(function()
  445. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  446. local Ignore = {}
  447. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  448. if v.Character ~= nil then
  449. Ignore[#Ignore+1] = v.Character
  450. end
  451. end
  452. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  453. if Hit == nil then return end
  454. local Parts = {}
  455. for i = 1,360,10 do
  456. local P = Instance.new("Part",Torso.Parent)
  457. P.Anchored = true
  458. P.FormFactor = "Custom"
  459. P.BrickColor = Hit.BrickColor
  460. P.Material = Hit.Material
  461. P.TopSurface = "Smooth"
  462. P.BottomSurface = "Smooth"
  463. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  464. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  465. Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
  466. if math.random(0,5) == 0 then -- rubble
  467. local P = Instance.new("Part",Torso.Parent)
  468. P.Anchored = true
  469. P.FormFactor = "Custom"
  470. P.BrickColor = Hit.BrickColor
  471. P.Material = Hit.Material
  472. P.TopSurface = "Smooth"
  473. P.BottomSurface = "Smooth"
  474. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  475. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  476. Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
  477. end
  478. end
  479. for i = 0,1,0.05 do
  480. for i2,v in pairs(Parts) do
  481. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  482. end
  483. wait(0.02)
  484. end
  485. for i,v in pairs(Parts) do
  486. if v[1].Size.X > 2.1 then
  487. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  488. end
  489. v[1].Anchored = false
  490. end
  491. for i = 0,1,0.05 do
  492. for i2,v in pairs(Parts) do
  493. v[1].Transparency = i
  494. if i == 1 then
  495. v[1]:Destroy()
  496. elseif i >= 0.25 then
  497. v[1].CanCollide = false
  498. end
  499. end
  500. wait(0.02)
  501. end
  502. Parts = nil
  503. end)
  504. end
  505.  
  506. ROW = function(out, trans, s, wt, t, ang, plus)
  507. for i = 1, 360, 360/t do
  508. local c = Instance.new("Part", game.Workspace)
  509. c.FormFactor = 3
  510. c.TopSurface = 0
  511. c.BottomSurface = 0
  512. c.Size = s
  513. c.Anchored = true
  514. c.CanCollide = wt
  515. c.Material=workspace.Base.Material
  516. c.Transparency = trans
  517. c.BrickColor = workspace.Base.BrickColor
  518. c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
  519. c.Locked=true
  520. game.Debris:AddItem(c,15)
  521. end
  522. end
  523.  
  524. Part = function(x,y,z,color,tr,cc,an,parent)
  525. local p = Instance.new('Part',parent or Weapon)
  526. p.formFactor = 'Custom'
  527. p.Size = Vector3.new(x,y,z)
  528. p.BrickColor = BrickColor.new(color)
  529. p.CanCollide = cc
  530. p.Transparency = tr
  531. p.Anchored = an
  532. p.TopSurface,p.BottomSurface = 0,0
  533. p.Locked=true
  534. p:BreakJoints()
  535. return p end
  536.  
  537. Mesh = function(par,num,x,y,z)
  538. local msh = _
  539. if num == 1 then msh = Instance.new("CylinderMesh",par)
  540. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  541. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  542. elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
  543. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  544. end msh.Scale = Vector3.new(x,y,z)
  545. return msh end
  546.  
  547. function explosion(col1,col2,cfr,sz,rng,dmg)
  548. local a= Part(1,1,1,col1,.5,false,true,workspace)
  549. local a2= Part(1,1,1,col2,.5,false,true,workspace)
  550. local a3= Part(1,1,1,col2,.5,false,true,workspace)
  551. v1,v2,v3=sz.x,sz.y,sz.z
  552. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  553. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  554. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  555. a.CFrame=cfr
  556. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  557. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  558.  
  559. Spawn(function()
  560. while wait() do
  561. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  562. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  563. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  564. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  565. a.Transparency=a.Transparency+0.05
  566. a2.Transparency=a2.Transparency+0.05
  567. a3.Transparency=a3.Transparency+0.05
  568. end
  569. end)
  570. end
  571.  
  572. Crater(X,20)
  573. ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0)
  574. z = Instance.new("Sound",X)
  575. z.SoundId = "rbxassetid://231917744"
  576. z.Pitch = .5
  577. z.Volume = 10
  578. z1 = Instance.new("Sound",X)
  579. z1.SoundId = "rbxassetid://231917744"
  580. z1.Pitch = .5
  581. z1.Volume = 10
  582. z2 = Instance.new("Sound",X)
  583. z2.SoundId = "rbxassetid://231917744"
  584. z2.Pitch = .5
  585. z2.Volume = 10
  586. z3 = Instance.new("Sound",X)
  587. z3.SoundId = "rbxassetid://245537790"
  588. z3.Pitch = .7
  589. z3.Volume = 1
  590. z4 = Instance.new("Sound",X)
  591. z4.SoundId = "rbxassetid://245537790"
  592. z4.Pitch = .7
  593. z4.Volume = 1
  594. wait(0.1)
  595. z:Play()
  596. z1:Play()
  597. z2:Play()
  598. z3:Play()
  599. z4:Play()
  600.  
  601. local part=Instance.new('Part',rarm)
  602. part.Anchored=true
  603. part.CanCollide=false
  604. part.Locked = true
  605. part.FormFactor='Custom'
  606. part.Size=Vector3.new(1,1,1)
  607. part.CFrame=X.CFrame*CFrame.new(0,0,0)
  608. part.Transparency=0
  609. part.BrickColor=BrickColor.new('Really black')
  610. local mesh=Instance.new('SpecialMesh',part)
  611. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  612. mesh.Scale=Vector3.new(2,2,2)
  613. local part2=part:clone()
  614. part2.Parent = rarm
  615. part2.BrickColor=BrickColor.new("Toothpaste")
  616. local part5=part:clone()
  617. part5.Parent = rarm
  618. part5.BrickColor=BrickColor.new("Toothpaste")
  619. local part6=part:clone()
  620. part6.Parent = rarm
  621. part6.BrickColor=BrickColor.new("Black")
  622. local mesh2=mesh:clone()
  623. mesh2.Parent=part2
  624. mesh2.Scale=Vector3.new(3, 3, 3)
  625. local mesh5=mesh:clone()
  626. mesh5.Parent=part5
  627. mesh5.Scale=Vector3.new(3, 3, 3)
  628. local mesh6=mesh:clone()
  629. mesh6.Parent=part6
  630. mesh6.Scale=Vector3.new(3, 3, 3)
  631. local blast = Instance.new("Part", rarm)
  632. blast.BrickColor = BrickColor.new("Really black")
  633. blast.Anchored = true
  634. blast.CanCollide = false
  635. blast.Locked = true
  636. blast.Size = Vector3.new(1, 1, 1)
  637. blast.TopSurface = "Smooth"
  638. blast.BottomSurface = "Smooth"
  639. blast.Transparency = 0
  640. blast.CFrame = HandCF
  641. local bm = Instance.new("SpecialMesh", blast)
  642. bm.Scale = Vector3.new(5,1,5)
  643. bm.MeshId = "rbxassetid://156292343"
  644. local blast2 = Instance.new("Part", rarm)
  645. blast2.BrickColor = BrickColor.new("Really black")
  646. blast2.Anchored = true
  647. blast2.CanCollide = false
  648. blast2.Locked = true
  649. blast2.Size = Vector3.new(1, 1, 1)
  650. blast2.TopSurface = "Smooth"
  651. blast2.BottomSurface = "Smooth"
  652. blast2.Transparency = 0
  653. blast2.CFrame = HandCF
  654. local bm2 = Instance.new("SpecialMesh", blast2)
  655. bm2.Scale = Vector3.new(3,1,3)
  656. bm2.MeshId = "rbxassetid://156292343"
  657. local blast3 = Instance.new("Part", rarm)
  658. blast3.BrickColor = BrickColor.new("Really black")
  659. blast3.Anchored = true
  660. blast3.CanCollide = false
  661. blast3.Locked = true
  662. blast3.Size = Vector3.new(1, 1, 1)
  663. blast3.TopSurface = "Smooth"
  664. blast3.BottomSurface = "Smooth"
  665. blast3.Transparency = 0
  666. blast3.CFrame = HandCF
  667. local bm3 = Instance.new("SpecialMesh", blast3)
  668. bm3.Scale = Vector3.new(3,1,3)
  669. bm3.MeshId = "rbxassetid://3270017"
  670. for i = 1,120 do rs:wait()
  671. X.Transparency = X.Transparency + (1/120)
  672. part.Transparency = part.Transparency + (1/120)
  673. part2.Transparency = part2.Transparency + (1/120)
  674. part3.Transparency = part3.Transparency + (1/120)
  675. part4.Transparency = part4.Transparency + (1/120)
  676. part5.Transparency = part5.Transparency + (1/120)
  677. part6.Transparency = part6.Transparency + (1/120)
  678. part7.Transparency = part7.Transparency + (1/120)
  679. blast.Transparency = blast.Transparency + (1/120)
  680. blast2.Transparency = blast2.Transparency + (1/120)
  681. blast3.Transparency = blast3.Transparency + (1/120)
  682. X.Size = X.Size + Vector3.new(.8,.8,.8)
  683. --part3.Size = part3.Size + Vector3.new(3,3,3)
  684. mesh.Scale = mesh.Scale + Vector3.new(1,.2,1)
  685. mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1)
  686. mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3)
  687. mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7)
  688. mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6)
  689. mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2)
  690. mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4)
  691. bm.Scale = bm.Scale + Vector3.new(6,6,.2)
  692. bm2.Scale = bm2.Scale + Vector3.new(4,4,.2)
  693. bm3.Scale = bm3.Scale + Vector3.new(4,4,.2)
  694. X.CFrame = cf
  695. part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0)
  696. part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0)
  697. part3.CFrame=X.CFrame
  698. part4.CFrame=X.CFrame
  699. part7.CFrame=X.CFrame
  700. part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0)
  701. part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0)
  702. blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  703. blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0))
  704. blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0))
  705. rs:wait()
  706. end
  707. X:Destroy()
  708. part:Destroy()
  709. part2:Destroy()
  710. part3:Destroy()
  711. part4:Destroy()
  712. part5:Destroy()
  713. part6:Destroy()
  714. blast:Destroy()
  715. blast2:Destroy()
  716. blast3:Destroy()
  717. z:Destroy()
  718. z1:Destroy()
  719. z2:Destroy()
  720. z3:Destroy()
  721. z4:Destroy()
  722. end
  723. end)
  724. for i = 1, 20 do
  725. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2)
  726. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2)
  727. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  728. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4)
  729. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2)
  730. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2)
  731. if Debounces.on == false then break end
  732. rs:wait()
  733. end
  734. if Debounces.CanAttack == false then
  735. Debounces.CanAttack = true
  736. Debounces.NoIdl = false
  737. Debounces.on = false
  738. end
  739. end
  740. end
  741. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement