Nooblol

LASER OOFER

Jun 1st, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.12 KB | None | 0 0
  1. --[[SCRIPT NAME]]--
  2. --[[
  3.  
  4. This is WafflesAreVeryGood's script, do not attempt to take ownership of the script.
  5.  
  6.  
  7. --]]
  8. local plr = game.Players.LocalPlayer
  9. local char = plr.Character
  10. local mouse = plr:GetMouse()
  11. local torso = char.Torso
  12. local rs = torso["Right Shoulder"]
  13. local ls = torso["Left Shoulder"]
  14. local rh = torso["Right Hip"]
  15. local lh = torso["Left Hip"]
  16. local rj = char.HumanoidRootPart.RootJoint
  17. local neck = torso.Neck
  18. local animpose = "Idle"
  19. local attacking = false
  20. local cananim = true
  21. local rage = false
  22. local shield = nil
  23. local sprint = false
  24. local canrage = true
  25. local legs = false
  26. local powers = true
  27. local energy = 1000
  28. local bc = char:WaitForChild("Body Colors")
  29. local multiplier = 1
  30. local lac = char["Body Colors"].LeftArmColor
  31. local rac = char["Body Colors"].RightArmColor
  32. local rlc = char["Body Colors"].RightArmColor
  33. local llc = char["Body Colors"].LeftLegColor
  34. local hc = char["Body Colors"].HeadColor
  35. local tc = char["Body Colors"].TorsoColor
  36. local humanoid = char:FindFirstChildOfClass("Humanoid")
  37. local huge = Vector3.new(math.huge,math.huge,math.huge)
  38. local color = BrickColor.new("Hot pink")
  39. local mobs = Instance.new("Sound", char)
  40. mobs.SoundId = "rbxassetid://988325757"
  41. mobs.Looped = true
  42. mobs.Volume = 3
  43. mobs:Play()
  44. if char:FindFirstChild("Animate") then char.Animate:Destroy() end
  45. if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then char:FindFirstChildOfClass("Humanoid").Animator:Destroy() end
  46. function legsonly()
  47. spawn(function()
  48. for i = 0, 10 do
  49. wait(0.001)
  50. if attacking then break end
  51. end
  52. if not attacking then
  53. legs = false
  54. end
  55. end)
  56. end
  57. function lightning(start,finish,segments,thickness)
  58. local full = (start.p-finish.p).magnitude
  59. local lastpart
  60. local lastscale
  61. local direction = CFrame.new(finish.p,start.p).lookVector
  62. local model
  63. model = Instance.new("Model")
  64. for i = 1, segments do
  65. if not lastscale then lastscale = 0.5 end
  66. if not lastpart then lastpart = char.Torso end
  67. local startp = lastpart.CFrame*CFrame.new(0,0,-lastscale/2)
  68. local p = Instance.new("Part", model)
  69. p.Name = "segment"..i
  70. p.Material = "Neon"
  71. p.BrickColor = color
  72. local endpos
  73. if i == segments then
  74. endpos = finish
  75. else
  76. if lastpart == char.Torso then
  77. endpos = CFrame.new(lastpart.CFrame.p,lastpart.CFrame.p+direction) *CFrame.new(math.random(-thickness*5,thickness*2),math.random(-thickness*5,thickness*5),full/segments)
  78. else
  79. endpos = CFrame.new(lastpart.CFrame.p,lastpart.CFrame.p+direction) *CFrame.new(math.random(-thickness*5,thickness*2),math.random(-thickness*5,thickness*5),full/segments)
  80. end
  81. --[[local p = Instance.new("Part", model)
  82. p.Anchored = true
  83. p.Size = Vector3.new(thickness,thickness,1)
  84. p.CanCollide = false
  85. p.CFrame = endpos]]
  86. end
  87. local mag = (startp.p-endpos.p).magnitude
  88. p.Anchored = true
  89. p.CanCollide = false
  90. local m = Instance.new("SpecialMesh", p)
  91. m.MeshType = "Brick"
  92. for i,v in pairs({"Right", "Left", "Top", "Bottom", "Front", "Back"}) do
  93. p[v.."Surface"] = "SmoothNoOutlines"
  94. end
  95. p.Size = Vector3.new(thickness,thickness,mag)
  96. p.CFrame = CFrame.new(startp.p, endpos.p) *CFrame.new(0,0,-mag/2)
  97. lastscale = mag
  98. lastpart = p
  99. end
  100. model.Parent = char
  101. spawn(function()
  102. for i = 1, 10/2 do
  103. for i,v in pairs(model:children()) do
  104. v.Mesh.Scale = v.Mesh.Scale -Vector3.new(0.1,0.1,0)*2
  105. end
  106. swait()
  107. end
  108. model:Destroy()
  109. end)
  110. end
  111. function getparent()
  112. local par = workspace:FindFirstChild("BasePlate")
  113. if not par then par = workspace:FindFirstChild("Base") end
  114. if not par then par = char.Head end
  115. return par
  116. end
  117. function swait(t)
  118. if t == nil or t == 0 then
  119. game:service('RunService').Stepped:wait(0)
  120. return true
  121. else
  122. for i = 0, t do
  123. game:service('RunService').Stepped:wait(0)
  124. end
  125. return true
  126. end
  127. end
  128. function hurt(hit, dmg)
  129. if hit.Parent then
  130. if hit.Parent:IsA("LocalScript") then hit.Parent:Destroy() end
  131. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  132. if hum then
  133. if hum.Parent.Name ~= plr.Name then
  134. if dmg == "Kill" or hum.Health > 100000 then
  135. hit.Parent:BreakJoints()
  136. return true
  137. else
  138. if math.random(0, 100) == 50 then
  139. hum.Health = hum.Health - dmg*multiplier*2.5
  140. else
  141. hum.Health = hum.Health - dmg*multiplier
  142. end
  143. return true
  144. end
  145. end
  146. end
  147. end
  148. end
  149. function soundeffect(id, volume, speed, parent)
  150. spawn(function()
  151. local s = Instance.new("Sound")
  152. s.SoundId = id
  153. s.Volume = volume
  154. s.PlaybackSpeed = speed
  155. s.Parent = parent
  156. s:Play()
  157. repeat wait() until not s.Playing
  158. s:Destroy()
  159. end)
  160. end
  161. function gethum(obj)
  162. if obj.Parent then
  163. if obj.Parent:FindFirstChild("Humanoid") then
  164. if obj.Parent.Name ~= plr.Name then
  165. return obj.Parent:FindFirstChildOfClass("Humanoid")
  166. end
  167. end
  168. end
  169. end
  170. function smooth(obj)
  171. local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"}
  172. for i,v in pairs(sides) do
  173. obj[v.."Surface"] = "SmoothNoOutlines"
  174. end
  175. end
  176. function fade(obj, dest, grow)
  177. spawn(function()
  178. local oldcf = obj.CFrame
  179. for i = 0, 10 do
  180. if grow then
  181. obj.Size = obj.Size +Vector3.new(1,1,1)
  182. obj.CFrame = oldcf
  183. end
  184. obj.Transparency = obj.Transparency +0.1
  185. swait()
  186. end
  187. if dest then
  188. obj:Destroy()
  189. end
  190. end)
  191. end
  192. function replacejoint(name)
  193. local j = torso:FindFirstChild(name)
  194. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  195. if j then
  196. if true then
  197. local new = Instance.new("Weld")
  198. new.Part0 = j.Part0
  199. j.Part0 = nil
  200. new.Name = j.Name.." Replacement"
  201. new.Parent = j.Parent
  202. new.Part1 = j.Part1
  203. new.C0 = j.C0
  204. new.C1 = j.C1
  205. return new
  206. end
  207. end
  208. end
  209. function removejoint(name)
  210. local j = torso:FindFirstChild(name.." Replacement")
  211. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  212. if j then
  213. local p0 = j.Part0
  214. local c0 = j.C0
  215. local c1 = j.C1
  216. j:Destroy()
  217. local new = p0:FindFirstChild(name)
  218. local ac0 = new.C0
  219. local ac1 = new.C1
  220. new.Part0 = p0
  221. new.C0 = c0
  222. new.C1 = c1
  223. end
  224. end
  225. function fixalljoints()
  226. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  227. removejoint(v)
  228. end
  229. end
  230. function getnewjoints()
  231. local rs = replacejoint("Right Shoulder")
  232. local ls = replacejoint("Left Shoulder")
  233. local rh = replacejoint("Right Hip")
  234. local lh = replacejoint("Left Hip")
  235. local neck = replacejoint("Neck")
  236. local rj = replacejoint("RootJoint")
  237. return rs,ls,rh,lh,neck,rj
  238. end
  239. local tdown = false
  240. local jdown = false
  241. mouse.KeyDown:connect(function(key)
  242. if powers then
  243. if key == "r" and not attacking then
  244. attacking = true
  245. humanoid.AutoRotate = false
  246. local rs = replacejoint("Right Shoulder")
  247. local p = Instance.new("Part")
  248. p.CanCollide = false
  249. p.Anchored = true
  250. smooth(p)
  251. p.Transparency = 1
  252. p.Size = Vector3.new(0.2,0.2,0.2)
  253. local pe = Instance.new("ParticleEmitter", p)
  254. pe.Color = ColorSequence.new(color.Color)
  255. pe.LightEmission = 0.7
  256. pe.Size = NumberSequence.new(1)
  257. pe.Texture = "rbxassetid://243664672"
  258. pe.Transparency = NumberSequence.new(0.5)
  259. pe.Lifetime = NumberRange.new(0.3)
  260. pe.Rate = 500
  261. pe.Speed = NumberRange.new(3)
  262. p.Parent = getparent()
  263. local sphere = Instance.new("Part")
  264. smooth(sphere)
  265. sphere.Anchored = true
  266. sphere.CanCollide = false
  267. sphere.Name = "cool ball just for looks"
  268. sphere.BrickColor = color
  269. sphere.Material = "Neon"
  270. sphere.Transparency = 1
  271. sphere.Size = Vector3.new(5,5,5)
  272. local m = Instance.new("SpecialMesh")
  273. m.MeshType = "Sphere"
  274. m.Parent = sphere
  275. sphere.Parent = getparent()
  276. local crown = Instance.new("Part")
  277. crown.Anchored = true
  278. crown.CanCollide = false
  279. crown.BrickColor = color
  280. crown.Transparency = 1
  281. crown.Size = Vector3.new(1,1,1)
  282. crown.CFrame = char["Right Arm"].CFrame *CFrame.new(0,-1.5,0) *CFrame.Angles(math.rad(180),0,0)
  283. local m = Instance.new("SpecialMesh")
  284. m.MeshId = "rbxassetid://20329976"
  285. m.Scale = Vector3.new(4,4,4)
  286. m.Parent = crown
  287. crown.Parent = getparent()
  288. spawn(function()
  289. local num = 0
  290. local num2 = 0
  291. repeat swait()
  292. num2 = num2 + 10
  293. sphere.CFrame = char["Right Arm"].CFrame *CFrame.new(0,-2,0)
  294. crown.CFrame = char["Right Arm"].CFrame *CFrame.new(0,-1.5,0) *CFrame.Angles(math.rad(180),0,0)
  295. crown.CFrame = crown.CFrame:Lerp(crown.CFrame*CFrame.Angles(math.rad(0),math.rad(num2),0),0.5)
  296. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, 0, 1, 0.999848902, -0.0174523108, 0, 0.0174523108, 0.999848902, 0), 0.3)
  297. mouse.TargetFilter = char
  298. local dir = CFrame.new(char.HumanoidRootPart.CFrame.p, mouse.Hit.p).lookVector
  299. local x = dir.X
  300. local z = dir.Z
  301. mouse.TargetFilter = nil
  302. char.HumanoidRootPart.CFrame = CFrame.new(char.HumanoidRootPart.CFrame.p, char.HumanoidRootPart.CFrame.p+Vector3.new(x,0,z))
  303. num = num + 0.5
  304. local sin = math.sin(num)*2
  305. local cos = math.cos(num)*2
  306. p.CFrame = char["Right Arm"].CFrame *CFrame.new(sin,0,cos) *CFrame.new(0,-2,0)
  307. until not attacking
  308. p:Destroy()
  309. end)
  310. wait(2)
  311. local old
  312. soundeffect("rbxassetid://262562442", 2, 0.6, char.Torso)
  313. for i = 1, 100 do
  314. sphere.Transparency = sphere.Transparency -0.05
  315. crown.Transparency = sphere.Transparency
  316. local save = p
  317. if old then old:Destroy() end
  318. local p = Instance.new("Part")
  319. p.Anchored = false
  320. p.CanCollide = false
  321. p.Transparency = crown.Transparency
  322. p.BrickColor = color
  323. p.Material = "Neon"
  324. local start = char["Right Arm"].CFrame*CFrame.new(0,-3,0)
  325. mouse.TargetFilter = char
  326. local ray = Ray.new(start.p, (mouse.Hit.p-start.p).unit*500)
  327. local ignore = {char, save}
  328. local hit, pos = workspace:FindPartOnRayWithIgnoreList(ray, ignore)
  329. if pos then
  330. mouse.TargetFilter = char
  331. local mag = (start.p-pos).magnitude
  332. p.Name = "the sun is a deadly lazer"
  333. p.Size = Vector3.new(mag,5,5)
  334. local dir = CFrame.new(start.p, pos).lookVector
  335. p.CFrame = CFrame.new(start.p,start.p+dir) *CFrame.new(0,0,-mag/2) *CFrame.Angles(0,math.rad(90),0)
  336. local m = Instance.new("SpecialMesh")
  337. m.MeshType = "Cylinder"
  338. m.Parent = p
  339. if i ~= 100 then
  340. local bp = Instance.new("BodyPosition")
  341. bp.MaxForce = huge
  342. bp.Position = p.CFrame.p
  343. bp.Parent = p
  344. end
  345. p.Parent = getparent()
  346. mouse.TargetFilter = nil
  347. p.Touched:connect(function(hit)
  348. hurt(hit, 10)
  349. end)
  350. old = p
  351. end
  352. mouse.TargetFilter = nil
  353. swait()
  354. end
  355. if old then
  356. local p = old
  357. local op = p.CFrame
  358. for i = 1, 20 do
  359. p.Anchored = true
  360. p.Mesh.Scale = p.Mesh.Scale:Lerp(Vector3.new(1,0,0), 0.15)
  361. sphere.Mesh.Scale = sphere.Mesh.Scale:Lerp(Vector3.new(0,0,0), 0.15)
  362. crown.Mesh.Scale = crown.Mesh.Scale:Lerp(Vector3.new(0,0,0), 1.5)
  363. p.CFrame = op
  364. swait()
  365. end
  366. p:Destroy()
  367. end
  368. p:Destroy()
  369. sphere:Destroy()
  370. crown:Destroy()
  371. removejoint("Right Shoulder")
  372. attacking = false
  373. humanoid.AutoRotate = true
  374. end
  375. end
  376. if key == "v" and not attacking and animpose == ("Idle" or "Walking") then
  377. attacking = true
  378. humanoid.WalkSpeed = 0
  379. local p = Instance.new("Part")
  380. p.Anchored = true
  381. p.Name = "Path"
  382. p.BrickColor = color
  383. p.Material = "Neon"
  384. p.Size = Vector3.new(1,0.2,0.2)
  385. p.CFrame = char.Torso.CFrame *CFrame.new(0,-3,0)
  386. p.Parent = getparent()
  387. for i = 0, 2, 0.1 do
  388. p.Size = p.Size:Lerp(Vector3.new(1,0.2,7), 0.2)
  389. p.CFrame = char.Torso.CFrame *CFrame.new(0,-3,0) *CFrame.new(0,0,-p.Size.Z/2)
  390. swait()
  391. end
  392. local mod = Instance.new("Model")
  393. mod.Name = "The great wall on the southern US border"
  394. mod.Parent = getparent()
  395. local p2 = Instance.new("Part")
  396. p2.Name = "donald trump wall"
  397. p2.Anchored = true
  398. p2.BrickColor = color
  399. p2.Material = "Neon"
  400. p2.Size = Vector3.new(1,0.2,1)
  401. p2.CFrame = char.Torso.CFrame *CFrame.new(0,-3,0) *CFrame.new(0,0,-p.Size.Z)
  402. p2.Parent = mod
  403. for i = 0, 2, 0.1 do
  404. local ocf = p2.CFrame
  405. p2.Size = p2.Size:Lerp(Vector3.new(25,0.2,1), 0.2)
  406. p2.CFrame = ocf
  407. swait()
  408. end
  409. for i = 0, 2, 0.1 do
  410. local ocf = p2.CFrame
  411. p2.Size = p2.Size:Lerp(Vector3.new(25,25,1), 0.2)
  412. p2.CFrame = ocf
  413. swait()
  414. end
  415. local hum = Instance.new("Humanoid")
  416. hum.MaxHealth = 200*multiplier
  417. hum.Parent = mod
  418. spawn(function()
  419. repeat wait() until hum.Health <= 0
  420. local wall = p2
  421. local p1 = Instance.new("Part")
  422. p1.Name = "fragment"
  423. p1.Anchored = true
  424. p1.BrickColor = color
  425. p1.Material = "SmoothPlastic"
  426. smooth(p1)
  427. p1.Size = Vector3.new(25/2,25/2,1)
  428. p1.CFrame = wall.CFrame *CFrame.new(25/2,25/2,0)
  429. p1.Parent = mod
  430. local p2 = p1:Clone()
  431. p2.CFrame = wall.CFrame *CFrame.new(-25/2,25/2,0)
  432. local p3 = p1:Clone()
  433. p3.CFrame = wall.CFrame*CFrame.new(-25/2,-25/2,0)
  434. local p4 = p1:Clone()
  435. p4.CFrame = wall.CFrame *CFrame.new(25/2,-25/2,0)
  436. p2.Parent = mod
  437. p3.Parent = mod
  438. p4.Parent = mod
  439. wall:Destroy()
  440. for i,v in pairs({p1,p2,p3,p4}) do
  441. v.Anchored = false
  442. v.CanCollide = false
  443. v.CFrame = v.CFrame *CFrame.new(math.random(-0.2,0.2),math.random(-0.2,0.2),math.random(-0.2,0.2)) *CFrame.Angles(math.rad(math.random(-2,2)),math.rad(math.random(-2,2)),math.rad(math.random(-2,2)))
  444. end
  445. game.Debris:AddItem(mod, 3)
  446. end)
  447. swait()
  448. hum.Health = 200*multiplier
  449. attacking = false
  450. humanoid.WalkSpeed = 16
  451. local cf = char.Torso.CFrame *CFrame.new(0,-3,0)
  452. for i = 0, 2, 0.1 do
  453. p.Size = p.Size:Lerp(Vector3.new(1,0.2,0), 0.2)
  454. p.CFrame = cf *CFrame.new(0,0,-p.Size.Z/2)
  455. swait()
  456. end
  457. p:Destroy()
  458. end
  459. if key == "q" and not attacking then
  460. attacking = true
  461. local rs = replacejoint("Right Shoulder")
  462. local rj = replacejoint("RootJoint")
  463. local p = Instance.new("Part")
  464. p.Anchored = false
  465. p.CanCollide = false
  466. p.BrickColor = color
  467. p.Material = "Neon"
  468. smooth(p)
  469. p.Name = "pole up ur but"
  470. p.Size = Vector3.new(0.2,0.5,0.5)
  471. local m = Instance.new("SpecialMesh")
  472. m.MeshType = "Cylinder"
  473. m.Parent = p
  474. p.Parent = getparent()
  475. local w = Instance.new("Weld")
  476. w.Part0 = p
  477. w.Part1 = char["Right Arm"]
  478. w.C1 = CFrame.new(0,-1,0) --*CFrame.Angles(0,math.rad(90),0)
  479. w.Parent = p
  480. for i = 0, 2, 0.1 do
  481. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.173648581, 0.984808862, 0, 0, 0, 1, 0.984808862, 0.173648581, 0), 0.2)
  482. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, 0.121869408, 0.992547333, 0.999848902, 0.0173224807, -0.0021269382, -0.0174525417, 0.992397845, -0.121851459), 0.2)
  483. local ocf = p.CFrame
  484. p.Size = p.Size:Lerp(Vector3.new(5,0.5,0.5), 0.2)
  485. p.CFrame = ocf
  486. w = Instance.new("Weld")
  487. w.Part0 = p
  488. w.Part1 = char["Right Arm"]
  489. w.C1 = CFrame.new(0,-1,0) --*CFrame.Angles(0,math.rad(90),0)
  490. w.Parent = p
  491. swait()
  492. end
  493. for i = 0, 1, 0.1 do
  494. if i == 0.2 then
  495. soundeffect("rbxassetid://166423113", 2, 1, char.Torso)
  496. w:Destroy()
  497. p.CFrame = CFrame.new(p.Position, mouse.Hit.p)
  498. local bv = Instance.new("BodyVelocity")
  499. bv.MaxForce = huge
  500. bv.Velocity = p.CFrame.lookVector*200
  501. p.CFrame = CFrame.new(p.Position, mouse.Hit.p) *CFrame.Angles(0,math.rad(90),0)
  502. bv.Parent = p
  503. p.Touched:connect(function(hit)
  504. if hurt(hit, 40) then
  505. local p1 = Instance.new("Part")
  506. soundeffect("rbxassetid://636458264", 2, 1, p1)
  507. p1.Anchored = true
  508. p1.CanCollide = false
  509. p1.BrickColor = color
  510. p1.Material = "Neon"
  511. p1.Name = "omega ex-u-plosion"
  512. p1.CFrame = p.CFrame
  513. p1.Size = Vector3.new(0.2,0.2,0.2)
  514. p1.Transparency = 1
  515. local m = Instance.new("SpecialMesh")
  516. m.MeshType = "Sphere"
  517. m.Parent = p1
  518. p1.Parent = getparent()
  519. local sub = -0.1
  520. for i = 1, 30 do
  521. if i >= 15 then sub = 0.1 end
  522. p1.Transparency = p1.Transparency + sub
  523. local cf = p1.CFrame
  524. p1.Size = p1.Size:Lerp(Vector3.new(10,10,10),0.2)
  525. p1.CFrame = cf
  526. swait()
  527. end
  528. p1:Destroy()
  529. end
  530. end)
  531. end
  532. game.Debris:AddItem(p, 10)
  533. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.453991294, 0.891008019, 0.999848902, 0.0155503647, 0.00792330131, -0.0174525417, 0.890873849, 0.45392251), 0.4)
  534. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.999392986, -0.0348995253, 0, 0, 0, 1, -0.0348995253, 0.999392986, 0), 0.4)
  535. swait()
  536. end
  537. attacking = false
  538. fixalljoints()
  539. end
  540. if key == "f" and not attacking then
  541. attacking = true
  542. humanoid.WalkSpeed = 0
  543. local touch = false
  544. local num = 0
  545. local parts = {}
  546. local last = char.Torso.CFrame *CFrame.new(0,-3,0)
  547. local lastscale = 1.5
  548. local x,z = 0,0
  549. local udown = false
  550. local con = mouse.KeyDown:connect(function(key)
  551. if key == "w" then
  552. z = z + -2
  553. udown = true
  554. end
  555. if key == "a" then
  556. x = x + -0.3
  557. end
  558. if key == "d" then
  559. x = x + 0.3
  560. end
  561. end)
  562. local con2 = mouse.KeyUp:connect(function(key)
  563. if key == "w" then
  564. udown = false
  565. z = z - -2
  566. end
  567. if key == "a" then
  568. x = x - -0.3
  569. end
  570. if key == "d" then
  571. x = x - 0.3
  572. end
  573. end)
  574. local dir = char.Torso.CFrame.lookVector
  575. local o = workspace.CurrentCamera.CameraType
  576. repeat swait()
  577. local start = last *CFrame.new(0,0,-lastscale/2)
  578. local thing = false
  579. if z == 0 then
  580. z = -2
  581. thing = true
  582. end
  583. local finish = last *CFrame.new(x,0,z)
  584. local mag = (start.p-finish.p).magnitude
  585. num = num + 1
  586. local p = Instance.new("Part")
  587. p.Size = Vector3.new(1,0.2,mag)
  588. p.Name = "cool looking line that is just for looks"
  589. p.Anchored = true
  590. p.BrickColor = color
  591. p.Material = "Neon"
  592. smooth(p)
  593. p.CFrame = CFrame.new(start.p, finish.p)
  594. p.CFrame = p.CFrame *CFrame.new(0,0,-mag/2)
  595. last = p.CFrame
  596. lastscale = mag
  597. local m = Instance.new("SpecialMesh")
  598. m.MeshType = "Brick"
  599. m.Parent = p
  600. p.Touched:connect(function(hit)
  601. if hurt(hit, 200) then
  602. touch = true
  603. local p1 = Instance.new("Part")
  604. soundeffect("rbxassetid://636458264", 2, 1, p1)
  605. p1.Anchored = true
  606. p1.CanCollide = false
  607. p1.BrickColor = color
  608. p1.Material = "Neon"
  609. p1.Name = "omega ex-u-plosion"
  610. p1.CFrame = p.CFrame
  611. p1.Size = Vector3.new(0.2,0.2,0.2)
  612. p1.Transparency = 1
  613. local m = Instance.new("SpecialMesh")
  614. m.MeshType = "Sphere"
  615. m.Parent = p1
  616. p1.Parent = getparent()
  617. local sub = -0.1
  618. for i = 1, 30 do
  619. if i >= 15 then sub = 0.1 end
  620. p1.Transparency = p1.Transparency + sub
  621. local cf = p1.CFrame
  622. p1.Size = p1.Size:Lerp(Vector3.new(10,10,10),0.2)
  623. p1.CFrame = cf
  624. swait()
  625. end
  626. p1:Destroy()
  627. end
  628. end)
  629. table.insert(parts, p)
  630. p.Parent = getparent()
  631. workspace.CurrentCamera.CameraType = "Scriptable"
  632. workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(p.CFrame *CFrame.new(0,1,0),0.5)
  633. if thing then
  634. z = 0 thing = false
  635. end
  636. until touch or num == 500
  637. workspace.CurrentCamera.CameraType = o
  638. for i = 0, 1, 0.1 do
  639. for i,v in pairs(parts) do
  640. v.Mesh.Scale = v.Mesh.Scale:Lerp(Vector3.new(0,1,1),0.3)
  641. end
  642. swait()
  643. end
  644. for i,v in pairs(parts) do
  645. v:Destroy()
  646. end
  647. humanoid.WalkSpeed = 16
  648. attacking = false
  649. end
  650. if key == "t" and not attacking then
  651. attacking = true
  652. cananim = false
  653. tdown = true
  654. humanoid.WalkSpeed = 0
  655. local num = 0
  656. local dmg = 0
  657. local light = 0
  658. local p = Instance.new("Part")
  659. soundeffect("rbxassetid://163619849", 2, 1, p)
  660. p.Name = "ring o deth"
  661. p.Size = Vector3.new(1.16*4, 1.16*4, 0.16*8)
  662. p.CanCollide = false
  663. p.Anchored = false
  664. p.BrickColor = color
  665. p.Transparency = 0.5
  666. p.CFrame = char.Torso.CFrame *CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  667. local m = Instance.new("SpecialMesh")
  668. m.MeshId = "rbxassetid://3270017"
  669. m.Scale = Vector3.new(4,4,8)
  670. m.Parent = p
  671. p.Touched:connect(function(hit)
  672. hurt(hit, dmg)
  673. end)
  674. p.Parent = getparent()
  675. local w = Instance.new("Weld")
  676. w.Part0 = char.Torso
  677. w.Part1 = p
  678. w.C1 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, 1, 1.74845553e-07, 1, 7.64274186e-15, -1, 1.74845553e-07, -4.37113883e-08)
  679. w.Parent = char.Torso
  680. repeat swait()
  681. light = light + 1
  682. if light%20 then
  683. lightning(char.Torso.CFrame, char.Torso.CFrame *CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)),3,0.2)
  684. end
  685. if num <= 200 then
  686. num = num + 10
  687. end
  688. if dmg <= 90 then
  689. dmg = dmg + 5
  690. end
  691. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.259163707, -0.797623932, -0.544639647, -0.937001169, 0.344397515, -0.0585029572, 0.234235883, 0.495166451, -0.83662957), 0.2)
  692. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.262061596, 0.806542575, 0.529919863, 0.919012129, 0.376151204, -0.118025884, -0.294522434, 0.45607245, -0.839796424), 0.2)
  693. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.099999927, -0.400000006, 0, 0, -1, 0.190809026, 0.981627405, 0, 0.981627405, -0.190809026, 0), 0.2)
  694. rh.C0 = rh.C0:Lerp(CFrame.new(1, -0.099999927, -0.5, 0, 0, 1, -0.190809026, 0.981627524, 0, -0.981627524, -0.190809026, 0), 0.2)
  695. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0.275637418, 0.961262047, 0, 0.961262047, -0.275637418), 0.2)
  696. rj.C0 = rj.C0:Lerp(rj.C0*CFrame.Angles(math.rad(50),0,0), 0.5)
  697. until not tdown
  698. local bv = Instance.new("BodyVelocity")
  699. bv.MaxForce = huge
  700. char.Torso.CFrame = CFrame.new(char.Torso.Position, char.Torso.Position+workspace.CurrentCamera.CFrame.lookVector)
  701. bv.Velocity = workspace.CurrentCamera.CFrame.lookVector*num
  702. bv.Parent = char.Torso
  703. for i = 1, 100 do
  704. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.259163707, -0.797623932, -0.544639647, -0.937001169, 0.344397515, -0.0585029572, 0.234235883, 0.495166451, -0.83662957), 0.2)
  705. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.262061596, 0.806542575, 0.529919863, 0.919012129, 0.376151204, -0.118025884, -0.294522434, 0.45607245, -0.839796424), 0.2)
  706. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.099999927, -0.400000006, 0, 0, -1, 0.190809026, 0.981627405, 0, 0.981627405, -0.190809026, 0), 0.2)
  707. rh.C0 = rh.C0:Lerp(CFrame.new(1, -0.099999927, -0.5, 0, 0, 1, -0.190809026, 0.981627524, 0, -0.981627524, -0.190809026, 0), 0.2)
  708. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0.275637418, 0.961262047, 0, 0.961262047, -0.275637418), 0.2)
  709. rj.C0 = rj.C0:Lerp(rj.C0*CFrame.Angles(math.rad(50),0,0), 0.5)
  710. swait()
  711. end
  712. p:Destroy()
  713. bv:Destroy()
  714. cananim = true
  715. attacking = false
  716. humanoid.WalkSpeed = 16
  717. end
  718. if key == "g" and not attacking then
  719. attacking = true
  720. local rs = replacejoint("Right Shoulder")
  721. local rj = replacejoint("RootJoint")
  722. local p = Instance.new("Part")
  723. p.Size = Vector3.new(0.2,0.2,0.2)
  724. p.Name = "ball that will make an EXU-PLOSION!"
  725. p.Material = "Neon"
  726. p.BrickColor = color
  727. smooth(p)
  728. local m = Instance.new("SpecialMesh")
  729. m.MeshType = "Sphere"
  730. m.Parent = p
  731. p.Parent = getparent()
  732. local w = Instance.new("Weld")
  733. w.Part0 = char["Right Arm"]
  734. w.Part1 = p
  735. w.C1 = CFrame.new(0,2,0)
  736. w.Parent = char["Right Arm"]
  737. for i = 0, 2, 0.1 do
  738. p.Size = p.Size:Lerp(Vector3.new(1,1,1), 0.3)
  739. w = Instance.new("Weld")
  740. w.Part0 = char["Right Arm"]
  741. w.Part1 = p
  742. w.C1 = CFrame.new(0,2,0)
  743. w.Parent = char["Right Arm"]
  744. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.933580935, -0.358368069, 0, 0, 0, 1, -0.358368039, 0.933580995, 0), 0.2)
  745. rs.C0 = rs.C0:Lerp(CFrame.new(1.50000072, -5.81145287e-07, 0, 0, -1.00000119, 1.15483999e-07, 0, 1.15483999e-07, 1.00000119, -1, 0, 0), 0.2)
  746. swait()
  747. end
  748. for i = 0, 1, 0.1 do
  749. if i == 0.4 then
  750. soundeffect("rbxassetid://166423113", 2, 1, char.Torso)
  751. w:Destroy()
  752. p.Touched:connect(function(hit)
  753. if hit.Parent then
  754. if hit.Parent.Name ~= plr.Name and not hit.Parent:IsA("Accessory") then
  755. local e = Instance.new("Part")
  756. soundeffect("rbxassetid://636458264", 2, 1, e)
  757. e.Name = "EXTREME EXPLOSION"
  758. e.Size = Vector3.new(1,1,1)
  759. smooth(e)
  760. e.CanCollide = false
  761. e.Material = "Neon"
  762. e.CFrame = p.CFrame
  763. e.BrickColor = color
  764. p.Transparency = 1
  765. p:Destroy()
  766. e.Touched:connect(function(hit)
  767. hurt(hit, 40)
  768. end)
  769. e.Parent = getparent()
  770. local go = 1/15
  771. for i = 1, 30 do
  772. if i == 15 then go = -1/15 end
  773. local o = e.CFrame
  774. e.Size = e.Size:Lerp(Vector3.new(30,30,30), 0.2)
  775. e.Transparency = e.Transparency - go
  776. e.CFrame = o
  777. swait()
  778. end
  779. end
  780. end
  781. end)
  782. local bv = Instance.new("BodyVelocity")
  783. bv.MaxForce = huge
  784. bv.Velocity = CFrame.new(p.CFrame.p, mouse.Hit.p).lookVector*150
  785. bv.Parent = p
  786. swait(10)
  787. bv:Destroy()
  788. end
  789. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.984808564, 0.173648387, 0, 0, 0, 1, 0.173648417, 0.984808564, 0), 0.4)
  790. rs.C0 = rs.C0:Lerp(CFrame.new(1.10660362, 0.0137371887, -0.452826679, -0.754252374, 0.655661404, 0.034899652, 0.0263391752, -0.0228962805, 0.999392033, 0.65606004, 0.754711151, 0), 0.4)
  791. swait()
  792. end
  793. attacking = false
  794. fixalljoints()
  795. end
  796. if key == "j" and not attacking then
  797. if not rage then
  798. jdown = true
  799. humanoid.MaxHealth = 10000
  800. humanoid.Health = 10000
  801. local p = Instance.new("Part")
  802. p.Anchored = false
  803. p.CanCollide = false
  804. p.Size = Vector3.new(1,1,1)
  805. p.Name = "cool powers"
  806. p.Transparency = 1
  807. local pe = Instance.new("ParticleEmitter")
  808. pe.Name = "cool effects that are just for looks cause everything looks cool with particleemitters"
  809. pe.Color = ColorSequence.new(color.Color)
  810. pe.LightEmission = 0.7
  811. pe.Size = NumberSequence.new(1)
  812. pe.Texture = "rbxassetid://243664672"
  813. pe.Transparency = NumberSequence.new(0)
  814. pe.ZOffset = 0
  815. pe.Acceleration = Vector3.new(0,0,0)
  816. pe.Drag = 0
  817. pe.LockedToPart = true
  818. pe.VelocityInheritance = 0
  819. pe.Lifetime = NumberRange.new(10)
  820. pe.Rate = 5
  821. pe.Rotation = NumberRange.new(0)
  822. pe.RotSpeed = NumberRange.new(0)
  823. pe.Speed = NumberRange.new(0)
  824. pe.VelocitySpread = 0
  825. pe.Parent = p
  826. local w = Instance.new("Weld")
  827. w.Part0 = p
  828. w.Part1 = char["Right Arm"]
  829. w.C1 = CFrame.new(0,-1.2,0)
  830. w.Parent = p
  831. p.Parent = char
  832. local p2 = p:Clone()
  833. p2.Parent = char
  834. p2:FindFirstChild("Weld"):Destroy()
  835. local w2 = Instance.new("Weld")
  836. w2.Part0 = p2
  837. w2.Part1 = char["Left Arm"]
  838. w2.C1 = CFrame.new(0,-1.2,0)
  839. w2.Parent = p2
  840. multiplier = 2
  841. mobs.SoundId = "rbxassetid://246495880"
  842. mobs:Play()
  843. rage = true
  844. local num = 0
  845. repeat swait()
  846. num = num + 1
  847. until not jdown
  848. if num >= 50 then
  849. pe.Size = NumberSequence.new(2)
  850. p2:FindFirstChild(pe.Name).Size = pe.Size
  851. multiplier = 5
  852. mobs:Play()
  853. mobs.PlaybackSpeed = 1.5
  854. end
  855. else
  856. for i = 1, 2 do
  857. local obj = char:FindFirstChild("cool powers")
  858. if obj then
  859. obj:Destroy()
  860. end
  861. end
  862. mobs.SoundId = "rbxassetid://380090290"
  863. mobs.PlaybackSpeed = 1
  864. mobs:Play()
  865. rage = false
  866. multiplier = 1
  867. humanoid.MaxHealth = 500
  868. end
  869. end
  870. if key == "e" and not attacking then
  871. attacking = true
  872. local rs = replacejoint("Right Shoulder")
  873. local con = char["Right Arm"].Touched:connect(function(hit)
  874. if hurt(hit, 50) then
  875. local bv = Instance.new("BodyVelocity")
  876. bv.MaxForce = huge
  877. bv.Velocity = -char["Right Arm"].CFrame.upVector*100
  878. bv.Parent = hit
  879. game.Debris:AddItem(bv, 1)
  880. end
  881. end)
  882. for i = 0, 2, 0.1 do
  883. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)*CFrame.Angles(0,0,math.rad(90)), 0.2)
  884. swait()
  885. end
  886. swait(10)
  887. con:disconnect()
  888. fixalljoints()
  889. attacking = false
  890. end
  891. if key == "z" and not attacking then
  892. if powers then
  893. powers = false
  894. else
  895. powers = true
  896. end
  897. end
  898. end)
  899. mouse.KeyUp:connect(function(key)
  900. if key == "t" and attacking and tdown then
  901. tdown = false
  902. end
  903. if key == "j" and rage then
  904. jdown = false
  905. end
  906. end)
  907. local lp
  908. spawn(function()
  909. local num = 0
  910. while swait() do
  911. if not attacking then
  912. energy = energy + 1
  913. end
  914. local v = char.HumanoidRootPart.Velocity
  915. if v.Y > 15 then
  916. animpose = "Jump"
  917. end
  918. if v.Y < -15 then
  919. animpose = "Falling"
  920. end
  921. if math.abs(v.X)+math.abs(v.Z) >=10 and v.Y == 0 then
  922. animpose = "Walking"
  923. end
  924. if math.abs(v.X)+v.Y+math.abs(v.Z) <= 9 and v.Y == 0 then
  925. animpose = "Idle"
  926. end
  927. end
  928. end)
  929. local num = 0
  930. while swait() do
  931. num = num + 0.1
  932. local sin = math.sin(num)
  933. if animpose == "Walking" and cananim and powers then
  934. for i = 0, 1.5, 0.1 do
  935. if animpose == "Walking" and cananim then
  936. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0.0406726934, 0.0329360999, -0.99862957, 0.776081443, 0.62845856, 0.0523359552, 0.629320979, -0.777146459, 0), 0.2)
  937. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.0388932228, -0.0350196026, 0.998629689, 0.742127001, 0.668214321, 0.0523359627, -0.66913116, 0.743145287, 0), 0.2)
  938. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.024677692, 0.0246776957, -0.999390841, 0.706676483, 0.706676781, 0.0348994955, 0.707107425, -0.707107246, 0), 0.2)
  939. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0136363264, -0.032125175, 0.999390841, 0.390493214, 0.919944584, 0.0348994955, -0.920505524, 0.390731305, 0), 0.2)
  940. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  941. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.99969542, -0.0174524058, 0.0174497478, 0.0174524058, 0, 0.99984771, -0.0174497478, 0.99984771, 0.000304586458), 0.2)
  942. swait()
  943. else
  944. break
  945. end
  946. end
  947. for i = 0, 1.5, 0.1 do
  948. if animpose == "Walking" and cananim and powers then
  949. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.0433885492, 0.0292659476, -0.99862957, -0.827903032, 0.558427453, 0.0523359552, 0.559194028, 0.829038858, 0), 0.2)
  950. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0.0400917344, -0.0336409658, 0.998629689, -0.764996171, 0.641907811, 0.0523359627, -0.642788768, -0.76604563, 0), 0.2)
  951. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0163843632, 0.0308145005, -0.999390841, -0.469186544, 0.882411182, 0.0348994955, 0.882949054, 0.469472289, 0), 0.2)
  952. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.0246777162, -0.0246777181, 0.999390841, -0.70667702, 0.70667696, 0.0348994955, -0.707107902, -0.707107782, 0), 0.2)
  953. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  954. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.999695539, 0.0174497515, -0.0174524095, -0.0174497515, 0.000304586574, 0.999847829, 0.0174524058, 0.99984771, -2.90993982e-11), 0.2)
  955. swait()
  956. else
  957. break
  958. end
  959. end
  960. end
  961. if animpose == "Idle" and cananim and powers then
  962. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2)
  963. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.0523359552, 0.99862957, 0, 0.99862957, 0.0523359552, -1, -0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2)
  964. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.2)
  965. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.2)
  966. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.994522035, -0.104528472, 0, 0, 0, 1, -0.104528472, 0.994522035, 0), 0.2)
  967. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.997564137, 0.0697564781, 0, 0, 0, 1, 0.0697564781, 0.997564137, 0), 0.2)
  968. swait()
  969. end
  970. if animpose == "Jump" and cananim and powers then
  971. for i = 0, 0.8, 0.1 do
  972. if animpose == "Jump" and cananim and powers then
  973. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2)
  974. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.104528472, 0.994522035, 0, 0.994522035, 0.104528472, -1, -0, 0), 0.2)
  975. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.499999911, -0.5, 0, 0, -1, 0.309017062, 0.951056957, 0, 0.951056957, -0.309017062, 0), 0.2)
  976. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, 0, 1, -0.121869355, 0.99254632, 0, -0.99254632, -0.121869355, 0), 0.2)
  977. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  978. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  979. swait()
  980. else
  981. break
  982. end
  983. end
  984. end
  985. if animpose == "Falling" and cananim and powers then
  986. ls.C0 = ls.C0:Lerp(CFrame.new(-0.987813056, 0.599254608, 0, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2)
  987. rs.C0 = rs.C0:Lerp(CFrame.new(0.986082673, 0.599026859, 0, 0, -0.139173135, 0.990268409, 0, 0.990268409, 0.139173135, -1, 0, 0), 0.2)
  988. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.963904023, 0.0336604826, 0, 0.104528472, -0.994522035, 0.0697564557, 0.992099881, 0.1042739, 0.997564554, -0.0693743229, -0.00729153492), 0.2)
  989. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0697564781, 0.997564137, -0.121869355, 0.990128577, 0.0692365244, -0.99254632, -0.121572495, -0.00850117672), 0.2)
  990. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0.13917312, 0.99026823, 0, 0.99026823, -0.13917312), 0.2)
  991. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  992. end
  993.  
  994. end
Add Comment
Please, Sign In to add comment