Advertisement
qwbbedly

Untitled

Dec 17th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 118.09 KB | None | 0 0
  1.  
  2.  
  3. -- YEET
  4. plr = game.Players.LocalPlayer
  5. mouse = plr:GetMouse()
  6. part = nil
  7. bp = nil
  8. particles = nil
  9. local Character = plr.Character
  10. -- Trinitum
  11. local s = Instance.new("Sound")
  12. s.Name = "Trinity"
  13. s.SoundId = "https://www.roblox.com/asset/?id=251976044"
  14. s.Pitch = 1.3
  15. s.Volume = 10
  16. s.Looped = false
  17. s.archivable = false
  18. s.Parent = Character.Head
  19. wait(0.1)
  20. s:play()
  21. -- Trinity Aura
  22.  
  23.  
  24. local RightArm = Character["Right Arm"]
  25. local RootPart = Character.Torso
  26. EffectModel = Instance.new("Model", Character)
  27. it = Instance.new
  28. cf = CFrame.new
  29. EffectModel.Name = "Effects"
  30. local EffecMo = EffectModel
  31. Gring = it("Part", EffectModel)
  32. Gring.Size = Vector3.new(8, 0, 8)
  33. Gring.CFrame = RootPart.CFrame
  34. Gring.Transparency = 1
  35. Gring.Anchored = true
  36. Gring.CanCollide = false
  37. rgui = it("SurfaceGui", Gring)
  38. rgui.Face = "Top"
  39. igui = it("ImageLabel", rgui)
  40. igui.BackgroundTransparency = 1
  41. igui.Size = UDim2.new(1, 0, 1, 0)
  42. igui.Image = "rbxassetid://1245317611"
  43. igui.ImageColor3 = Color3.new(25, 25, 255)
  44. rtgui = rgui:clone()
  45. rtgui.Parent = Gring
  46. rtgui.Face = "Bottom"
  47. Lring = Instance.new("Part", EffectModel)
  48. Lring.CanCollide = false
  49. Lring.Anchored = false
  50. Lring.CFrame = RightArm.CFrame * CFrame.new(0, -1, 0)
  51. Lring.Transparency = 0
  52. rgui = Instance.new("BillboardGui")
  53. rgui.Parent = Lring
  54. rgui.Size = UDim2.new(3, 0, 2.4, 0)
  55. rgui.AlwaysOnTop = false
  56. rimg = Instance.new("ImageLabel")
  57. rimg.Parent = rgui
  58. rimg.BackgroundTransparency = 1
  59. rimg.Size = UDim2.new(1, 0, 1, 0)
  60. rimg.Image = "rbxassetid://200369289"
  61. rimg.ImageColor3 = Color3.new(255, 255, 0)
  62. local rotnum = 0
  63. function rayCast(Position, Direction, Range, Ignore)
  64. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  65. end
  66. function clerp(a, b, t, c, d)
  67. return a:Lerp(b, t)
  68. end
  69. game["Run Service"].RenderStepped:connect(function()
  70. rotnum = rotnum + 1
  71. local hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  72. if hitfloor2 ~= nil then
  73. Gring.CFrame = clerp(Gring.CFrame, cf(posfloor2) * CFrame.Angles(0, math.rad(5 * rotnum), 0), 1)
  74. end
  75. end)
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. -- Moves
  83.  
  84.  
  85. math.randomseed(tick())
  86. plr = game:service("Players").LocalPlayer
  87. ch, char = plr.Character, plr.Character
  88. hum = ch.Humanoid
  89. tor, torso, rootpart, rj = ch.Torso, ch.Torso, ch.HumanoidRootPart, ch.HumanoidRootPart.RootJoint
  90. m, mouse = plr:GetMouse(), plr:GetMouse()
  91. cfn, ang, mr, int = CFrame.new, CFrame.Angles, math.rad, Instance.new
  92. bc = BrickColor.new
  93. head = ch.Head
  94. cam = workspace.CurrentCamera
  95. rj.C0 = cfn()
  96. rj.C1 = cfn()
  97. lib = {}
  98. lib.cone = "1033714"
  99. lib.ring = "3270017"
  100. lib.yato = "579392805"
  101. rbx = "rbxassetid://"
  102. v3 = Vector3.new
  103. cn = CFrame.new
  104. ca2 = CFrame.Angles
  105. mf = math.floor
  106. mran = math.random
  107. rn = mran
  108. mrad = math.rad
  109. rd = mrad
  110. mdeg = math.deg
  111. dg = mdeg
  112. function ca(x, y, z)
  113. return ca2(mrad(x), mrad(y), mrad(z))
  114. end
  115. function mran2(a, b)
  116. return mran(a * 1000, b * 1000) / 1000
  117. end
  118. ud = UDim2.new
  119. bn = BrickColor.new
  120. c3 = Color3.new
  121. function getSound(id)
  122. game:service("ContentProvider"):Preload("rbxassetid" .. tostring(id))
  123. local s = int("Sound", ch.Head)
  124. s.SoundId = "rbxassetid://" .. tostring(id - 1)
  125. s.Volume = 1
  126. return s
  127. end
  128. local combostring = ""
  129. local attackstring = ""
  130. blocksound = getSound(260433722)
  131. blocksound.Pitch = 1
  132. startsound = getSound(588738950)
  133. startsound.Pitch = 1
  134. endsound = getSound(588736246)
  135. endsound.Pitch = 1
  136. endsound.Volume = 2
  137. swsound = getSound(588736970)
  138. swexp = getSound(365002939)
  139. swexp.Pitch = 1
  140. spexp = getSound(131166206)
  141. spexp.Pitch = 1.2
  142. startsound2 = getSound(260433769)
  143. startsound2.Pitch = 0.8
  144. startsound3 = getSound(260433769)
  145. startsound3.Pitch = 0.89
  146. chargesound = getSound(181004944)
  147. chargesound.Pitch = 1
  148. basicsound = getSound(131166206)
  149. basicsound.Pitch = 1.2
  150. dodgesound = getSound(177162407)
  151. dodgesound.Pitch = 1.4
  152. landsound = getSound(315775190)
  153. rushsound = getSound(131166206)
  154. swoosh = getSound(131166206)
  155. swoosh.Volume = 2
  156. aerialcharge = getSound(265109959)
  157. aerialcharge.Pitch = 1.1
  158. curse = getSound(231917971)
  159. glass = getSound(130779172)
  160. magictone1 = getSound(131166206)
  161. game:GetService("Chat"):Chat(head, "Trinity Qwbbedly")
  162. tweenTable = {}
  163. altTweenTable = {}
  164. local alljoints = {}
  165. textTable = {}
  166. local fx = {}
  167. moves = {}
  168. connectlist = {}
  169. cooldowns = {}
  170. movers = {}
  171. local linetable = {}
  172. local run = false
  173. idle = false
  174. local animPlaying = false
  175. local runLeg = false
  176. canRunLeg = false
  177. local deb = false
  178. local basicswitch = false
  179. local canExecuteMoves = true
  180. maxmana = 1000
  181. mana = 1000
  182. chain = 0
  183. hum.MaxHealth = 333
  184. spawn(function()
  185. wait()
  186. hum.Health = 333
  187. end)
  188. local terradrillhowl = Instance.new("Sound", torso)
  189. terradrillhowl.SoundId = "rbxassetid://138677306"
  190. terradrillhowl.Volume = 10
  191. local terranovaspawn = Instance.new("Sound", torso)
  192. terranovaspawn.SoundId = "rbxassetid://237142728"
  193. terranovaspawn.Volume = 10
  194. local managui = int("ScreenGui", plr.PlayerGui)
  195. managui.Name = "Mana Gui"
  196. local frame = int("Frame", managui)
  197. frame.Size = UDim2.new(0.15, 0, 0.02, 0)
  198. frame.Position = UDim2.new(0.83, 0, 0.7, 0)
  199. frame.BackgroundColor3 = BrickColor.new("Black").Color
  200. frame.BorderColor3 = BrickColor.new("Cool yellow").Color
  201. frame.BorderSizePixel = 6
  202. local manabartext = int("TextLabel", frame)
  203. manabartext.ZIndex = 2
  204. manabartext.Size = UDim2.new(1, 0, 1, 0)
  205. manabartext.TextColor3 = BrickColor.new("White").Color
  206. manabartext.TextStrokeTransparency = 1
  207. manabartext.Font = "SourceSansLight"
  208. manabartext.Text = tostring(mana) .. "/" .. tostring(maxmana)
  209. manabartext.FontSize = "Size18"
  210. manabartext.BackgroundTransparency = 1
  211. local manabar = int("Frame", frame)
  212. manabar.Size = UDim2.new(1, 0, 1, 0)
  213. manabar.BorderSizePixel = 0
  214. manabar.BackgroundColor3 = BrickColor.new("Bright blue").Color
  215. manabar.Size = UDim2.new(mana / maxmana, 0, 1, 0)
  216. local chainframe = int("Frame", managui)
  217. chainframe.Size = frame.Size
  218. chainframe.BackgroundTransparency = 1
  219. chainframe.Position = frame.Position + UDim2.new(0.07, 0, -0.05, 0)
  220. local chaintext = int("TextLabel", chainframe)
  221. chaintext.BackgroundTransparency = 1
  222. chaintext.TextStrokeColor3 = BrickColor.new("White").Color
  223. chaintext.TextStrokeTransparency = 1
  224. chaintext.Size = UDim2.new(1, 0, 1, 0)
  225. chaintext.Font = "Antique"
  226. chaintext.FontSize = "Size48"
  227. chaintext.Text = "0x"
  228. ypcall(function()
  229. ch.Animate:Destroy()
  230. ch.Humanoid.Animator:Destroy()
  231. end)
  232. if ch:findFirstChild("Riven") then
  233. ch.Riven:Destroy()
  234. end
  235. local tube = int("Model", ch)
  236. tube.Name = "Riven"
  237. script.Parent = tube
  238. function Weld(p0, p1, x, y, z, rx, ry, rz, par)
  239. p0.Position = p1.Position
  240. local w = Instance.new("Motor", par or p0)
  241. w.Part0 = p1
  242. w.Part1 = p0
  243. w.C0 = CFrame.new(x or 0, y or 0, z or 0) * CFrame.Angles(rx or 0, ry or 0, rz or 0)
  244. w.MaxVelocity = 0.1
  245. return w
  246. end
  247. function clerp(c1, c2, sp)
  248. local R1, R2, R3 = c1:toEulerAnglesXYZ()
  249. local R21, R22, R23 = c2:toEulerAnglesXYZ()
  250. return CFrame.new(c1.X + (c2.X - c1.X) * sp, c1.Y + (c2.Y - c1.Y) * sp, c1.Z + (c2.Z - c1.Z) * sp) * CFrame.Angles(R1 + (R21 - R1) * sp, R2 + (R22 - R2) * sp, R3 + (R23 - R3) * sp)
  251. end
  252. function Tween(Weld, Stop, Step, a)
  253. ypcall(function()
  254. local function func()
  255. local Start = Weld.C1
  256. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  257. local Stop = Stop
  258. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  259. if not Step then
  260. Step = 0.1
  261. end
  262. table.insert(tweenTable, {
  263. th = 0,
  264. Weld = Weld,
  265. Step = Step,
  266. Start = Start,
  267. X1 = X1,
  268. Y1 = Y1,
  269. Z1 = Z1,
  270. Stop = Stop,
  271. X2 = X2,
  272. Y2 = Y2,
  273. Z2 = Z2
  274. })
  275. end
  276. if a then
  277. coroutine.wrap(func)()
  278. else
  279. func()
  280. end
  281. end)
  282. end
  283. function altTween(Weld, Stop, Step, a)
  284. ypcall(function()
  285. local function func()
  286. local Start = Weld.C1
  287. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  288. local Stop = Stop
  289. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  290. if not Step then
  291. Step = 0.1
  292. end
  293. table.insert(altTweenTable, {
  294. th = 0,
  295. Weld = Weld,
  296. Step = Step,
  297. Start = Start,
  298. X1 = X1,
  299. Y1 = Y1,
  300. Z1 = Z1,
  301. Stop = Stop,
  302. X2 = X2,
  303. Y2 = Y2,
  304. Z2 = Z2
  305. })
  306. end
  307. if a then
  308. coroutine.wrap(func)()
  309. else
  310. func()
  311. end
  312. end)
  313. end
  314. function weld(p0, p1, c0)
  315. local w = Instance.new("Weld", p0)
  316. w.Part0 = p0
  317. w.Part1 = p1
  318. w.C0 = c0
  319. return w
  320. end
  321. function cp(parent, color, size, anchored, cancollide)
  322. local newp = Instance.new("Part", parent)
  323. newp.TopSurface = "SmoothNoOutlines"
  324. newp.BottomSurface = "SmoothNoOutlines"
  325. newp.FrontSurface = "SmoothNoOutlines"
  326. newp.BackSurface = "SmoothNoOutlines"
  327. newp.RightSurface = "SmoothNoOutlines"
  328. newp.LeftSurface = "SmoothNoOutlines"
  329. newp.FormFactor = "Custom"
  330. newp.BrickColor = bc(color)
  331. local rn = math.random(3)
  332. if rn == 1 then
  333. end
  334. newp.Size = size
  335. newp.Anchored = anchored
  336. newp.CanCollide = cancollide
  337. newp:BreakJoints()
  338. return newp
  339. end
  340. function cpa(parent, MeshID, color, size, anchored, cancollide)
  341. local newp = Instance.new("MeshPart", parent)
  342. newp.TopSurface = "SmoothNoOutlines"
  343. newp.BottomSurface = "SmoothNoOutlines"
  344. newp.FrontSurface = "SmoothNoOutlines"
  345. newp.BackSurface = "SmoothNoOutlines"
  346. newp.RightSurface = "SmoothNoOutlines"
  347. newp.LeftSurface = "SmoothNoOutlines"
  348. newp.FormFactor = "Custom"
  349. newp.BrickColor = bc(color)
  350. local rn = math.random(3)
  351. if rn == 1 then
  352. end
  353. newp.Size = size
  354. newp.Anchored = anchored
  355. newp.CanCollide = cancollide
  356. newp:BreakJoints()
  357. return newp
  358. end
  359.  
  360. function destroyJoints()
  361. for i = 1, 5 do
  362. for _, v in pairs(alljoints) do
  363. ypcall(function()
  364. v:Destroy()
  365. table.remove(alljoints, _)
  366. end)
  367. end
  368. end
  369. end
  370. function initializeJoints()
  371. destroyJoints()
  372. rabr = cp(tube, "White", Vector3.new(1, 1, 1), false, false)
  373. rabr.Transparency = 1
  374. rabr.Name = "Locker"
  375. rabr.Position = torso.Position
  376. rw = Weld(rabr, torso, 1.5, 0.5, 0, 0, 0, 0)
  377. rw.Parent = tube
  378. rw.Name = "rw"
  379. w = Instance.new("Weld", tube)
  380. w.Part0, w.Part1 = ch["Right Arm"], rabr
  381. w.C1 = CFrame.new(0, -0.5, 0)
  382. labr = cp(tube, "White", Vector3.new(1, 1, 1), false, false)
  383. labr.Transparency = 1
  384. labr.Name = "Locker"
  385. labr.Position = torso.Position
  386. lw = Weld(labr, torso, -1.5, 0.5, 0, 0, 0, 0)
  387. lw.Parent = tube
  388. lw.Name = "lw"
  389. ww = Instance.new("Weld", tube)
  390. ww.Part0, ww.Part1 = ch["Left Arm"], labr
  391. ww.C1 = CFrame.new(0, -0.5, 0)
  392. rlabr = cp(tube, "White", Vector3.new(1, 1, 1), false, false)
  393. rlabr.Transparency = 1
  394. rlabr.Name = "Locker"
  395. rlabr.Position = torso.Position
  396. rlw = Weld(rlabr, torso, 0.5, -1.5, 0, 0, 0, 0)
  397. rlw.Parent = tube
  398. rlw.Name = "rlw"
  399. wl = Instance.new("Weld", tube)
  400. wl.Part0, wl.Part1 = ch["Right Leg"], rlabr
  401. wl.C1 = CFrame.new(0, -0.5, 0)
  402. llabr = cp(tube, "White", Vector3.new(1, 1, 1), false, false)
  403. llabr.Transparency = 1
  404. llabr.Name = "Locker"
  405. llabr.Position = torso.Position
  406. llw = Weld(llabr, torso, -0.5, -1.5, 0, 0, 0, 0)
  407. llw.Parent = tube
  408. llw.Name = "llw"
  409. wwl = Instance.new("Weld", tube)
  410. wwl.Part0, wwl.Part1 = ch["Left Leg"], llabr
  411. wwl.C1 = CFrame.new(0, -0.5, 0)
  412. nk = cp(tube, "White", Vector3.new(1, 1, 1), false, false)
  413. nk.Transparency = 1
  414. nk.Name = "Locker"
  415. nk.Position = torso.Position
  416. neck = Weld(nk, torso, 0, 2, 0, 0, 0, 0)
  417. neck.Parent = tube
  418. neck.Name = "neck"
  419. www = Instance.new("Weld", tube)
  420. www.Part0, www.Part1 = ch.Head, nk
  421. www.C1 = CFrame.new(0, -0.5, 0)
  422. table.insert(alljoints, rabr)
  423. table.insert(alljoints, labr)
  424. table.insert(alljoints, rw)
  425. table.insert(alljoints, lw)
  426. table.insert(alljoints, w)
  427. table.insert(alljoints, ww)
  428. table.insert(alljoints, rlabr)
  429. table.insert(alljoints, llabr)
  430. table.insert(alljoints, rlw)
  431. table.insert(alljoints, llw)
  432. table.insert(alljoints, wl)
  433. table.insert(alljoints, wwl)
  434. table.insert(alljoints, nk)
  435. table.insert(alljoints, neck)
  436. table.insert(alljoints, www)
  437. end
  438. function cyl(prt)
  439. local c = int("CylinderMesh", prt)
  440. return c
  441. end
  442. function blo(prt)
  443. local c = int("BlockMesh", prt)
  444. c.Name = "bmsh"
  445. return c
  446. end
  447. function sphere(prt)
  448. local c = int("SpecialMesh", prt)
  449. c.MeshType = "Sphere"
  450. return c
  451. end
  452. initializeJoints()
  453. function reset()
  454. if run == false and animPlaying == false then
  455. altTweenTable = {}
  456. Tween(llw, cfn(0, -0.08 * math.sin(tick() * 1.5), 0) * ang(0, 0, mr(5)))
  457. Tween(rlw, cfn(0, -0.08 * math.sin(tick() * 1.5), 0) * ang(0, 0, mr(-5)))
  458. Tween(rw, cfn(0, 0.1 * math.sin(tick() * 1.5), 0) * ang(0, 25.5, mr(-15) + mr(-5 * math.sin(tick() * 1.5))))
  459. Tween(lw, cfn(0, 0.1 * math.sin(tick() * 1.5), 0) * ang(0, -25, mr(15) + mr(5 * math.sin(tick() * 1.5))))
  460. Tween(neck, cfn())
  461. Tween(rj, cfn(0, 0.08 * math.sin(tick() * 1.5), 0), 0.3)
  462. end
  463. end
  464. function resetLegs()
  465. altTweenTable = {}
  466. Tween(llw, cfn())
  467. Tween(rlw, cfn())
  468. end
  469. function walkCycle()
  470. if run == true and animPlaying == false then
  471. tweenTable = {}
  472. Tween(rj, cfn())
  473. Tween(llw, cfn(0, 0, -0.2 * math.sin(tick() * 8)) * ang(mr(10) + mr(60 * math.sin(tick() * 8)), 0, 0), 0.6)
  474. Tween(rlw, cfn(0, 0, 0.2 * math.sin(tick() * 8)) * ang(mr(10) + mr(-60 * math.sin(tick() * 8)), 0, 0), 0.6)
  475. Tween(rw, cfn( 0, 0, 20 * math.sin(tick() * 0)) * ang(mr(10) + mr(60 * math.sin(tick() * 8)), 0, 0), 0.6)
  476. Tween(lw, cfn( 0, 0, 0.2 * math.sin(tick() * 0)) * ang(mr(10) + mr(-60 * math.sin(tick() * 8)), 0, 0), 0.6)
  477. end
  478. end
  479. function walkLegs()
  480. if runLeg == true then
  481. altTweenTable = {}
  482. altTween(llw, cfn(0, 0, -0.2 * math.sin(tick() * 8)) * ang(mr(20) + mr(50 * math.sin(tick() * 8)), 0, 0), 0.6)
  483. altTween(rlw, cfn(0, 0, 0.2 * math.sin(tick() * 8)) * ang(mr(20) + mr(-50 * math.sin(tick() * 8)), 0, 0), 0.6)
  484. end
  485. end
  486. function dealDamage(man, damage, crit, multi, lifesteal)
  487. if man and man:findFirstChild("Humanoid") and man.Head then
  488. local dm = damage
  489. local cr = false
  490. local hm = man.Humanoid
  491. if crit and crit > 0 then
  492. local c = math.random(crit)
  493. if c == 1 then
  494. cr = true
  495. end
  496. end
  497. if cr == true then
  498. if not multi then
  499. dm = dm * 1.5
  500. else
  501. dm = dm * multi
  502. end
  503. end
  504. hm:TakeDamage(dm)
  505. if lifesteal then
  506. local plife = lifesteal * dm
  507. if hum.Health < hum.MaxHealth then
  508. hum.Health = hum.Health + plife
  509. local bbg = int("BillboardGui", tube)
  510. bbg.Size = UDim2.new(1, 0, 1, 0)
  511. bbg.StudsOffset = Vector3.new(0, 2, 0)
  512. bbg.StudsOffset = bbg.StudsOffset + Vector3.new(math.random(-math.random(50) / 10, math.random(50) / 10), 0, math.random(-math.random(50) / 10, math.random(50) / 10))
  513. bbg.Adornee = ch.Head
  514. bbg.AlwaysOnTop = true
  515. local tlabl = int("TextLabel", bbg)
  516. tlabl.Size = UDim2.new(1, 0, 1, 0)
  517. tlabl.Text = tostring(plife)
  518. tlabl.BackgroundTransparency = 1
  519. tlabl.TextColor3 = BrickColor.new("Bright green").Color
  520. tlabl.TextStrokeColor3 = BrickColor.new("White").Color
  521. tlabl.TextStrokeTransparency = 0
  522. tlabl.Font = "Antique"
  523. tlabl.FontSize = "Size60"
  524. table.insert(textTable, bbg)
  525. end
  526. end
  527. chain = chain + 1
  528. if hm.MaxHealth >= 99999 then
  529. hm.Parent:BreakJoints()
  530. end
  531. local bbg = int("BillboardGui", tube)
  532. bbg.Size = UDim2.new(1, 0, 1, 0)
  533. bbg.StudsOffset = Vector3.new(0, 2, 0)
  534. bbg.StudsOffset = bbg.StudsOffset + Vector3.new(math.random(-math.random(50) / 10, math.random(50) / 10), 0, math.random(-math.random(50) / 10, math.random(50) / 10))
  535. bbg.Adornee = man.Head
  536. bbg.AlwaysOnTop = true
  537. local tlabl = int("TextLabel", bbg)
  538. tlabl.Size = UDim2.new(1, 0, 1, 0)
  539. tlabl.Text = tostring(dm)
  540. tlabl.BackgroundTransparency = 1
  541. tlabl.TextColor3 = BrickColor.new("White").Color
  542. tlabl.TextStrokeColor3 = BrickColor.new("White").Color
  543. if cr == true then
  544. tlabl.TextColor3 = BrickColor.new("Really red").Color
  545. tlabl.TextStrokeColor3 = BrickColor.new("White").Color
  546. end
  547. tlabl.TextStrokeTransparency = 0
  548. tlabl.Font = "Antique"
  549. tlabl.FontSize = "Size60"
  550. table.insert(textTable, bbg)
  551. return dm
  552. end
  553. end
  554. local tp = cp(tube, "White", Vector3.new(1, 1, 1))
  555. tp.Transparency = 1
  556. weld(ch["Right Arm"], tp, cfn(0, -1, 0))
  557. function addFx(item, int, final, func)
  558. table.insert(fx, {
  559. item = item,
  560. int = int,
  561. func = func,
  562. final = final,
  563. stepval = 0
  564. })
  565. end
  566.  
  567.  
  568. function addMove(name, key, cooldown, func, manacost)
  569. moves[name] = {
  570. key = key,
  571. cooldown = cooldown,
  572. func = func,
  573. manacost = manacost
  574. }
  575. end
  576. function drawLine(point_a, point_b, bc_code, angle)
  577. local dist = (point_a - point_b).magnitude
  578. if dist > 1 then
  579. local rad = dist / 2
  580. local line = Instance.new("Part", tube)
  581. line.Anchored = true
  582. line.FormFactor = "Custom"
  583. line.BrickColor = BrickColor.new(bc_code)
  584. line.TopSurface = "SmoothNoOutlines"
  585. line.BottomSurface = "SmoothNoOutlines"
  586. line.LeftSurface = "SmoothNoOutlines"
  587. line.RightSurface = "SmoothNoOutlines"
  588. line.FrontSurface = "SmoothNoOutlines"
  589. line.BackSurface = "SmoothNoOutlines"
  590. line.Material = "Neon"
  591. line.CanCollide = false
  592. line.Size = Vector3.new(0.7, 0.7, dist)
  593. Instance.new("BlockMesh", line).Name = "blok"
  594. line.CFrame = CFrame.new(point_a, point_b) * CFrame.new(0, 0, -rad)
  595. return line
  596. end
  597. end
  598. function depleteMana(amount)
  599. if mana > 0 then
  600. if mana - amount > 0 then
  601. mana = mana - amount
  602. return true
  603. else
  604. return false
  605. end
  606. end
  607. end
  608. function executeMove(name)
  609. if canExecuteMoves == true and ch and hum and hum.Health > 0 then
  610. local can = true
  611. for _, v in pairs(cooldowns) do
  612. if v.move == name then
  613. can = false
  614. break
  615. end
  616. end
  617. if can == true then
  618. local can2 = true
  619. if moves[name].manacost then
  620. local a = depleteMana(moves[name].manacost)
  621. if not a then
  622. can2 = false
  623. end
  624. end
  625. if can2 then
  626. moves[name].func()
  627. end
  628. end
  629. end
  630. end
  631. function addToCList(what, key)
  632. local a = {
  633. what,
  634. key = key,
  635. up = false
  636. }
  637. table.insert(connectlist, a)
  638. return a
  639. end
  640. function waitForUp(what)
  641. repeat
  642. wait()
  643. until what.up == true
  644. end
  645. function addMover(what, step, func)
  646. table.insert(movers, {
  647. mover = what,
  648. step = step,
  649. lastpoint = what.CFrame,
  650. func = func
  651. })
  652. end
  653. local CreateRegion3FromLocAndSize = function(Position, Size)
  654. local SizeOffset = Size / 2
  655. local Point1 = Position - SizeOffset
  656. local Point2 = Position + SizeOffset
  657. return Region3.new(Point1, Point2)
  658. end
  659. local righthandle = cp(tube, "White", Vector3.new(1, 1, 1))
  660. weld(ch["Right Arm"], righthandle, cfn(0, -1, 0))
  661. righthandle.Transparency = 1
  662. local lefthandle = cp(tube, "White", Vector3.new(1, 1, 1))
  663. weld(ch["Left Arm"], lefthandle, cfn(0, -1, 0))
  664. lefthandle.Transparency = 1
  665. function addCoolDown(move)
  666. local a = {
  667. timeleft = moves[move].cooldown,
  668. move = move
  669. }
  670. table.insert(cooldowns, a)
  671. end
  672. addMove("taunt", "h", 3, function()
  673. deb = false
  674. idle = true
  675. game:GetService("Chat"):Chat(head, math.random(1000), 2)
  676. local RandomTaunt = math.random(1, 6)
  677. for i = 0, 1, 0.1 do
  678. end
  679. if RandomTaunt == 1 then
  680. game:GetService("Chat"):Chat(head, "Trinitatis novum", 2)
  681. elseif RandomTaunt == 2 then
  682. game:GetService("Chat"):Chat(head, "limbo.?", 2)
  683. elseif RandomTaunt == 3 then
  684. game:GetService("Chat"):Chat(head, "only gamble.", 2)
  685. elseif RandomTaunt == 4 then
  686. game:GetService("Chat"):Chat(head, "go away.", 2)
  687. elseif RandomTaunt == 5 then
  688. game:GetService("Chat"):Chat(head, "you're bad.", 2)
  689. elseif RandomTaunt == 6 then
  690. game:GetService("Chat"):Chat(head, "ultimus trinity", 2)
  691. end
  692. local a = addToCList("taunt", "h")
  693. waitForUp(a)
  694. addCoolDown("taunt")
  695. deb = false
  696. idle = true
  697. reset()
  698. animPlaying = false
  699. end, -50)
  700. addMove("terra", "j", 100, function()
  701. game:GetService("Chat"):Chat(head, "Terra Nova", 3)
  702. deb = false
  703. idle = true
  704. local pcaf = tor.CFrame
  705. terranovaspawn:Play()
  706. local terra = Instance.new("Model", workspace)
  707. terra.Name = "terra"
  708. local terranova = cp(terra, "Grime", Vector3.new(33.3,2,33.3), true, true)
  709. terranova.CFrame = pcaf * CFrame.new(0, 100, 0)
  710. terranova.Material = "Grass"
  711. terranova.CanCollide = true
  712. terranova.Name = "trinityterra"
  713. local terranovaglow = cp(workspace, "Grime", Vector3.new(33.4,2.1,33.4), true, true)
  714. terranovaglow.CFrame = terranova.CFrame
  715. terranovaglow.Material = "Neon"
  716. terranovaglow.CanCollide = false
  717. terranovaglow.Transparency = 0.7
  718. local terranovan = cp(terra, "Really black", Vector3.new(32,16,32), true, true)
  719. terranovan.CFrame = terranova.CFrame * CFrame.new(0, -8, 0)
  720. terranovan.Material = "Neon"
  721. terranovan.CanCollide = false
  722. local terralaser = cp(terra, "Cool yellow", Vector3.new(3,2048,3), true, true)
  723. terralaser.CFrame = terranova.CFrame * CFrame.new(0, -20, 0)
  724. terralaser.Material = "Neon"
  725. terralaser.CanCollide = false
  726. terralaser.Transparency = 0.333
  727. local terradrilllaser = Instance.new("CylinderMesh", terralaser)
  728. local terradrill = cp(terra, "Cool yellow", Vector3.new(15,2048,15), true, true)
  729. terradrill.CFrame = terranova.CFrame * CFrame.new(0, -20, 0)
  730. terradrill.Material = "Neon"
  731. terradrill.CanCollide = false
  732. terradrill.Transparency = 0.333
  733. local terradrillmesh = Instance.new("CylinderMesh", terradrill)
  734. local gravityfield = cp(terra, "Cool yellow", Vector3.new(25,25,25), true, true)
  735. gravityfield.CFrame = terranova.CFrame * CFrame.new(0, -5, 0)
  736. gravityfield.Material = "Neon"
  737. gravityfield.CanCollide = false
  738. gravityfield.Transparency = 0
  739. local gravitationalfieldmesh = Instance.new("SpecialMesh", gravityfield)
  740. local lowertrin = Instance.new("Part",terra)
  741. lowertrin.CFrame = terranova.CFrame * CFrame.new(0,-100,0)
  742. lowertrin.Size = Vector3.new(30,.2,30)
  743. lowertrin.Transparency = 1
  744. gravitationalfieldmesh.MeshType = "FileMesh"
  745. gravitationalfieldmesh.MeshId = "rbxassetid://3270017"
  746. gravitationalfieldmesh.TextureId = "rbxassetid://408737564"
  747. gravitationalfieldmesh.Scale = Vector3.new(333,333,150)
  748. gravityfield.Orientation = Vector3.new(90,0,0)
  749. local loterragui = Instance.new("SurfaceGui", lowertrin)
  750. loterragui.Face = "Top"
  751. local loterraguiframe = Instance.new("ImageLabel", loterragui)
  752. loterraguiframe.Size = UDim2.new(1, 0, 1, 0)
  753. loterraguiframe.BackgroundTransparency = 1
  754. loterraguiframe.BorderSizePixel = 0
  755. loterraguiframe.Image = "rbxassetid://1245317611"
  756. loterraguiframe.ImageTransparency = 0.1
  757.  
  758.  
  759. local bm = blo(terranova)
  760. bm.Scale = Vector3.new(0,1,0)
  761. bm.Scale = Vector3.new(0,0,0)
  762. addFx(terranova, 0.05, nil, function()
  763. bm.Scale = bm.Scale + Vector3.new(0.05, .05, 0.05)
  764. end)
  765. local bm = blo(terranovan)
  766. bm.Scale = Vector3.new(0,0,0)
  767. bm.Scale = Vector3.new(0,0,0)
  768. addFx(terranovan, 0.05, nil, function()
  769. bm.Scale = bm.Scale + Vector3.new(0.05, .05, 0.05)
  770. end)
  771. local terragui = Instance.new("SurfaceGui", terranova)
  772. terragui.Face = "Top"
  773. local terraguiframe = Instance.new("ImageLabel", terragui)
  774. terraguiframe.Size = UDim2.new(1, 0, 1, 0)
  775. terraguiframe.BackgroundTransparency = 1
  776. terraguiframe.BorderSizePixel = 0
  777. terraguiframe.Image = "rbxassetid://1245317611"
  778. terraguiframe.ImageTransparency = 1
  779. wait (.3)
  780. terraguiframe.ImageTransparency = 0.3
  781. terraguiframe.ImageColor3 = Color3.new(255, 25, 25)
  782. local underterra = terragui:Clone()
  783. underterra.Parent = terranovan
  784. underterra.Face = "Bottom"
  785. local a = addToCList("terra", "j")
  786.  
  787. rootpart.CFrame = terranova.CFrame * CFrame.new(0,5,0)
  788.  
  789. terradrillmesh.Scale = Vector3.new(1.1,1,1.1)
  790. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  791. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  792. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  793. wait(.5)
  794. terradrillmesh.Scale = Vector3.new(1.3,1,1.3)
  795. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  796. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  797. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  798. wait(.5)
  799. terradrillmesh.Scale = Vector3.new(0,0,0)
  800. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  801. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  802. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  803. wait(.5)
  804. terradrillmesh.Scale = Vector3.new(0,0,0)
  805. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  806. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  807. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  808. wait(.5)
  809. terradrillmesh.Scale = Vector3.new(0,0,0)
  810. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  811. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  812. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  813. wait(.5)
  814. terradrillmesh.Scale = Vector3.new(1.5,1,1,5)
  815. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  816. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  817. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  818. terradrillhowl:Play()
  819. wait(.5)
  820. terradrillmesh.Scale = Vector3.new(1.3,1,1.3)
  821. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  822. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  823. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  824. wait (.5)
  825. terradrillmesh.Scale = Vector3.new(1.1,1,1.1)
  826. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  827. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  828. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  829. wait(.5)
  830. terradrillmesh.Scale = Vector3.new(1.3,1,1.3)
  831. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  832. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  833. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  834. wait(.5)
  835. terradrillmesh.Scale = Vector3.new(0,0,0)
  836. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  837. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  838. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  839. wait(.5)
  840. terradrillmesh.Scale = Vector3.new(0,0,0)
  841. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  842. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  843. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  844. wait(.5)
  845. terradrillmesh.Scale = Vector3.new(0,0,0)
  846. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  847. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  848. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  849. wait(.5)
  850. terradrillmesh.Scale = Vector3.new(1.5,1,1,5)
  851. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  852. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  853. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  854. terradrillhowl:Play()
  855. wait(.5)
  856. terradrillmesh.Scale = Vector3.new(1.3,1,1.3)
  857. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  858. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  859. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  860. wait (.5)
  861. terradrillmesh.Scale = Vector3.new(1.1,1,1.1)
  862. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  863. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  864. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  865. wait(.5)
  866. terradrillmesh.Scale = Vector3.new(1.3,1,1.3)
  867. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  868. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  869. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0) -- yee
  870. wait(.5)
  871. terradrillmesh.Scale = Vector3.new(0,0,0)
  872. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  873. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  874. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  875. wait(.5)
  876. terradrillmesh.Scale = Vector3.new(0,0,0)
  877. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  878. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  879. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  880. wait(.5)
  881. terradrillmesh.Scale = Vector3.new(0,0,0)
  882. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  883. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  884. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  885. wait(.5)
  886. terradrillmesh.Scale = Vector3.new(1.5,1,1,5)
  887. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  888. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  889. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  890. terradrillhowl:Play()
  891. wait(.5)
  892. terradrillmesh.Scale = Vector3.new(1.3,1,1.3)
  893. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  894. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  895. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  896. wait (.5)
  897. terradrillmesh.Scale = Vector3.new(1.1,1,1.1)
  898. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  899. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  900. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  901. wait(.5)
  902. terradrillmesh.Scale = Vector3.new(1.3,1,1.3)
  903. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  904. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  905. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  906. wait(.5)
  907. terradrillmesh.Scale = Vector3.new(0,0,0)
  908. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  909. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  910. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  911. wait(.5)
  912. terradrillmesh.Scale = Vector3.new(0,0,0)
  913. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  914. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  915. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  916. wait(.5)
  917. terradrillmesh.Scale = Vector3.new(0,0,0)
  918. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  919. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  920. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  921. wait(.5)
  922. terradrillmesh.Scale = Vector3.new(1.5,1,1,5)
  923. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  924. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  925. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  926. terradrillhowl:Play()
  927. wait(.5)
  928. terradrillmesh.Scale = Vector3.new(1.3,1,1.3)
  929. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  930. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  931. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  932. wait (.5)
  933. terradrillmesh.Scale = Vector3.new(1.1,1,1.1)
  934. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  935. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  936. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  937. wait(.5)
  938. terradrillmesh.Scale = Vector3.new(1.3,1,1.3)
  939. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  940. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  941. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  942. wait(.5)
  943. terradrillmesh.Scale = Vector3.new(0,0,0)
  944. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  945. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  946. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  947. wait(.5)
  948. terradrillmesh.Scale = Vector3.new(0,0,0)
  949. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  950. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  951. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  952. wait(.5)
  953. terradrillmesh.Scale = Vector3.new(0,0,0)
  954. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  955. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  956. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  957. wait(.5)
  958. terradrillmesh.Scale = Vector3.new(0,0,0)
  959. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  960. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  961. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  962. wait(.5)
  963. terradrillmesh.Scale = Vector3.new(0,0,0)
  964. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  965. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  966. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  967. wait(.5)
  968. terradrillmesh.Scale = Vector3.new(0,0,0)
  969. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  970. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  971. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  972. wait(.5)
  973. terradrillmesh.Scale = Vector3.new(0,0,0)
  974. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  975. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  976. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  977. wait(.5)
  978. terradrillmesh.Scale = Vector3.new(0,0,0)
  979. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  980. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  981. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  982. wait(.5)
  983. terradrillmesh.Scale = Vector3.new(0,0,0)
  984. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  985. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  986. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  987. wait(.5)
  988. terradrillmesh.Scale = Vector3.new(0,0,0)
  989. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  990. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  991. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  992. wait(.5)
  993. terradrillmesh.Scale = Vector3.new(0,0,0)
  994. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  995. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  996. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  997. wait(.5)
  998. terradrillmesh.Scale = Vector3.new(0,0,0)
  999. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1000. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1001. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1002. wait(.5)
  1003. terradrillmesh.Scale = Vector3.new(0,0,0)
  1004. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1005. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1006. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1007. wait(.5)
  1008. terradrillmesh.Scale = Vector3.new(0,0,0)
  1009. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1010. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1011. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1012. wait(.5)
  1013. terradrillmesh.Scale = Vector3.new(0,0,0)
  1014. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1015. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1016. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1017. wait(.5)
  1018. terradrillmesh.Scale = Vector3.new(0,0,0)
  1019. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1020. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1021. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1022. wait(.5)
  1023. terradrillmesh.Scale = Vector3.new(0,0,0)
  1024. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1025. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1026. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1027. wait(.5)
  1028. terradrillmesh.Scale = Vector3.new(0,0,0)
  1029. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1030. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1031. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1032. wait(.5)
  1033. terradrillmesh.Scale = Vector3.new(0,0,0)
  1034. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1035. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1036. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1037. wait(.5)
  1038. terradrillmesh.Scale = Vector3.new(0,0,0)
  1039. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1040. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1041. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1042. wait(.5)
  1043. terradrillmesh.Scale = Vector3.new(0,0,0)
  1044. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1045. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1046. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1047. wait(.5)
  1048. terradrillmesh.Scale = Vector3.new(0,0,0)
  1049. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1050. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1051. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1052. wait(.5)
  1053. terradrillmesh.Scale = Vector3.new(0,0,0)
  1054. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1055. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1056. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1057. wait(.5)
  1058. terradrillmesh.Scale = Vector3.new(0,0,0)
  1059. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1060. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1061. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1062. wait(.5)
  1063. terradrillmesh.Scale = Vector3.new(0,0,0)
  1064. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1065. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1066. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1067. wait(.5)
  1068. terradrillmesh.Scale = Vector3.new(0,0,0)
  1069. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1070. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1071. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1072. wait(.5)
  1073. terradrillmesh.Scale = Vector3.new(0,0,0)
  1074. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1075. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1076. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1077. wait(.5)
  1078. terradrillmesh.Scale = Vector3.new(0,0,0)
  1079. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1080. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1081. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1082. wait(.5)
  1083. terradrillmesh.Scale = Vector3.new(0,0,0)
  1084. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1085. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1086. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1087. wait(.5)
  1088. terradrillmesh.Scale = Vector3.new(0,0,0)
  1089. terranova.CFrame = terranova.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1090. terranovan.CFrame = terranovan.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1091. terranovaglow.CFrame = terranovaglow.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0)
  1092. wait ()
  1093. terranova:Destroy()
  1094. terranovan:Destroy()
  1095. terradrill:Destroy()
  1096. terralaser:Destroy()
  1097. terranovaglow:Destroy()
  1098. gravityfield:Destroy()
  1099. waitForUp(a)
  1100. addCoolDown("terra")
  1101. deb = false
  1102. idle = true
  1103. reset()
  1104. animPlaying = false
  1105.  
  1106. end, 150)
  1107. addMove("block_normal", "f", 0.5, function()
  1108. game:GetService("Chat"):Chat(head, "Trinitatis protector", 2)
  1109. deb = true
  1110. idle = false
  1111. local ws = hum.WalkSpeed
  1112. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1113. hum.WalkSpeed = 0
  1114. tweenTable = {}
  1115. animPlaying = true
  1116. local pcf = tor.CFrame
  1117. Tween(rj, cfn() * ang(0, mr(-45), 0), 0.2)
  1118. Tween(rw, cfn() * ang(mr(-86), mr(-15), 0), 0.2)
  1119. Tween(lw, cfn() * ang(0, mr(5), mr(20)), 0.2)
  1120. blocksound:Play()
  1121. local block = cp(workspace, "Cool yellow", Vector3.new(33,33,33), true, true)
  1122. block.CFrame = pcf * CFrame.new(0, 0, 0)
  1123. block.Material = "Neon"
  1124. block.CanCollide = false
  1125. block.Transparency = .333
  1126. local bm = blo(block)
  1127. bm.Scale = Vector3.new(0, 0, 0.9)
  1128. addFx(block, 0.05, nil, function()
  1129. bm.Scale = bm.Scale + Vector3.new(0.05, 0.05, 0.05)
  1130. end)
  1131. local a = addToCList("block_connect", "f")
  1132. waitForUp(a)
  1133. addCoolDown("block_normal")
  1134. hum.WalkSpeed = ws
  1135. deb = false
  1136. addFx(block, 0.05, "destroy", function()
  1137. block.Transparency = block.Transparency + 0.05
  1138. block.bmsh.Scale = block.bmsh.Scale + Vector3.new(-0.07, -0.07, -0.07)
  1139. end)
  1140. idle = true
  1141. reset()
  1142. animPlaying = false
  1143. end, 15)
  1144. addMove("curse", "g", 10, function()
  1145. game:GetService("Chat"):Chat(head, "Trinima, morbus tuus", 2)
  1146. deb = true
  1147. idle = false
  1148. animPlaying = true
  1149. canRunLeg = true
  1150. tweenTable = {}
  1151. altTweenTable = {}
  1152. Tween(rj, cfn() * ang(0, mr(-90), 0), 0.2)
  1153. Tween(rw, cfn() * ang(0, 0, mr(-90)), 0.2)
  1154. Tween(lw, cfn() * ang(0, mr(5), mr(20)), 0.2)
  1155. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1156. wait(0.15)
  1157. curse:Play()
  1158. addCoolDown("curse")
  1159. local bullet = cp(tube, "White", Vector3.new(1, 1, 1))
  1160. bullet.Material = "Neon"
  1161. bullet.CFrame = CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X, m.Hit.p.Y, m.Hit.p.Z))
  1162. bullet.Transparency = 1
  1163. local bulletfx = bullet:clone()
  1164. bulletfx.Transparency = 1
  1165. bulletfx.Parent = bullet
  1166. bulletfx.Anchored = true
  1167. sphere(bulletfx)
  1168. local angle = 0
  1169. local lastpoint = bullet.CFrame
  1170. addMover(bullet, 0.8, function()
  1171. angle = angle + 1
  1172. local angles = CFrame.Angles(0, 0, mr(angle))
  1173. bulletfx.CFrame = bullet.CFrame
  1174. local fxp = cp(tube, "Cool yellow", Vector3.new(1, 1, 1), true)
  1175. fxp.CFrame = bulletfx.CFrame
  1176. local bmesh = int("SpecialMesh", fxp)
  1177. bmesh.MeshType = "FileMesh"
  1178. bmesh.MeshId = rbx .. lib.ring
  1179. bmesh.Scale = Vector3.new(2, 2, 2)
  1180. addFx(fxp, 0.07, "destroy", function()
  1181. bulletfx.CFrame = bullet.CFrame
  1182. bmesh.Scale = bmesh.Scale - Vector3.new(0.1, 0.1, 0)
  1183. fxp.Transparency = fxp.Transparency + 0.07
  1184. end)
  1185. end)
  1186. bullet.Touched:connect(function(p)
  1187. if not p:isDescendantOf(ch) then
  1188. do
  1189. local thing
  1190. local region = CreateRegion3FromLocAndSize(bullet.Position, bullet.Size * 2)
  1191. for _, v in pairs(workspace:findPartsInRegion3WithIgnoreList(region, {ch}, 50)) do
  1192. if v.Parent and v.Parent:findFirstChild("Humanoid") then
  1193. thing = v
  1194. break
  1195. end
  1196. end
  1197. local mgp = cp(tube, "White", Vector3.new(1, 1, 1), true)
  1198. mgp.Transparency = 1
  1199. mgp.CFrame = bullet.CFrame
  1200. game.Debris:AddItem(mgp, 3)
  1201. local tsound = glass:clone()
  1202. tsound.Volume = 2
  1203. tsound.Parent = mgp
  1204. tsound:Play()
  1205. local position = bullet.CFrame
  1206. if thing and thing.Parent then
  1207. dealDamage(thing.Parent, 10, 16)
  1208. do
  1209. local humin = thing.Parent.Humanoid
  1210. spawn(function()
  1211. for i = 1, 10 do
  1212. wait(1)
  1213. if thing.Parent then
  1214. dealDamage(thing.Parent, 0.05 * humin.MaxHealth, 10000, 10000, 10000)
  1215. end
  1216. end
  1217. end)
  1218. end
  1219. end
  1220. local blast = cp(tube, "Cool yellow", Vector3.new(2, 2, 2), true, false)
  1221. blast.Material = "Neon"
  1222. local spm2 = blo(blast)
  1223. spm2.Name = "mesh"
  1224. blast.CFrame = CFrame.new(position.X, position.Y, position.Z) * ang(mr(math.random(90)), mr(math.random(90)), mr(math.random(90)))
  1225. if p.Name == "Torso" or p.Parent and p.Parent:findFirstChild("Torso") then
  1226. blast.CFrame = p.Parent.Torso.CFrame * ang(mr(math.random(90)), mr(math.random(90)), mr(math.random(90)))
  1227. end
  1228. for i = 1, 5 do
  1229. do
  1230. local fx = blast:clone()
  1231. fx.Parent = tube
  1232. fx.CFrame = blast.CFrame * ang(mr(math.random(90)), mr(math.random(90)), mr(math.random(90)))
  1233. addFx(fx, 0.05, "destroy", function()
  1234. fx.mesh.Scale = fx.mesh.Scale + Vector3.new(0.1, 0.1, 0.1)
  1235. fx.Transparency = fx.Transparency + 0.05
  1236. end)
  1237. end
  1238. end
  1239. addFx(blast, 0.05, "destroy", function()
  1240. spm2.Scale = spm2.Scale + Vector3.new(0.1, 0.1, 0.1)
  1241. blast.Transparency = blast.Transparency + 0.05
  1242. end)
  1243. bullet:Destroy()
  1244. bulletfx:Destroy()
  1245. end
  1246. end
  1247. end)
  1248. game.Debris:AddItem(bullet, 3)
  1249. local bv = int("BodyVelocity", bullet)
  1250. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1251. bv.Velocity = bullet.CFrame.lookVector * 150
  1252. wait(0.5)
  1253. reset()
  1254. deb = false
  1255. canRunLeg = false
  1256. animPlaying = false
  1257. end, 60)
  1258. local bg = false
  1259. addMove("beam", "e", 5, function()
  1260. game:GetService("Chat"):Chat(head, "Trinima Laser Trinitatis", 2)
  1261. tweenTable = {}
  1262. animPlaying = true
  1263. idle = false
  1264. deb = true
  1265. local pcf = tor.CFrame
  1266. canRunLeg = true
  1267. startsound:Play()
  1268. chargesound.Looped = true
  1269. chargesound:Play()
  1270. Tween(rj, cfn() * ang(0, mr(-90), 0), 0.2)
  1271. Tween(rw, cfn() * ang(0, 0, mr(-90)), 0.2)
  1272. Tween(lw, cfn() * ang(0, mr(5), mr(20)), 0.2)
  1273. bg = true
  1274. local a = addToCList("beam_connect", "e")
  1275. local charge = cp(tube, "Fawn brown", Vector3.new(1, 1, 1))
  1276. charge.Material = "Neon"
  1277. local spm = int("SpecialMesh", charge)
  1278.  
  1279. spm.MeshType = "Sphere"
  1280. spm.Name = "sphere"
  1281. weld(ch["Right Arm"], charge, cfn(0, -2, 0))
  1282. local up = false
  1283. local multiplier = 1
  1284. local cn = chargesound.DidLoop:connect(function()
  1285. local fx = charge:clone()
  1286. fx.Parent = tube
  1287. fx.CFrame = charge.CFrame
  1288. weld(charge, fx, cfn())
  1289. addFx(fx, 0.07, "destroy", function()
  1290. if fx and fx:findFirstChild("sphere") then
  1291. fx.sphere.Scale = fx.sphere.Scale + Vector3.new(3, 3, 3)
  1292. fx.Transparency = fx.Transparency + 0.07
  1293. end
  1294. end)
  1295. end)
  1296. spawn(function()
  1297. repeat
  1298. wait()
  1299. if spm.Scale.X < 7 then
  1300. spm.Scale = spm.Scale + Vector3.new(0.05, 0.05, 0.05)
  1301. multiplier = multiplier + 0.1
  1302. end
  1303. until up == true
  1304. end)
  1305. waitForUp(a)
  1306. cn:Disconnect()
  1307. up = true
  1308. addCoolDown("beam")
  1309. chargesound:Stop()
  1310. endsound:Play()
  1311. local ringFx = cp(tube, "White", Vector3.new(2, 2, 2), true, false)
  1312. ringFx.CFrame = charge.CFrame * ang(mr(-90), 0, 0)
  1313. ringFx.Material = "Neon"
  1314. local spm = int("SpecialMesh", ringFx)
  1315. spm.MeshId = rbx .. lib.ring
  1316. spm.Scale = Vector3.new(2, 2, 2)
  1317. addFx(ringFx, 0.08, "destroy", function()
  1318. spm.Scale = spm.Scale + Vector3.new(0.2, 0.2, 0)
  1319. ringFx.Transparency = ringFx.Transparency + 0.08
  1320. end)
  1321. local beam = cp(tube, "Cool yellow", Vector3.new(5, 5, 5), true, false)
  1322. local ray = Ray.new(charge.CFrame.p, (mouse.Hit.p - charge.CFrame.p).unit * 300)
  1323. local part, position = workspace:FindPartOnRay(ray, ch, false, true)
  1324. local distance = (charge.CFrame.p - position).magnitude
  1325. beam.Size = Vector3.new(3, 3, distance)
  1326. beam.Material = "Neon"
  1327. beam.CFrame = CFrame.new(charge.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1328. local blast = cp(tube, "Cool yellow", Vector3.new(8, 8, 8), true, false)
  1329. blast.Material = "Neon"
  1330. blast.CFrame = CFrame.new(position.X, position.Y, position.Z)
  1331. local region = CreateRegion3FromLocAndSize(blast.Position, blast.Size * 2)
  1332. local people = {}
  1333. for _, v in pairs(workspace:findPartsInRegion3WithIgnoreList(region, {ch}, 100)) do
  1334. if v and v.Parent and v.className == "Part" and v.Parent:findFirstChild("Humanoid") then
  1335. local can = false
  1336. if not v.Parent:findFirstChild("HitDeb") then
  1337. can = true
  1338. end
  1339. if can == true then
  1340. local db = Instance.new("StringValue", v.Parent)
  1341. db.Name = "HitDeb"
  1342. game.Debris:AddItem(db, 0.5)
  1343. local humin = v.Parent.Humanoid
  1344. if humin then
  1345. local php = humin.Health
  1346. dealDamage(humin.Parent, 20 * multiplier, 10000)
  1347. humin.Sit = true
  1348. humin.PlatformStand = true
  1349. if php <= humin.Health and humin.MaxHealth ~= math.huge then
  1350. print("equal")
  1351. humin:TakeDamage(20 * multiplier)
  1352. end
  1353. end
  1354. end
  1355. end
  1356. end
  1357. local blastsound = getSound(262562443)
  1358. blastsound.Parent = blast
  1359. blastsound.Volume = 5
  1360. blastsound:Play()
  1361. blastsound:Stop()
  1362. blastsound:Play()
  1363. canRunLeg = false
  1364. runLeg = false
  1365. animPlaying = false
  1366. tweenTable = {}
  1367. local spm2 = int("SpecialMesh", blast)
  1368. spm2.MeshType = "Sphere"
  1369. addFx(blast, 0.008, "destroy", function()
  1370. spm2.Scale = spm2.Scale + Vector3.new(0.05, 0.05, 0.05)
  1371. blast.Transparency = blast.Transparency + 0.008
  1372. end)
  1373. addFx(beam, 0.1, "destroy", function()
  1374. beam.Transparency = beam.Transparency + 0.1
  1375. end)
  1376. addFx(charge, 0.1, "destroy", function()
  1377. charge.Transparency = charge.Transparency + 0.1
  1378. end)
  1379. bg = false
  1380. run = false
  1381. idle = true
  1382. reset()
  1383. deb = false
  1384. end, 60)
  1385.  
  1386. addMove("downslam", "q", 4, function()
  1387. game:GetService("Chat"):Chat(head, "Trinima Ululate aeria", 2) --Ululate aeria
  1388. currentkey = key
  1389. deb = true
  1390. animPlaying = true
  1391. altTweenTable = {}
  1392. tweenTable = {}
  1393. local rv = tor.CFrame.upVector
  1394. local bv = int("BodyVelocity", tor)
  1395. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1396. bv.Velocity = rv * -150
  1397. rushsound:Play()
  1398. Tween(rj, cfn() * ang(mr(180), 0, 0))
  1399. Tween(rw, cfn() * ang(mr(-180), 0, 0))
  1400. Tween(lw, cfn() * ang(mr(-180), 0, 0))
  1401. addCoolDown("downslam", 4)
  1402. spawn(function()
  1403. while true do
  1404. wait()
  1405. do
  1406. local cfx = cp(tube, "Cool yellow", Vector3.new(6, 6, 6), true, false)
  1407. cfx.CFrame = tor.CFrame * CFrame.Angles(math.rad(math.random(90)), math.rad(math.random(90)), 0)
  1408. local b = blo(cfx)
  1409. addFx(cfx, 0.05, "destroy", function()
  1410. cfx.Transparency = cfx.Transparency + 0.05
  1411. b.Scale = b.Scale + Vector3.new(0.1, 0.1, 0.1)
  1412. end)
  1413. if Vector3.new(0, tor.Velocity.Y, 0).magnitude < 2 then
  1414. break
  1415. end
  1416. end
  1417. end
  1418. end)
  1419. wait()
  1420. bv:Destroy()
  1421. multiplier = 1
  1422. repeat
  1423. wait()
  1424. until Vector3.new(0, tor.Velocity.Y, 0).magnitude < 2
  1425. local bhit, pos = FindGround(cn(tor.CFrame.p), ch)
  1426. local blast = cp(tube, "White", Vector3.new(10, 10, 10), true, false)
  1427. blast.CFrame = pos
  1428. local region = CreateRegion3FromLocAndSize(blast.Position, blast.Size * 3)
  1429. local people = {}
  1430. for _, v in pairs(workspace:findPartsInRegion3WithIgnoreList(region, {ch}, 100)) do
  1431. if v and v.Parent and v.className == "Part" and v.Parent:findFirstChild("Humanoid") then
  1432. local can = false
  1433. if not v.Parent:findFirstChild("HitDeb") then
  1434. can = true
  1435. end
  1436. if can == true then
  1437. local db = Instance.new("StringValue", v.Parent)
  1438. db.Name = "HitDeb"
  1439. game.Debris:AddItem(db, 0.5)
  1440. local humin = v.Parent.Humanoid
  1441. if humin then
  1442. local php = humin.Health
  1443. dealDamage(humin.Parent, 20 * multiplier, 10000)
  1444. humin.Sit = true
  1445. humin.PlatformStand = true
  1446. if php <= humin.Health and humin.MaxHealth ~= math.huge then
  1447. print("equal")
  1448. humin:TakeDamage(20 * multiplier)
  1449. end
  1450. end
  1451. end
  1452. end
  1453. end
  1454. local sp = sphere(blast)
  1455. blast.Material = "Neon"
  1456. landsound:Play()
  1457. addFx(blast, 0.02, "destroy", function()
  1458. sp.Scale = sp.Scale + Vector3.new(0.1, 0.1, 0.1)
  1459. blast.Transparency = blast.Transparency + 0.02
  1460. end)
  1461. animPlaying = false
  1462. deb = false
  1463. end, 40)
  1464. addMove("aerialsword", "r", 15, function()
  1465. game:GetService("Chat"):Chat(head, "Trinima Ultima tormentum",2)
  1466. deb = true
  1467. animPlaying = true
  1468. tweenTable = {}
  1469. altTweenTable = {}
  1470. canExecuteMoves = false
  1471. idle = false
  1472. run = false
  1473. aerialcharge:Play()
  1474. Tween(rw, cfn() * ang(mr(-90), 0, 0))
  1475. local bp, bgg
  1476. local a = addToCList("aerialsword", "r")
  1477. local still = true
  1478. bp = int("BodyPosition", tor)
  1479. bp.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1480. bp.Position = tor.Position
  1481. local sphr = cp(tube, "Cool yellow", Vector3.new(8, 8, 8), true)
  1482. sphr.Transparency = 1
  1483. sphr.Material = "Neon"
  1484. local spho = sphere(sphr)
  1485. spho.Name = "spho"
  1486. spho.Scale = Vector3.new(0, 0, 0)
  1487. sphr.CFrame = tor.CFrame
  1488. addFx(sphr, 0.07, nil, function()
  1489. spho.Scale = spho.Scale + Vector3.new(0.1, 0.1, 0.1)
  1490. sphr.Transparency = sphr.Transparency - 0.07
  1491. end)
  1492. Delay(6, function()
  1493. if not a.up then
  1494. a.up = true
  1495. end
  1496. end)
  1497. repeat
  1498. wait(0.3)
  1499. local b = depleteMana(35)
  1500. if b then
  1501. swsound:Play()
  1502. do
  1503. local fx = sphr:clone()
  1504. fx.Parent = tube
  1505. fx.CFrame = sphr.CFrame
  1506. addFx(fx, 0.07, "destroy", function()
  1507. fx.spho.Scale = fx.spho.Scale + Vector3.new(0.1, 0.1, 0.1)
  1508. fx.Transparency = fx.Transparency + 0.07
  1509. end)
  1510. local sw = int("Part")
  1511. game.Debris:AddItem(sw, 6)
  1512. sw.CanCollide = false
  1513. sw.Anchored = false
  1514. sw.BrickColor = BrickColor.new("Cool yellow")
  1515. sw.Material = "Neon"
  1516. sw.Size = Vector3.new(1, 1, 2)
  1517. sw.CFrame = CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X, m.Hit.p.Y, m.Hit.p.Z))
  1518. sw.Parent = tube
  1519. sw.Transparency = 1
  1520. addFx(sw, 0.1, nil, function()
  1521. sw.Transparency = sw.Transparency - 0.1
  1522. end)
  1523. local spm = int("SpecialMesh", sw)
  1524. spm.MeshType = "FileMesh"
  1525. spm.MeshId = rbx .. lib.yato
  1526. spm.Scale = Vector3.new(0.05, 0.05, 0.05)
  1527. local vel = int("BodyVelocity", sw)
  1528. vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1529. vel.Velocity = sw.CFrame.lookVector * 152
  1530. sw.CFrame = sw.CFrame * ang(0, mr(180), 0)
  1531. sw.Touched:connect(function(p)
  1532. if p:IsDescendantOf(ch) == false then
  1533. sw.Anchored = true
  1534. do
  1535. local mgp = cp(tube, "White", Vector3.new(1, 1, 1), true, false)
  1536. mgp.CFrame = sw.CFrame
  1537. mgp.Transparency = 1
  1538. game.Debris:AddItem(mgp, 2)
  1539. ssp = swexp:clone()
  1540. ssp.Parent = mgp
  1541. ssp.Volume = 2
  1542. ssp:Play()
  1543. local blast = cp(tube, "Cool yellow", Vector3.new(8, 8, 8), true)
  1544. blast.CFrame = sw.CFrame
  1545. local sp = sphere(blast)
  1546. addFx(sw, 0.05, "destroy", function()
  1547. sw.Transparency = sw.Transparency + 0.05
  1548. spm.Scale = spm.Scale + Vector3.new(0.01, 0.01, 0.01)
  1549. end)
  1550. addFx(blast, 0.07, "destroy", function()
  1551. blast.Transparency = blast.Transparency + 0.07
  1552. sp.Scale = sp.Scale + Vector3.new(0.1, 0.1, 0.1)
  1553. end)
  1554. local region = CreateRegion3FromLocAndSize(blast.Position, blast.Size * 2)
  1555. local people = {}
  1556. for _, v in pairs(workspace:findPartsInRegion3WithIgnoreList(region, {ch}, 100)) do
  1557. if v and v.Parent and v.className == "Part" and v.Parent:findFirstChild("Humanoid") then
  1558. local can = false
  1559. if not v.Parent:findFirstChild("HitDeb") then
  1560. can = true
  1561. end
  1562. if can == true then
  1563. local db = Instance.new("StringValue", v.Parent)
  1564. db.Name = "HitDeb"
  1565. game.Debris:AddItem(db, 0.2)
  1566. local humin = v.Parent.Humanoid
  1567. if humin then
  1568. local php = humin.Health
  1569. dealDamage(humin.Parent, 20 + math.random(50000), 50000)
  1570. humin.Sit = true
  1571. if php <= humin.Health and humin.MaxHealth ~= math.huge then
  1572. print("equal")
  1573. humin:TakeDamage(20000)
  1574. end
  1575. end
  1576. end
  1577. end
  1578. end
  1579. end
  1580. end
  1581. end)
  1582. end
  1583. else
  1584. a.up = true
  1585. end
  1586. until a.up == true
  1587. addFx(sphr, 0.07, "destroy", function()
  1588. sphr.Transparency = sphr.Transparency + 0.07
  1589. spho.Scale = spho.Scale + Vector3.new(0.1, 0.1, 0.1)
  1590. end)
  1591. still = false
  1592. spawn(function()
  1593. wait(0.3)
  1594. canExecuteMoves = true
  1595. end)
  1596. bp:Destroy()
  1597. tor.Anchored = false
  1598. deb = false
  1599. animPlaying = false
  1600. reset()
  1601. end, 200)
  1602. addMove("basic", "mb1", 0.1, function()
  1603. tweenTable = {}
  1604. animPlaying = true
  1605. deb = true
  1606. canRunLeg = true
  1607. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1608. bg = true
  1609. idle = false
  1610. basicsound:Play()
  1611. if basicswitch == false then
  1612. Tween(rw, cfn() * ang(mr(-100), mr(45), 0), 0.2)
  1613. Tween(rj, cfn() * ang(0, mr(-45), 0), 0.2)
  1614. else
  1615. Tween(lw, cfn() * ang(mr(-100), mr(-45), 0), 0.2)
  1616. Tween(rj, cfn() * ang(0, mr(45), 0), 0.2)
  1617. end
  1618. wait(0.06)
  1619. local bullet = cp(tube, "Cool yellow", Vector3.new(1, 1, 1), false, false)
  1620. bullet.Transparency = 1
  1621. if basicswitch == false then
  1622. bullet.CFrame = righthandle.CFrame
  1623. bullet.CFrame = CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X, m.Hit.p.Y, m.Hit.p.Z))
  1624. basicswitch = true
  1625. else
  1626. bullet.CFrame = lefthandle.CFrame
  1627. bullet.CFrame = CFrame.new(lefthandle.CFrame.p, Vector3.new(m.Hit.p.X, m.Hit.p.Y, m.Hit.p.Z))
  1628. basicswitch = false
  1629. end
  1630. local bv = int("BodyVelocity", bullet)
  1631. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1632. bv.Velocity = bullet.CFrame.lookVector * 150
  1633. local bulletfx = cp(tube, "Cool yellow", Vector3.new(1, 1, 1), true, false)
  1634. bulletfx.CFrame = bullet.CFrame
  1635. bulletfx.Material = "Neon"
  1636. sphere(bulletfx)
  1637. local angle = 0
  1638. local lastpoint = bulletfx.CFrame
  1639. addCoolDown("basic")
  1640. addMover(bullet, 0.8, function()
  1641. angle = angle + 1
  1642. local angles = CFrame.Angles(math.rad(angle), mr(angle), 0)
  1643. bulletfx.CFrame = bullet.CFrame
  1644. bulletfx.CFrame = bulletfx.CFrame * angles
  1645. if 1 < (lastpoint.p - bulletfx.CFrame.p).magnitude then
  1646. do
  1647. local line = drawLine(lastpoint.p, bulletfx.CFrame.p, "Cool yellow", angles)
  1648. addFx(line, 0.05, "destroy", function()
  1649. line.blok.Scale = line.blok.Scale + Vector3.new(0.05, 0.05, 0)
  1650. line.Transparency = line.Transparency + 0.05
  1651. end)
  1652. lastpoint = bulletfx.CFrame
  1653. end
  1654. end
  1655. end)
  1656. bullet.Touched:connect(function(p)
  1657. if not p:isDescendantOf(ch) then
  1658. do
  1659. local thing
  1660. local region = CreateRegion3FromLocAndSize(bullet.Position, bullet.Size * 2)
  1661. for _, v in pairs(workspace:findPartsInRegion3WithIgnoreList(region, {ch}, 50)) do
  1662. if v.Parent and v.Parent:findFirstChild("Humanoid") then
  1663. thing = v
  1664. break
  1665. end
  1666. end
  1667. local explosound = getSound(142070128)
  1668. explosound.Volume = 0.8
  1669. explosound.Pitch = 1.2
  1670. explosound.Parent = p
  1671. explosound:Play()
  1672. local position = bullet.CFrame
  1673. if thing and thing.Parent then
  1674. dealDamage(thing.Parent, 10, 20)
  1675. end
  1676. local blast = cp(tube, "Cool yellow", Vector3.new(2, 2, 2), true, false)
  1677. blast.Material = "Neon"
  1678. local spm2 = sphere(blast)
  1679. blast.CFrame = CFrame.new(position.X, position.Y, position.Z)
  1680. addFx(blast, 0.05, "destroy", function()
  1681. spm2.Scale = spm2.Scale + Vector3.new(0.1, 0.1, 0.1)
  1682. blast.Transparency = blast.Transparency + 0.05
  1683. end)
  1684. bullet:Destroy()
  1685. bulletfx:Destroy()
  1686. end
  1687. end
  1688. end)
  1689. game.Debris:AddItem(bullet, 2.5)
  1690. game.Debris:AddItem(bulletfx, 2.5)
  1691. wait(0.1)
  1692. idle = true
  1693. reset()
  1694. deb = false
  1695. animPlaying = false
  1696. bg = false
  1697. end, 20)
  1698. local dumbbox, dhand
  1699. local darknum = 1
  1700. addMove("darkslash", "r", 2, function()
  1701. game:GetService("Chat"):Chat(head, "DE DIVINA TRINITATE ICTUS", 2)
  1702. local oldspeed = hum.WalkSpeed
  1703. hum.WalkSpeed = 0
  1704. local meshd = "http://www.roblox.com/asset/?id=12171188"
  1705. tweenTable = {}
  1706. altTweenTable = {}
  1707. deb = true
  1708. animPlaying = true
  1709. canRunLeg = true
  1710. startsound2:Play()
  1711. local sp = cp(tube, "Cool yellow", Vector3.new(10, 10, 10), false, false)
  1712. sp.Material = "Neon"
  1713. sp.CFrame = tor.CFrame
  1714. sp.Transparency = 0.5
  1715. local sph = sphere(sp)
  1716. addFx(sp, 0.07, "destroy", function()
  1717. sph.Scale = sph.Scale - Vector3.new(0.05, 0.05, 0.05)
  1718. sp.Transparency = sp.Transparency + 0.035
  1719. end)
  1720. spawn(function()
  1721. for i = 1, 10 do
  1722. wait()
  1723. do
  1724. local cool1 = cp(tube, "Institutional white", Vector3.new(1.5, 1.5, 1.5), true)
  1725. cool1.Material = "Neon"
  1726. local ms1 = blo(cool1)
  1727. cool1.CFrame = righthandle.CFrame * ang(mr(math.random(90)), mr(math.random(90)), mr(math.random(90)))
  1728. addFx(cool1, 0.07, "destroy", function()
  1729. ms1.Scale = ms1.Scale + Vector3.new(0.08, 0.08, 0.08)
  1730. cool1.Transparency = cool1.Transparency + 0.07
  1731. end)
  1732. end
  1733. end
  1734. end)
  1735. addCoolDown("darkslash")
  1736. local allahsword = cp(tube, "White", Vector3.new(1, 1, 1))
  1737. local critmultiplier = 2.4
  1738. local spm = int("SpecialMesh", allahsword)
  1739. spm.MeshType = "FileMesh"
  1740. spm.MeshId = meshd
  1741. allahsword.Transparency = 1
  1742. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1743. local tv = Vector3.new(tor.CFrame.lookVector.X, 0, tor.CFrame.lookVector.Z)
  1744. local col = BrickColor.new("Cool yellow").Color
  1745. spm.TextureId = rbx .. "132155326"
  1746. spm.Name = "mesh"
  1747. spm.VertexColor = Vector3.new(0, 0, 0)
  1748. spm.Scale = Vector3.new(1, 1, 1)
  1749. addFx(allahsword, 0.05, nil, function()
  1750. allahsword.Transparency = allahsword.Transparency - 0.05
  1751. end)
  1752. weld(ch["Right Arm"], allahsword, cfn(0, -4, -0.5) * ang(mr(110), 0, mr(180)))
  1753. Tween(rj, cfn() * ang(0, mr(-90), 0))
  1754. Tween(rw, cfn(0.5, 0.5, 0.5) * ang(mr(-55), mr(-35), 0))
  1755. Tween(lw, cfn(-0.5, 0.5, 0.5) * ang(mr(-55), mr(35), 0))
  1756. Delay(0.08, function()
  1757. local tstvel = int("BodyVelocity", tor)
  1758. tstvel.MaxForce = Vector3.new(math.huge, 0, math.huge)
  1759. tstvel.Velocity = tv * 35
  1760. game.Debris:AddItem(tstvel, 0.24)
  1761. end)
  1762. wait(0.22)
  1763. local hitbox = cp(tube, "White", Vector3.new(2, 12, 2))
  1764. hitbox.Transparency = 1
  1765. hitbox.CFrame = allahsword.CFrame
  1766. dumbbox = hitbox
  1767. dumbhand = allahsword
  1768. swoosh:Play()
  1769. spawn(function()
  1770. for i = 1, 10 do
  1771. wait()
  1772. do
  1773. local trl = allahsword:clone()
  1774. trl.Parent = tube
  1775. trl.CFrame = allahsword.CFrame
  1776. addFx(trl, 0.07, "destroy", function()
  1777. trl.Transparency = trl.Transparency + 0.07
  1778. end)
  1779. end
  1780. end
  1781. end)
  1782. addFx(allahsword, 0.05, "destroy", function()
  1783. allahsword.Transparency = allahsword.Transparency + 0.05
  1784. spm.Scale = spm.Scale + Vector3.new(0.1, 0.1, 0.1)
  1785. end)
  1786. hitbox.Touched:connect(function(v)
  1787. if v and v.Parent and v.Parent:findFirstChild("Humanoid") and not v:IsDescendantOf(ch) then
  1788. local can = false
  1789. if not v.Parent:findFirstChild("HitDeb") then
  1790. can = true
  1791. end
  1792. if can == true then
  1793. local sls = getSound(131166206)
  1794. sls.Pitch = 1 + math.random(3) / 10
  1795. sls.Parent = v
  1796. sls:Play()
  1797. local db = Instance.new("StringValue", v.Parent)
  1798. db.Name = "HitDeb"
  1799. game.Debris:AddItem(db, 0.5)
  1800. dealDamage(v.Parent, 1 + math.random(40), 60, critmultiplier)
  1801. end
  1802. end
  1803. end)
  1804. Tween(rj, cfn(0, 0, 0) * ang(mr(0), mr(90), 0))
  1805. Tween(rw, cfn(0.5, 0.8, 0) * ang(mr(-80), mr(-35), 0))
  1806. Tween(lw, cfn(-0.5, 0.8, 0) * ang(mr(-90), mr(35), 0))
  1807. wait(0.2)
  1808. hitbox:Destroy()
  1809. hum.WalkSpeed = oldspeed
  1810. reset()
  1811. animPlaying = false
  1812. canRunLeg = false
  1813. deb = false
  1814. end, 80)
  1815. addMove("darkspikes", "t", 0.4, function() --ADMORDEO
  1816. game:GetService("Chat"):Chat(head, "ADMORDEO", 2)
  1817. local lv = tor.CFrame
  1818. tweenTable = {}
  1819. animPlaying = true
  1820. deb = true
  1821. canRunLeg = true
  1822. magictone1:Play()
  1823. Tween(rj, cfn() * ang(0, mr(25), 0), 0.2)
  1824. Tween(rw, cfn() * ang(mr(25), mr(-20), 0), 0.2)
  1825. wait(0.2)
  1826. Tween(rj, cfn() * ang(0, mr(-55), 0), 0.15)
  1827. Tween(rw, cfn() * ang(mr(-115), mr(45), 0), 0.15)
  1828. Tween(neck, cfn() * ang(0, mr(55), 0))
  1829. local spot = 4
  1830. for i = 1, 10 do
  1831. wait(0.1)
  1832. do
  1833. local v = lv.lookVector * spot
  1834. spot = spot + 14
  1835. local spike = cp(tube, "Medium blue", Vector3.new(10, 1, 10), true, false)
  1836. spike.Material = "Neon"
  1837. spike.CFrame = lv * CFrame.new(0, 0, -spot)
  1838. local dam = cp(tube, "Red", Vector3.new(7, 10, 7), true, false)
  1839. dam.Material = "Neon"
  1840. local dml = cyl(dam)
  1841. local angls = CFrame.Angles(spike.CFrame:toEulerAnglesXYZ())
  1842. local bhit, pos = FindGround(cn(spike.CFrame.p), ch)
  1843. if bhit then
  1844. spike.CFrame = pos * CFrame.new(0, 0, 0)
  1845. do
  1846. local mgp = cp(tube, "White", Vector3.new(1, 1, 1), true, false)
  1847. mgp.Transparency = 1
  1848. mgp.CFrame = spike.CFrame
  1849. game.Debris:AddItem(mgp, 2)
  1850. local sn = spexp:clone()
  1851. sn.Parent = mgp
  1852. sn.Volume = 2
  1853. sn:Play()
  1854. dam.CFrame = spike.CFrame * CFrame.new(0, 5, 0)
  1855. local blast = dam
  1856. local region = CreateRegion3FromLocAndSize(blast.Position, blast.Size * 2)
  1857. local people = {}
  1858. for _, v in pairs(workspace:findPartsInRegion3WithIgnoreList(region, {ch}, 100)) do
  1859. if v and v.Parent and v.className == "Part" and v.Parent:findFirstChild("Humanoid") then
  1860. local can = false
  1861. if not v.Parent:findFirstChild("HitDeb") then
  1862. can = true
  1863. end
  1864. if can == true then
  1865. local db = Instance.new("StringValue", v.Parent)
  1866. db.Name = "HitDeb"
  1867. game.Debris:AddItem(db, 0.2)
  1868. local humin = v.Parent.Humanoid
  1869. if humin then
  1870. local php = humin.Health
  1871. dealDamage(humin.Parent, 10 + math.random(20), 30)
  1872. local testvel = int("BodyVelocity", v)
  1873. testvel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1874. testvel.Velocity = lv.lookVector * 100
  1875. game.Debris:addItem(testvel, 1)
  1876. humin.Sit = true
  1877. if php <= humin.Health and humin.MaxHealth ~= math.huge then
  1878. print("equal")
  1879. humin:TakeDamage(30)
  1880. end
  1881. end
  1882. end
  1883. end
  1884. end
  1885. local cl = cyl(spike)
  1886. addFx(spike, 0.05, "destroy", function()
  1887. cl.Scale = cl.Scale - Vector3.new(0.05, 0, 0.05)
  1888. spike.Transparency = spike.Transparency + 0.05
  1889. end)
  1890. addFx(dml, 0.05, "destroy", function()
  1891. dml.Scale = dml.Scale - Vector3.new(0.05, -0.05, 0.05)
  1892. dam.Transparency = dam.Transparency + 0.05
  1893. end)
  1894. end
  1895. else
  1896. spike:Destroy()
  1897. end
  1898. end
  1899. end
  1900. wait(0.7)
  1901. deb = false
  1902. canRunLeg = false
  1903. animPlaying = false
  1904. reset()
  1905. end, 30)
  1906. mouse.Button1Down:connect(function()
  1907. executeMove("basic")
  1908. end)
  1909. local vt
  1910. local dodgecool = false
  1911. function iPart(tab)
  1912. local v = Instance.new(tab.type or "Part")
  1913. if tab.type ~= "CornerWedgePart" then
  1914. v.formFactor = "Custom"
  1915. end
  1916. v.CanCollide = false
  1917. v.TopSurface = 0
  1918. v.BottomSurface = 0
  1919. v.Size = v3(tab[2], tab[3], tab[4])
  1920. if tab.co then
  1921. v.BrickColor = bn(tab.co)
  1922. end
  1923. if tab.tr then
  1924. v.Transparency = tab.tr
  1925. end
  1926. if tab.rf then
  1927. v.Reflectance = tab.rf
  1928. end
  1929. if tab.cf then
  1930. v.CFrame = tab.cf
  1931. end
  1932. if tab.an then
  1933. v.Anchored = tab.an
  1934. end
  1935. v.Parent = tab[1]
  1936. LastMade = v
  1937. return v
  1938. end
  1939. function iNew(tab)
  1940. local v = Instance.new(tab[1])
  1941. for Ind, Val in pairs(tab) do
  1942. if Ind ~= 1 and Ind ~= 2 then
  1943. v[Ind] = Val
  1944. end
  1945. end
  1946. v.Parent = tab[2] == 0 and LastMade or tab[2]
  1947. LastMade = v
  1948. return v
  1949. end
  1950. local ppart = iPart({
  1951. nil,
  1952. 0.2,
  1953. 0.2,
  1954. 0.2
  1955. })
  1956. ppart.Material = "SmoothPlastic"
  1957. ppart.TopSurface = "SmoothNoOutlines"
  1958. ppart.BottomSurface = "SmoothNoOutlines"
  1959. ppart.RightSurface = "SmoothNoOutlines"
  1960. ppart.LeftSurface = "SmoothNoOutlines"
  1961. ppart.Transparency = 0
  1962. ppart.Anchored = true
  1963. local CFrameFromTopBack = function(at, top, back)
  1964. local right = top:Cross(back)
  1965. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1966. end
  1967. function Triangle(a, b, c)
  1968. local edg1 = (c - a):Dot((b - a).unit)
  1969. local edg2 = (a - b):Dot((c - b).unit)
  1970. local edg3 = (b - c):Dot((a - c).unit)
  1971. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  1972. a, b = a, b
  1973. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  1974. a, b, c = b, c, a
  1975. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  1976. a, b, c = c, a, b
  1977. else
  1978. print("unreachable")
  1979. end
  1980. local len1 = (c - a):Dot((b - a).unit)
  1981. local len2 = (b - a).magnitude - len1
  1982. local width = (a + (b - a).unit * len1 - c).magnitude
  1983. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  1984. local list = {}
  1985. if len1 > 0.01 then
  1986. do
  1987. local w1 = iNew({
  1988. "WedgePart",
  1989. Pack,
  1990. FormFactor = "Custom",
  1991. BrickColor = ppart.BrickColor,
  1992. Transparency = ppart.Transparency,
  1993. Reflectance = ppart.Reflectance,
  1994. Material = ppart.Material,
  1995. CanCollide = ppart.CanCollide
  1996. })
  1997. w1.Parent = tube
  1998. local sz = v3(0.2, width, len1)
  1999. w1.Size = sz
  2000. local sp = iNew({
  2001. "SpecialMesh",
  2002. w1,
  2003. MeshType = "Wedge",
  2004. Scale = v3(0, 1, 1) * sz / w1.Size
  2005. })
  2006. w1:BreakJoints()
  2007. w1.Anchored = true
  2008. w1.Transparency = 0.7
  2009. Spawn(function()
  2010. for i = 0, 1, 0.1 do
  2011. wait()
  2012. w1.Transparency = w1.Transparency + 0.03
  2013. end
  2014. end)
  2015. w1.CFrame = maincf * ca2(math.pi, 0, math.pi / 2) * cn(0, width / 2, len1 / 2)
  2016. table.insert(list, w1)
  2017. end
  2018. end
  2019. if len2 > 0.01 then
  2020. do
  2021. local w2 = iNew({
  2022. "WedgePart",
  2023. Pack,
  2024. FormFactor = "Custom",
  2025. BrickColor = ppart.BrickColor,
  2026. Transparency = ppart.Transparency,
  2027. Reflectance = ppart.Reflectance,
  2028. Material = ppart.Material,
  2029. CanCollide = ppart.CanCollide
  2030. })
  2031. local sz = v3(0.2, width, len2)
  2032. w2.Size = sz
  2033. local sp = iNew({
  2034. "SpecialMesh",
  2035. w2,
  2036. MeshType = "Wedge",
  2037. Scale = v3(0, 1, 1) * sz / w2.Size
  2038. })
  2039. w2:BreakJoints()
  2040. w2.Anchored = true
  2041. w2.Transparency = 0.7
  2042. Spawn(function()
  2043. for i = 0, 1, 0.1 do
  2044. wait()
  2045. w2.Transparency = w2.Transparency + 0.03
  2046. end
  2047. end)
  2048. w2.CFrame = maincf * ca2(math.pi, math.pi, -math.pi / 2) * cn(0, width / 2, -len1 - len2 / 2)
  2049. w2.Parent = tube
  2050. table.insert(list, w2)
  2051. end
  2052. end
  2053. return unpack(list)
  2054. end
  2055. bclf = ch["Right Arm"].CFrame
  2056. scfr = bclf
  2057. ca = CFrame.Angles
  2058. cn = CFrame.new
  2059. v3 = Vector3.new
  2060. function Raycast(Pos, Dir, Ign)
  2061. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * 300), Ign)
  2062. end
  2063. function FindGround(cf, ig)
  2064. local ax, ay, az = cf:toEulerAnglesXYZ()
  2065. local bhit, bpos = Raycast(cf.p, cf.p - (cf.p + v3(0, 200, 0)), ig)
  2066. if bhit and bpos then
  2067. return bhit, cn(bpos) * ca(ax, ay, az)
  2068. end
  2069. end
  2070. currentkey = ""
  2071. mouse.KeyDown:connect(function(key)
  2072. if key == "q" and currentkey == "32" and Vector3.new(0, tor.Velocity.Y, 0).magnitude > 2 then
  2073. executeMove("downslam")
  2074. elseif key == "r" and currentkey == "32" and Vector3.new(0, tor.Velocity.Y, 0).magnitude > 2 then
  2075. executeMove("aerialsword")
  2076. end
  2077. if string.byte(key) == 32 and canExecuteMoves == true then
  2078. combostring = combostring .. "."
  2079. if combostring:match("..") and dodgecool == false then
  2080. currentkey = tostring(string.byte(key))
  2081. animPlaying = true
  2082. altTween(rj, cfn() * ang(mr(-15), 0, 0))
  2083. altTween(rw, cfn() * ang(mr(10), 0, mr(-15)))
  2084. altTween(lw, cfn() * ang(mr(10), 0, mr(15)))
  2085. dodgecool = true
  2086. combostring = ""
  2087. local rv = tor.CFrame.upVector
  2088. local bv = int("BodyVelocity", tor)
  2089. dodgesound:Play()
  2090. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  2091. bv.Velocity = rv * 150
  2092. spawn(function()
  2093. for i = 1, 14 do
  2094. wait()
  2095. do
  2096. local cfx = cp(tube, "White", Vector3.new(6, 6, 6), true, false)
  2097. cfx.CFrame = tor.CFrame * CFrame.Angles(math.rad(math.random(90)), math.rad(math.random(90)), 0)
  2098. local b = blo(cfx)
  2099. addFx(cfx, 0.05, "destroy", function()
  2100. cfx.Transparency = cfx.Transparency + 0.05
  2101. b.Scale = b.Scale + Vector3.new(0.1, 0.1, 0.1)
  2102. end)
  2103. end
  2104. end
  2105. end)
  2106. wait()
  2107. bv:Destroy()
  2108. wait(0.4)
  2109. reset()
  2110. dodgecool = false
  2111. wait(0.4)
  2112. if currentkey == "32" then
  2113. currentkey = ""
  2114. end
  2115. if not deb then
  2116. animPlaying = false
  2117. end
  2118. end
  2119. end
  2120. if key == "d" and canExecuteMoves == true then
  2121. combostring = combostring .. "d"
  2122. if combostring:match("dd") and dodgecool == false then
  2123. dodgecool = true
  2124. combostring = ""
  2125. local rv = cam.CFrame.rightVector
  2126. local bv = int("BodyVelocity", tor)
  2127. dodgesound:Play()
  2128. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  2129. bv.Velocity = rv * 150
  2130. spawn(function()
  2131. for i = 1, 16 do
  2132. wait()
  2133. do
  2134. local cfx = cp(tube, "White", Vector3.new(6, 6, 6), true, false)
  2135. cfx.CFrame = tor.CFrame * CFrame.Angles(math.rad(math.random(90)), math.rad(math.random(90)), 0)
  2136. local b = blo(cfx)
  2137. addFx(cfx, 0.05, "destroy", function()
  2138. cfx.Transparency = cfx.Transparency + 0.05
  2139. b.Scale = b.Scale + Vector3.new(0.1, 0.1, 0.1)
  2140. end)
  2141. end
  2142. end
  2143. end)
  2144. wait()
  2145. bv:Destroy()
  2146. wait(0.4)
  2147. dodgecool = false
  2148. end
  2149. elseif key == "w" and canExecuteMoves == true then
  2150. combostring = combostring .. "w"
  2151. if combostring:match("ww") and dodgecool == false then
  2152. dodgecool = true
  2153. combostring = ""
  2154. local rv = cam.CFrame:vectorToWorldSpace(Vector3.new(0, 0, -1))
  2155. local bv = int("BodyVelocity", tor)
  2156. dodgesound:Play()
  2157. bv.MaxForce = Vector3.new(math.huge, 0, math.huge)
  2158. bv.Velocity = rv * 150
  2159. spawn(function()
  2160. for i = 1, 16 do
  2161. wait()
  2162. do
  2163. local cfx = cp(tube, "White", Vector3.new(6, 6, 6), true, false)
  2164. cfx.CFrame = tor.CFrame * CFrame.Angles(math.rad(math.random(90)), math.rad(math.random(90)), 0)
  2165. local b = blo(cfx)
  2166. addFx(cfx, 0.05, "destroy", function()
  2167. cfx.Transparency = cfx.Transparency + 0.05
  2168. b.Scale = b.Scale + Vector3.new(0.1, 0.1, 0.1)
  2169. end)
  2170. end
  2171. end
  2172. end)
  2173. wait()
  2174. bv:Destroy()
  2175. wait(0.4)
  2176. dodgecool = false
  2177. end
  2178. elseif key == "s" and canExecuteMoves == true then
  2179. combostring = combostring .. "s"
  2180. if combostring:match("ss") and dodgecool == false then
  2181. dodgecool = true
  2182. combostring = ""
  2183. local rv = cam.CFrame:vectorToWorldSpace(Vector3.new(0, 0, 1))
  2184. local bv = int("BodyVelocity", tor)
  2185. dodgesound:Play()
  2186. bv.MaxForce = Vector3.new(math.huge, 0, math.huge)
  2187. bv.Velocity = rv * 150
  2188. spawn(function()
  2189. for i = 1, 16 do
  2190. wait()
  2191. do
  2192. local cfx = cp(tube, "White", Vector3.new(6, 6, 6), true, false)
  2193. cfx.CFrame = tor.CFrame * CFrame.Angles(math.rad(math.random(90)), math.rad(math.random(90)), 0)
  2194. local b = blo(cfx)
  2195. addFx(cfx, 0.05, "destroy", function()
  2196. cfx.Transparency = cfx.Transparency + 0.05
  2197. b.Scale = b.Scale + Vector3.new(0.1, 0.1, 0.1)
  2198. end)
  2199. end
  2200. end
  2201. end)
  2202. wait()
  2203. bv:Destroy()
  2204. wait(0.4)
  2205. dodgecool = false
  2206. end
  2207. elseif key == "a" and canExecuteMoves == true then
  2208. combostring = combostring .. "a"
  2209. if combostring:match("aa") and dodgecool == false then
  2210. dodgecool = true
  2211. combostring = ""
  2212. local rv = cam.CFrame.rightVector
  2213. local bv = int("BodyVelocity", tor)
  2214. dodgesound:Play()
  2215. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  2216. bv.Velocity = rv * -150
  2217. spawn(function()
  2218. for i = 1, 16 do
  2219. wait()
  2220. do
  2221. local cfx = cp(tube, "White", Vector3.new(6, 6, 6), true, false)
  2222. cfx.CFrame = tor.CFrame * CFrame.Angles(math.rad(math.random(90)), math.rad(math.random(90)), 0)
  2223. local b = blo(cfx)
  2224. addFx(cfx, 0.05, "destroy", function()
  2225. cfx.Transparency = cfx.Transparency + 0.05
  2226. b.Scale = b.Scale + Vector3.new(0.1, 0.1, 0.1)
  2227. end)
  2228. end
  2229. end
  2230. end)
  2231. wait()
  2232. bv:Destroy()
  2233. wait(0.4)
  2234. dodgecool = false
  2235. end
  2236. end
  2237. if key == "f" then
  2238. if deb == false then
  2239. executeMove("block_normal")
  2240. end
  2241. elseif key == "h" then
  2242. if deb == false then
  2243. executeMove("taunt")
  2244. end
  2245. elseif key == "j" then
  2246. if deb == false then
  2247. executeMove("terra")
  2248. end
  2249. elseif key == "e" then
  2250. if deb == false then
  2251. executeMove("beam")
  2252. end
  2253. elseif key == "t" then
  2254. if deb == false then
  2255. executeMove("darkspikes")
  2256. end
  2257. elseif key == "g" then
  2258. if deb == false then
  2259. executeMove("curse")
  2260. end
  2261. elseif key == "r" and deb == false and Vector3.new(0, tor.Velocity.Y, 0).magnitude < 2 and currentkey ~= "32" then
  2262. executeMove("darkslash")
  2263. end
  2264. end)
  2265. mouse.KeyUp:connect(function(key)
  2266. for _, v in pairs(connectlist) do
  2267. if v.up == false and v.key == key then
  2268. v.up = true
  2269. table.remove(connectlist, _)
  2270. end
  2271. end
  2272. end)
  2273. mouse.Button1Up:connect(function()
  2274. for _, v in pairs(connectlist) do
  2275. if v.up == false then
  2276. v.up = true
  2277. table.remove(connectlist, _)
  2278. end
  2279. end
  2280. end)
  2281. local oldsize = mana / maxmana
  2282. local oldchain = 0
  2283. spawn(function()
  2284. while wait(1) do
  2285. if deb == false then
  2286. if chain == oldchain then
  2287. chain = 0
  2288. end
  2289. oldchain = chain
  2290. end
  2291. end
  2292. end)
  2293. game:service("RunService").Stepped:connect(function()
  2294. chaintext.Text = tostring(chain) .. "x"
  2295. manabartext.Text = tostring(mana) .. "/" .. tostring(maxmana)
  2296. if mana / maxmana ~= oldsize then
  2297. manabar:TweenSize(UDim2.new(mana / maxmana, 0, 1, 0), "Out", "Sine", 1, true)
  2298. oldsize = mana / maxmana
  2299. end
  2300. if dumbbox then
  2301. dumbbox.CFrame = dumbhand.CFrame * cfn(0, 0, 4) * ang(mr(-90), 0, 0)
  2302. end
  2303. for _, v in pairs(textTable) do
  2304. if 1 > v.TextLabel.TextTransparency then
  2305. v.TextLabel.TextTransparency = v.TextLabel.TextTransparency + 0.02
  2306. v.TextLabel.TextStrokeTransparency = v.TextLabel.TextStrokeTransparency + 0.02
  2307. v.StudsOffset = v.StudsOffset + Vector3.new(0, 0.02, 0)
  2308. else
  2309. v:Destroy()
  2310. table.remove(textTable, _)
  2311. end
  2312. end
  2313. if Vector3.new(tor.Velocity.X, 0, tor.Velocity.Z).magnitude > 2 then
  2314. run = true
  2315. elseif Vector3.new(tor.Velocity.X, 0, tor.Velocity.Z).magnitude < 2 then
  2316. run = false
  2317. idle = true
  2318. end
  2319. if Vector3.new(tor.Velocity.X, 0, tor.Velocity.Z).magnitude > 2 and canRunLeg == true then
  2320. runLeg = true
  2321. elseif Vector3.new(tor.Velocity.X, 0, tor.Velocity.Z).magnitude < 2 and canRunLeg == true then
  2322. runLeg = false
  2323. resetLegs()
  2324. end
  2325. for _, v in pairs(movers) do
  2326. if v.mover and v.mover:IsDescendantOf(tube) then
  2327. v.func()
  2328. else
  2329. table.remove(movers, _)
  2330. end
  2331. end
  2332. if bg and 0 < hum.Health then
  2333. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  2334. end
  2335. for _, v in pairs(fx) do
  2336. if 1 > v.stepval then
  2337. v.func()
  2338. v.stepval = v.stepval + v.int
  2339. elseif v.final then
  2340. if v.final == "destroy" then
  2341. v.item:Destroy()
  2342. table.remove(fx, _)
  2343. end
  2344. else
  2345. table.remove(fx, _)
  2346. end
  2347. end
  2348. for _, v in pairs(tweenTable) do
  2349. if v.Weld.C1 == v.Stop then
  2350. table.remove(tweenTable, _)
  2351. elseif v.th < 1 - v.Step then
  2352. v.th = v.th + v.Step
  2353. i = v.th
  2354. v.Weld.C1 = v.Weld.C1:lerp(CFrame.new(v.Start.p.X * (1 - i) + v.Stop.p.X * i, v.Start.p.Y * (1 - i) + v.Stop.p.Y * i, v.Start.p.Z * (1 - i) + v.Stop.p.Z * i) * CFrame.fromEulerAnglesXYZ(v.X1 * (1 - i) + v.X2 * i, v.Y1 * (1 - i) + v.Y2 * i, v.Z1 * (1 - i) + v.Z2 * i), 1)
  2355. else
  2356. v.Weld.C1 = v.Stop
  2357. end
  2358. end
  2359. for _, v in pairs(altTweenTable) do
  2360. if v.Weld.C1 == v.Stop then
  2361. table.remove(tweenTable, _)
  2362. elseif v.th < 1 - v.Step then
  2363. v.th = v.th + v.Step
  2364. i = v.th
  2365. v.Weld.C1 = v.Weld.C1:lerp(CFrame.new(v.Start.p.X * (1 - i) + v.Stop.p.X * i, v.Start.p.Y * (1 - i) + v.Stop.p.Y * i, v.Start.p.Z * (1 - i) + v.Stop.p.Z * i) * CFrame.fromEulerAnglesXYZ(v.X1 * (1 - i) + v.X2 * i, v.Y1 * (1 - i) + v.Y2 * i, v.Z1 * (1 - i) + v.Z2 * i), 1)
  2366. else
  2367. v.Weld.C1 = v.Stop
  2368. end
  2369. end
  2370. end)
  2371. local oldcombo
  2372. local thingz = false
  2373. spawn(function()
  2374. while wait(0.1) do
  2375. for _, v in pairs(cooldowns) do
  2376. if 0.1 > v.timeleft then
  2377. table.remove(cooldowns, _)
  2378. else
  2379. v.timeleft = v.timeleft - 0.1
  2380. end
  2381. end
  2382. end
  2383. end)
  2384. spawn(function()
  2385. while wait(0.1) do
  2386. if thingz == false then
  2387. oldcombo = combostring
  2388. thingz = true
  2389. else
  2390. if string.len(oldcombo) == string.len(combostring) then
  2391. combostring = ""
  2392. oldcombo = ""
  2393. end
  2394. thingz = false
  2395. end
  2396. end
  2397. end)
  2398. while wait() do
  2399. if mana < maxmana and not deb and not animPlaying then
  2400. mana = mana + 2
  2401. if mana == maxmana + 1 then
  2402. mana = maxmana
  2403. end
  2404. end
  2405. if animPlaying == true and runLeg == true then
  2406. walkLegs()
  2407. end
  2408. if run == true and animPlaying == false then
  2409. altTweenTable = {}
  2410. tweenTable = {}
  2411. walkCycle()
  2412. elseif idle == true and animPlaying == false then
  2413. tweenTable = {}
  2414. reset()
  2415. end
  2416. end
  2417. wait()
  2418. Player = game.Players.LocalPlayer
  2419. Object = Player.Character.HumanoidRootPart
  2420. Arm1 = Player.Character["Right Arm"]
  2421. PreviousA1 = Arm1.CFrame.p
  2422. Arm2 = Player.Character["Left Arm"]
  2423. PreviousA2 = Arm2.CFrame.p
  2424.  
  2425. Leg1 = Player.Character["Right Leg"]
  2426. PreviousL1 = Leg1.CFrame.p
  2427. Leg2 = Player.Character["Left Leg"]
  2428. PreviousL2 = Leg2.CFrame.p
  2429.  
  2430. Run = game["Run Service"]
  2431.  
  2432. PreviousP = Object.CFrame.p
  2433. Running = false
  2434. Phase = false
  2435. PhaseActive = false
  2436. Morph = false
  2437. MorphActive = false
  2438. Tornado = false
  2439. TornadoRadius = 50
  2440. TornadoActive = false
  2441. Portal = false
  2442. PortalEnd = false
  2443. MaxZ = 15
  2444. MinZ = -15
  2445. LightMaxX = 3
  2446. LightMinX = 1
  2447. LightMaxX2 = -1
  2448. LightMinX2 = -3
  2449. LightMaxY = 3
  2450. LightMinY = -1
  2451. Rotation = 0
  2452. Length = 10
  2453. Color = BrickColor.Yellow()
  2454. PColor = Color3.new(255,255,0)
  2455. PrevPoint1 = nil
  2456. PrevPoint2 = nil
  2457. PrevPoint3 = nil
  2458. PrevPoint4 = nil
  2459. PrevPoint5 = nil
  2460. PrevPoint6 = nil
  2461. PrevPoint7 = nil
  2462. PrevPoint8 = nil
  2463. PrevPoint9 = nil
  2464. PrevPoint10 = nil
  2465. PrevPoint11 = nil
  2466. PrevPoint12 = nil
  2467. angle = 0
  2468. Mouse = Player:GetMouse()
  2469. Player.Character.Humanoid.WalkSpeed = 18
  2470.  
  2471. Nil = function()
  2472. PrevPoint1 = "Empty"
  2473. PrevPoint2 = "Empty"
  2474. PrevPoint3 = "Empty"
  2475. PrevPoint4 = "Empty"
  2476. PrevPoint5 = "Empty"
  2477. PrevPoint6 = "Empty"
  2478. PrevPoint7 = "Empty"
  2479. PrevPoint8 = "Empty"
  2480. PrevPoint9 = "Empty"
  2481. PrevPoint10 = "Empty"
  2482. PrevPoint11 = "Empty"
  2483. PrevPoint12 = "Empty"
  2484. end
  2485.  
  2486. local Lightning = coroutine.wrap(function()
  2487. while wait() do
  2488. if Portal == false then
  2489. angle = angle + 0.6
  2490. local Model = Instance.new("Model",workspace)
  2491. Model.Name = "Lightning"
  2492. local Point1 = Instance.new("Part",Model)
  2493. Point1.Transparency = 1
  2494. Point1.Size = Vector3.new(0.2,0.2,0.2)
  2495. Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
  2496. Point1.Anchored = true
  2497. Point1.CanCollide = false
  2498. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  2499.  
  2500. local Point2 = Instance.new("Part",Model)
  2501. Point2.Transparency = 1
  2502. Point2.Size = Vector3.new(0.2,0.2,0.2)
  2503. Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
  2504. Point2.Anchored = true
  2505. Point2.CanCollide = false
  2506. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  2507.  
  2508. local Point3 = Instance.new("Part",Model)
  2509. Point3.Transparency = 1
  2510. Point3.Size = Vector3.new(0.2,0.2,0.2)
  2511. Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
  2512. Point3.Anchored = true
  2513. Point3.CanCollide = false
  2514. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  2515.  
  2516. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  2517. local Light = Instance.new("Part",Model)
  2518. local PointLight = Instance.new("PointLight",Light)
  2519. PointLight.Range = 5
  2520. PointLight.Color = PColor
  2521. Light.Transparency = 0.5
  2522. Light.BrickColor = Color
  2523. Light.Material = "Neon"
  2524. Light.Size = Vector3.new(0.25,0.25,distance)
  2525. Light.Anchored = true
  2526. Light.CanCollide = false
  2527. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  2528.  
  2529. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  2530. local Light = Instance.new("Part",Model)
  2531. local PointLight = Instance.new("PointLight",Light)
  2532. PointLight.Range = 5
  2533. PointLight.Color = PColor
  2534. Light.Transparency = 0.5
  2535. Light.BrickColor = Color
  2536. Light.Material = "Neon"
  2537. Light.Size = Vector3.new(0.25,0.25,distance2)
  2538. Light.Anchored = true
  2539. Light.CanCollide = false
  2540. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  2541.  
  2542. local Point1 = Instance.new("Part",Model)
  2543. Point1.Transparency = 1
  2544. Point1.Size = Vector3.new(0.2,0.2,0.2)
  2545. Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
  2546. Point1.Anchored = true
  2547. Point1.CanCollide = false
  2548. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  2549.  
  2550. local Point2 = Instance.new("Part",Model)
  2551. Point2.Transparency = 1
  2552. Point2.Size = Vector3.new(0.2,0.2,0.2)
  2553. Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
  2554. Point2.Anchored = true
  2555. Point2.CanCollide = false
  2556. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  2557.  
  2558. local Point3 = Instance.new("Part",Model)
  2559. Point3.Transparency = 1
  2560. Point3.Size = Vector3.new(0.2,0.2,0.2)
  2561. Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
  2562. Point3.Anchored = true
  2563. Point3.CanCollide = false
  2564. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  2565.  
  2566. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  2567. local Light = Instance.new("Part",Model)
  2568. local PointLight = Instance.new("PointLight",Light)
  2569. PointLight.Range = 5
  2570. PointLight.Color = PColor
  2571. Light.Transparency = 0.5
  2572. Light.BrickColor = Color
  2573. Light.Material = "Neon"
  2574. Light.Size = Vector3.new(0.25,0.25,distance)
  2575. Light.Anchored = true
  2576. Light.CanCollide = false
  2577. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  2578.  
  2579. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  2580. local Light = Instance.new("Part",Model)
  2581. local PointLight = Instance.new("PointLight",Light)
  2582. PointLight.Range = 5
  2583. PointLight.Color = PColor
  2584. Light.Transparency = 0.5
  2585. Light.BrickColor = Color
  2586. Light.Material = "Neon"
  2587. Light.Size = Vector3.new(0.3,0.3,distance2)
  2588. Light.Anchored = true
  2589. Light.CanCollide = false
  2590. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  2591.  
  2592. local Point1 = Instance.new("Part",Model)
  2593. Point1.Transparency = 1
  2594. Point1.Size = Vector3.new(0.2,0.2,0.2)
  2595. Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  2596. Point1.Anchored = true
  2597. Point1.CanCollide = false
  2598. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  2599.  
  2600. local Point2 = Instance.new("Part",Model)
  2601. Point2.Transparency = 1
  2602. Point2.Size = Vector3.new(0.2,0.2,0.2)
  2603. Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  2604. Point2.Anchored = true
  2605. Point2.CanCollide = false
  2606. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  2607.  
  2608. local Point3 = Instance.new("Part",Model)
  2609. Point3.Transparency = 1
  2610. Point3.Size = Vector3.new(0.2,0.2,0.2)
  2611. Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  2612. Point3.Anchored = true
  2613. Point3.CanCollide = false
  2614. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  2615.  
  2616. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  2617. local Light = Instance.new("Part",Model)
  2618. local PointLight = Instance.new("PointLight",Light)
  2619. PointLight.Range = 5
  2620. PointLight.Color = PColor
  2621. Light.Transparency = 0.5
  2622. Light.BrickColor = Color
  2623. Light.Material = "Neon"
  2624. Light.Size = Vector3.new(0.25,0.25,distance)
  2625. Light.Anchored = true
  2626. Light.CanCollide = false
  2627. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  2628.  
  2629. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  2630. local Light = Instance.new("Part",Model)
  2631. local PointLight = Instance.new("PointLight",Light)
  2632. PointLight.Range = 5
  2633. PointLight.Color = PColor
  2634. Light.Transparency = 0.5
  2635. Light.BrickColor = Color
  2636. Light.Material = "Neon"
  2637. Light.Size = Vector3.new(0.25,0.25,distance2)
  2638. Light.Anchored = true
  2639. Light.CanCollide = false
  2640. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  2641.  
  2642. local Point1 = Instance.new("Part",Model)
  2643. Point1.Transparency = 1
  2644. Point1.Size = Vector3.new(0.2,0.2,0.2)
  2645. Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  2646. Point1.Anchored = true
  2647. Point1.CanCollide = false
  2648. Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  2649.  
  2650. local Point2 = Instance.new("Part",Model)
  2651. Point2.Transparency = 1
  2652. Point2.Size = Vector3.new(0.2,0.2,0.2)
  2653. Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  2654. Point2.Anchored = true
  2655. Point2.CanCollide = false
  2656. Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  2657.  
  2658. local Point3 = Instance.new("Part",Model)
  2659. Point3.Transparency = 1
  2660. Point3.Size = Vector3.new(0.2,0.2,0.2)
  2661. Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  2662. Point3.Anchored = true
  2663. Point3.CanCollide = false
  2664. Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  2665.  
  2666. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  2667. local Light = Instance.new("Part",Model)
  2668. local PointLight = Instance.new("PointLight",Light)
  2669. PointLight.Range = 5
  2670. PointLight.Color = PColor
  2671. Light.Transparency = 0.5
  2672. Light.BrickColor = Color
  2673. Light.Material = "Neon"
  2674. Light.Size = Vector3.new(0.25,0.25,distance)
  2675. Light.Anchored = true
  2676. Light.CanCollide = false
  2677. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  2678.  
  2679. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  2680. local Light = Instance.new("Part",Model)
  2681. local PointLight = Instance.new("PointLight",Light)
  2682. PointLight.Range = 5
  2683. PointLight.Color = PColor
  2684. Light.Transparency = 0.5
  2685. Light.BrickColor = Color
  2686. Light.Material = "Neon"
  2687. Light.Size = Vector3.new(0.25,0.25,distance2)
  2688. Light.Anchored = true
  2689. Light.CanCollide = false
  2690. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  2691.  
  2692. local Children = Model:GetChildren()
  2693. wait(0.1)
  2694. for i = 1,#Children do
  2695. if Children[i]:IsA("Part") then
  2696. Children[i].Transparency = 1
  2697. end
  2698. game.Debris:AddItem(Children[i],0)
  2699. end
  2700.  
  2701. end
  2702. end
  2703. end)
  2704. Lightning()
  2705.  
  2706.  
  2707. local MaxX = 100
  2708. local MinX = -100
  2709. local MaxY = 100
  2710. local MinY = -100
  2711. local MaxZ = 100
  2712. local MinZ = -100
  2713. local Morph = coroutine.wrap(function()
  2714. while Run.Stepped:wait(0.1) do
  2715. if Morph == false then break end
  2716. local Model = Instance.new("Model",workspace)
  2717. if Player.Character:FindFirstChild("Shirt") then
  2718. local Shirt = Player.Character.Shirt:Clone()
  2719. Shirt.Parent = Model
  2720. end
  2721. if Player.Character:FindFirstChild("Pants") then
  2722. local Pants = Player.Character.Pants:Clone()
  2723. Pants.Parent = Model
  2724. end
  2725. local Humanoid = Instance.new("Humanoid",Model)
  2726. local LeftArm = Player.Character["Left Arm"]:Clone()
  2727. LeftArm.Parent = Model
  2728. LeftArm.Transparency = 0.4
  2729. LeftArm.Anchored = true
  2730. LeftArm.CFrame = Player.Character["Left Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  2731. local RightArm = Player.Character["Right Arm"]:Clone()
  2732. RightArm.Parent = Model
  2733. RightArm.Transparency = 0.4
  2734. RightArm.Anchored = true
  2735. RightArm.CFrame = Player.Character["Right Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  2736. local LeftLeg = Player.Character["Left Leg"]:Clone()
  2737. LeftLeg.Parent = Model
  2738. LeftLeg.Transparency = 0.4
  2739. LeftLeg.Anchored = true
  2740. LeftLeg.CFrame = Player.Character["Left Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  2741. local RightLeg = Player.Character["Right Leg"]:Clone()
  2742. RightLeg.Parent = Model
  2743. RightLeg.Transparency = 0.4
  2744. RightLeg.Anchored = true
  2745. RightLeg.CFrame = Player.Character["Right Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  2746. local Children = Model:GetChildren()
  2747. wait(0.01)
  2748. for i = 1,#Children do
  2749. if Children[i]:IsA("Part") then
  2750. Children[i].Transparency = 1
  2751. end
  2752. game.Debris:AddItem(Children[i],0)
  2753. end
  2754. end
  2755. end)
  2756.  
  2757.  
  2758. local Guis = coroutine.wrap(function()
  2759. local Gui = Instance.new("ScreenGui",Player.PlayerGui)
  2760. local TextBox = Instance.new("TextBox",Gui)
  2761. TextBox.Text = "Speed"
  2762. TextBox.BackgroundColor3 = Color3.new(255,255,255)
  2763. TextBox.BorderColor3 = Color3.new(0,0,0)
  2764. TextBox.Size = UDim2.new(0,200,0,25)
  2765. TextBox.Position = UDim2.new(0,10,0.5,-12.5)
  2766. TextBox.FocusLost:connect(function(EnterPressed)
  2767. if EnterPressed then
  2768. Player.Character.Humanoid.WalkSpeed = TextBox.Text
  2769. end
  2770. end)
  2771. local Flash = Instance.new("TextButton",Gui)
  2772. Flash.BackgroundColor3 = Color3.new(255,255,255)
  2773. Flash.BorderColor3 = Color3.new(0,0,0)
  2774. Flash.Size = UDim2.new(0,200,0,25)
  2775. Flash.Position = UDim2.new(0,10,0.5,22.5)
  2776. Flash.Text = "The Flash"
  2777. Flash.MouseButton1Click:connect(function()
  2778. Color = BrickColor.Yellow()
  2779. PColor = Color3.new(255,255,0)
  2780. end)
  2781. local RFlash = Instance.new("TextButton",Gui)
  2782. RFlash.BackgroundColor3 = Color3.new(255,255,255)
  2783. RFlash.BorderColor3 = Color3.new(0,0,0)
  2784. RFlash.Size = UDim2.new(0,200,0,25)
  2785. RFlash.Position = UDim2.new(0,10,0.5,57.5)
  2786. RFlash.Text = "The Reverse Flash"
  2787. RFlash.MouseButton1Click:connect(function()
  2788. Color = BrickColor.new("Really red")
  2789. PColor = Color3.new(255,0,0)
  2790. end)
  2791. local Zoom = Instance.new("TextButton",Gui)
  2792. Zoom.BackgroundColor3 = Color3.new(255,255,255)
  2793. Zoom.BorderColor3 = Color3.new(0,0,0)
  2794. Zoom.Size = UDim2.new(0,200,0,25)
  2795. Zoom.Position = UDim2.new(0,10,0.5,92.5)
  2796. Zoom.Text = "Zoom"
  2797. Zoom.MouseButton1Click:connect(function()
  2798. Color = BrickColor.new("Cyan")
  2799. PColor = Color3.new(0,170,255)
  2800. end)
  2801. end)
  2802. Guis()
  2803.  
  2804. Run.RenderStepped:connect(function()
  2805. if (Object.CFrame.p - PreviousP).magnitude > 7 and Player.Character.Humanoid.WalkSpeed > 25 and Portal == false and PortalEnd == false then
  2806. local Model = Instance.new("Model",workspace)
  2807. Model.Name = "Ray"
  2808. local Humanoid = Instance.new("Humanoid",Model)
  2809. if Player.Character:FindFirstChild("Shirt") ~= nil then
  2810. Player.Character.Shirt:Clone().Parent = Model
  2811. end
  2812. if Player.Character:FindFirstChild("Pants") ~= nil then
  2813. Player.Character.Pants:Clone().Parent = Model
  2814. end
  2815. local distance = (Object.CFrame.p - PreviousP).magnitude
  2816. local Light = Instance.new("Part",Model)
  2817. Light.Anchored = true
  2818. Light.CanCollide = false
  2819. Light.TopSurface = "SmoothNoOutlines"
  2820. Light.BottomSurface = "SmoothNoOutlines"
  2821. Light.BackSurface = "SmoothNoOutlines"
  2822. Light.FrontSurface = "SmoothNoOutlines"
  2823. Light.LeftSurface = "SmoothNoOutlines"
  2824. Light.RightSurface = "SmoothNoOutlines"
  2825. Light.Transparency = 1
  2826. Light.BrickColor = BrickColor.Black()
  2827. Light.Size = Vector3.new(2,2)
  2828. Light.CFrame = CFrame.new(Object.CFrame.p , PreviousP) * CFrame.new(0,0,-distance/2)
  2829.  
  2830. local PointLight = Instance.new("PointLight",Light)
  2831. PointLight.Range = 15
  2832. PointLight.Brightness = 100
  2833. PointLight.Color = PColor
  2834.  
  2835. local distance = (Arm1.CFrame.p - PreviousA1).magnitude
  2836.  
  2837. local Arm1Light = Instance.new("Part",Model)
  2838. Arm1Light.Name = "Right Arm"
  2839. Arm1Light.Anchored = true
  2840. Arm1Light.CanCollide = false
  2841. Arm1Light.TopSurface = "SmoothNoOutlines"
  2842. Arm1Light.BottomSurface = "SmoothNoOutlines"
  2843. Arm1Light.BackSurface = "SmoothNoOutlines"
  2844. Arm1Light.FrontSurface = "SmoothNoOutlines"
  2845. Arm1Light.LeftSurface = "SmoothNoOutlines"
  2846. Arm1Light.RightSurface = "SmoothNoOutlines"
  2847. Arm1Light.Transparency = 1
  2848. Arm1Light.BrickColor = BrickColor.Black()
  2849. Arm1Light.Size = Vector3.new(.1,.1)
  2850. Arm1Light.CFrame = CFrame.new(Arm1.CFrame.p , PreviousA1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  2851.  
  2852. local distance = (Arm2.CFrame.p - PreviousA2).magnitude
  2853.  
  2854. local Arm2Light = Instance.new("Part",Model)
  2855. Arm2Light.Name = "Left Arm"
  2856. Arm2Light.Anchored = true
  2857. Arm2Light.CanCollide = false
  2858. Arm2Light.TopSurface = "SmoothNoOutlines"
  2859. Arm2Light.BottomSurface = "SmoothNoOutlines"
  2860. Arm2Light.BackSurface = "SmoothNoOutlines"
  2861. Arm2Light.FrontSurface = "SmoothNoOutlines"
  2862. Arm2Light.LeftSurface = "SmoothNoOutlines"
  2863. Arm2Light.RightSurface = "SmoothNoOutlines"
  2864. Arm2Light.Transparency = 1
  2865. Arm2Light.BrickColor = BrickColor.Black()
  2866. Arm2Light.Size = Vector3.new(.1,.1)
  2867. Arm2Light.CFrame = CFrame.new(Arm2.CFrame.p , PreviousA2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  2868.  
  2869. local distance = (Leg1.CFrame.p - PreviousL1).magnitude
  2870.  
  2871. local Leg1Light = Instance.new("Part",Model)
  2872. Leg1Light.Name = "Right Leg"
  2873. Leg1Light.Anchored = true
  2874. Leg1Light.CanCollide = false
  2875. Leg1Light.TopSurface = "SmoothNoOutlines"
  2876. Leg1Light.BottomSurface = "SmoothNoOutlines"
  2877. Leg1Light.BackSurface = "SmoothNoOutlines"
  2878. Leg1Light.FrontSurface = "SmoothNoOutlines"
  2879. Leg1Light.LeftSurface = "SmoothNoOutlines"
  2880. Leg1Light.RightSurface = "SmoothNoOutlines"
  2881. Leg1Light.Transparency = 1
  2882. Leg1Light.BrickColor = BrickColor.Black()
  2883. Leg1Light.Size = Vector3.new(.1,.1)
  2884. Leg1Light.CFrame = CFrame.new(Leg1.CFrame.p , PreviousL1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  2885.  
  2886. local distance = (Leg2.CFrame.p - PreviousL2).magnitude
  2887.  
  2888. local Leg1Light = Instance.new("Part",Model)
  2889. Leg1Light.Name = "Left Leg"
  2890. Leg1Light.Anchored = true
  2891. Leg1Light.CanCollide = false
  2892. Leg1Light.TopSurface = "SmoothNoOutlines"
  2893. Leg1Light.BottomSurface = "SmoothNoOutlines"
  2894. Leg1Light.BackSurface = "SmoothNoOutlines"
  2895. Leg1Light.FrontSurface = "SmoothNoOutlines"
  2896. Leg1Light.LeftSurface = "SmoothNoOutlines"
  2897. Leg1Light.RightSurface = "SmoothNoOutlines"
  2898. Leg1Light.Transparency = 1
  2899. Leg1Light.BrickColor = BrickColor.Black()
  2900. Leg1Light.Size = Vector3.new(.1,.1)
  2901. Leg1Light.CFrame = CFrame.new(Leg2.CFrame.p , PreviousL2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)--]]
  2902.  
  2903. local Point1 = Instance.new("Part",Model)
  2904. Point1.Transparency = 1
  2905. Point1.Anchored = true
  2906. Point1.CanCollide = false
  2907. Point1.Size = Vector3.new(0.2,0.2,0.2)
  2908. Point1.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  2909. * CFrame.new(Light.Size.X/2 ,0 ,0)
  2910. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  2911. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  2912.  
  2913. local Point2 = Instance.new("Part",Model)
  2914. Point2.Transparency = 1
  2915. Point2.Anchored = true
  2916. Point2.CanCollide = false
  2917. Point2.Size = Vector3.new(0.2,0.2,0.2)
  2918. Point2.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  2919. * CFrame.new(Light.Size.X/2 ,0 ,0)
  2920. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  2921. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  2922.  
  2923. local Point5 = Instance.new("Part",Model)
  2924. Point5.Transparency = 1
  2925. Point5.Anchored = true
  2926. Point5.CanCollide = false
  2927. Point5.Size = Vector3.new(0.2,0.2,0.2)
  2928. Point5.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  2929. * CFrame.new(Light.Size.X/2 ,0 ,0)
  2930. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  2931. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  2932.  
  2933. local Point6 = Instance.new("Part",Model)
  2934. Point6.Transparency = 1
  2935. Point6.Anchored = true
  2936. Point6.CanCollide = false
  2937. Point6.Size = Vector3.new(0.2,0.2,0.2)
  2938. Point6.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  2939. * CFrame.new(Light.Size.X/2 ,0 ,0)
  2940. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  2941. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  2942.  
  2943. local Point3 = Instance.new("Part",Model)
  2944. Point3.Transparency = 1
  2945. Point3.Anchored = true
  2946. Point3.CanCollide = false
  2947. Point3.Size = Vector3.new(0.2,0.2,0.2)
  2948. Point3.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  2949. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  2950. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  2951. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  2952.  
  2953. local Point4 = Instance.new("Part",Model)
  2954. Point4.Transparency = 1
  2955. Point4.Anchored = true
  2956. Point4.CanCollide = false
  2957. Point4.Size = Vector3.new(0.2,0.2,0.2)
  2958. Point4.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  2959. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  2960. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  2961. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  2962.  
  2963. local Point7 = Instance.new("Part",Model)
  2964. Point7.Transparency = 1
  2965. Point7.Anchored = true
  2966. Point7.CanCollide = false
  2967. Point7.Size = Vector3.new(0.2,0.2,0.2)
  2968. Point7.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  2969. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  2970. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  2971. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  2972.  
  2973. local Point8 = Instance.new("Part",Model)
  2974. Point8.Transparency = 1
  2975. Point8.Anchored = true
  2976. Point8.CanCollide = false
  2977. Point8.Size = Vector3.new(0.2,0.2,0.2)
  2978. Point8.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  2979. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  2980. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  2981. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  2982.  
  2983. local Point9 = Instance.new("Part",Model)
  2984. Point9.Transparency = 1
  2985. Point9.Anchored = true
  2986. Point9.CanCollide = false
  2987. Point9.Size = Vector3.new(0.2,0.2,0.2)
  2988. Point9.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
  2989. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  2990. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  2991. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  2992.  
  2993. local Point10 = Instance.new("Part",Model)
  2994. Point10.Transparency = 1
  2995. Point10.Anchored = true
  2996. Point10.CanCollide = false
  2997. Point10.Size = Vector3.new(0.2,0.2,0.2)
  2998. Point10.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
  2999. * CFrame.new(Light.Size.X/2 ,0 ,0)
  3000. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  3001. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  3002.  
  3003. local Point11 = Instance.new("Part",Model)
  3004. Point11.Transparency = 1
  3005. Point11.Anchored = true
  3006. Point11.CanCollide = false
  3007. Point11.Size = Vector3.new(0.2,0.2,0.2)
  3008. Point11.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
  3009. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  3010. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  3011. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  3012.  
  3013. local Point12 = Instance.new("Part",Model)
  3014. Point12.Transparency = 1
  3015. Point12.Anchored = true
  3016. Point12.CanCollide = false
  3017. Point12.Size = Vector3.new(0.2,0.2,0.2)
  3018. Point12.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
  3019. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  3020. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  3021. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  3022.  
  3023. if PrevPoint2 == nil or PrevPoint2 == "Empty" then
  3024. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  3025. local Light = Instance.new("Part",Model)
  3026. Light.Anchored = true
  3027. Light.CanCollide = false
  3028. Light.TopSurface = "SmoothNoOutlines"
  3029. Light.BottomSurface = "SmoothNoOutlines"
  3030. Light.BackSurface = "SmoothNoOutlines"
  3031. Light.FrontSurface = "SmoothNoOutlines"
  3032. Light.LeftSurface = "SmoothNoOutlines"
  3033. Light.RightSurface = "SmoothNoOutlines"
  3034. Light.Transparency = 0
  3035. Light.Size = Vector3.new(0.4,0.4,distance)
  3036. Light.Material = "Neon"
  3037. Light.BrickColor = Color
  3038. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  3039. elseif PrevPoint2 ~= nil then
  3040. local distance = (Point2.CFrame.p - PrevPoint2).magnitude
  3041. local Light = Instance.new("Part",Model)
  3042. Light.Anchored = true
  3043. Light.CanCollide = false
  3044. Light.TopSurface = "SmoothNoOutlines"
  3045. Light.BottomSurface = "SmoothNoOutlines"
  3046. Light.BackSurface = "SmoothNoOutlines"
  3047. Light.FrontSurface = "SmoothNoOutlines"
  3048. Light.LeftSurface = "SmoothNoOutlines"
  3049. Light.RightSurface = "SmoothNoOutlines"
  3050. Light.Transparency = 0
  3051. Light.Size = Vector3.new(0.4,0.4,distance)
  3052. Light.Material = "Neon"
  3053. Light.BrickColor = Color
  3054. Light.CFrame = CFrame.new(Point2.CFrame.p , PrevPoint2) * CFrame.new(0,0,-distance/2)
  3055. end
  3056.  
  3057. if PrevPoint4 == nil or PrevPoint4 == "Empty" then
  3058. local distance = (Point4.CFrame.p - Point3.CFrame.p).magnitude
  3059. local Light = Instance.new("Part",Model)
  3060. Light.Anchored = true
  3061. Light.CanCollide = false
  3062. Light.TopSurface = "SmoothNoOutlines"
  3063. Light.BottomSurface = "SmoothNoOutlines"
  3064. Light.BackSurface = "SmoothNoOutlines"
  3065. Light.FrontSurface = "SmoothNoOutlines"
  3066. Light.LeftSurface = "SmoothNoOutlines"
  3067. Light.RightSurface = "SmoothNoOutlines"
  3068. Light.Transparency = 0
  3069. Light.Size = Vector3.new(0.4,0.4,distance)
  3070. Light.Material = "Neon"
  3071. Light.BrickColor = Color
  3072. Light.CFrame = CFrame.new(Point4.CFrame.p , Point3.CFrame.p) * CFrame.new(0,0,-distance/2)
  3073. elseif PrevPoint4 ~= nil then
  3074. local distance = (Point4.CFrame.p - PrevPoint4).magnitude
  3075. local Light = Instance.new("Part",Model)
  3076. Light.Anchored = true
  3077. Light.CanCollide = false
  3078. Light.TopSurface = "SmoothNoOutlines"
  3079. Light.BottomSurface = "SmoothNoOutlines"
  3080. Light.BackSurface = "SmoothNoOutlines"
  3081. Light.FrontSurface = "SmoothNoOutlines"
  3082. Light.LeftSurface = "SmoothNoOutlines"
  3083. Light.RightSurface = "SmoothNoOutlines"
  3084. Light.Transparency = 0
  3085. Light.Size = Vector3.new(0.4,0.4,distance)
  3086. Light.Material = "Neon"
  3087. Light.BrickColor = Color
  3088. Light.CFrame = CFrame.new(Point4.CFrame.p , PrevPoint4) * CFrame.new(0,0,-distance/2)
  3089. end
  3090.  
  3091.  
  3092. if PrevPoint6 == nil or PrevPoint6 == "Empty" then
  3093. local distance = (Point6.CFrame.p - Point5.CFrame.p).magnitude
  3094. local Light = Instance.new("Part",Model)
  3095. Light.Anchored = true
  3096. Light.CanCollide = false
  3097. Light.TopSurface = "SmoothNoOutlines"
  3098. Light.BottomSurface = "SmoothNoOutlines"
  3099. Light.BackSurface = "SmoothNoOutlines"
  3100. Light.FrontSurface = "SmoothNoOutlines"
  3101. Light.LeftSurface = "SmoothNoOutlines"
  3102. Light.RightSurface = "SmoothNoOutlines"
  3103. Light.Transparency = 0
  3104. Light.Size = Vector3.new(0.4,0.4,distance)
  3105. Light.Material = "Neon"
  3106. Light.BrickColor = Color
  3107. Light.CFrame = CFrame.new(Point6.CFrame.p , Point5.CFrame.p) * CFrame.new(0,0,-distance/2)
  3108. elseif PrevPoint6 ~= nil then
  3109. local distance = (Point6.CFrame.p - PrevPoint6).magnitude
  3110. local Light = Instance.new("Part",Model)
  3111. Light.Anchored = true
  3112. Light.CanCollide = false
  3113. Light.TopSurface = "SmoothNoOutlines"
  3114. Light.BottomSurface = "SmoothNoOutlines"
  3115. Light.BackSurface = "SmoothNoOutlines"
  3116. Light.FrontSurface = "SmoothNoOutlines"
  3117. Light.LeftSurface = "SmoothNoOutlines"
  3118. Light.RightSurface = "SmoothNoOutlines"
  3119. Light.Transparency = 0
  3120. Light.Size = Vector3.new(0.4,0.4,distance)
  3121. Light.Material = "Neon"
  3122. Light.BrickColor = Color
  3123. Light.CFrame = CFrame.new(Point6.CFrame.p , PrevPoint6) * CFrame.new(0,0,-distance/2)
  3124. end
  3125.  
  3126. if PrevPoint8 == nil or PrevPoint8 == "Empty" then
  3127. local distance = (Point8.CFrame.p - Point7.CFrame.p).magnitude
  3128. local Light = Instance.new("Part",Model)
  3129. Light.Anchored = true
  3130. Light.CanCollide = false
  3131. Light.TopSurface = "SmoothNoOutlines"
  3132. Light.BottomSurface = "SmoothNoOutlines"
  3133. Light.BackSurface = "SmoothNoOutlines"
  3134. Light.FrontSurface = "SmoothNoOutlines"
  3135. Light.LeftSurface = "SmoothNoOutlines"
  3136. Light.RightSurface = "SmoothNoOutlines"
  3137. Light.Transparency = 0
  3138. Light.Size = Vector3.new(0.4,0.4,distance)
  3139. Light.Material = "Neon"
  3140. Light.BrickColor = Color
  3141. Light.CFrame = CFrame.new(Point8.CFrame.p , Point7.CFrame.p) * CFrame.new(0,0,-distance/2)
  3142. elseif PrevPoint8 ~= nil then
  3143. local distance = (Point8.CFrame.p - PrevPoint8).magnitude
  3144. local Light = Instance.new("Part",Model)
  3145. Light.Anchored = true
  3146. Light.CanCollide = false
  3147. Light.TopSurface = "SmoothNoOutlines"
  3148. Light.BottomSurface = "SmoothNoOutlines"
  3149. Light.BackSurface = "SmoothNoOutlines"
  3150. Light.FrontSurface = "SmoothNoOutlines"
  3151. Light.LeftSurface = "SmoothNoOutlines"
  3152. Light.RightSurface = "SmoothNoOutlines"
  3153. Light.Transparency = 0
  3154. Light.Size = Vector3.new(0.4,0.4,distance)
  3155. Light.Material = "Neon"
  3156. Light.BrickColor = Color
  3157. Light.CFrame = CFrame.new(Point8.CFrame.p , PrevPoint8) * CFrame.new(0,0,-distance/2)
  3158. end
  3159.  
  3160. if PrevPoint10 == nil or PrevPoint10 == "Empty" then
  3161. local distance = (Point10.CFrame.p - Point9.CFrame.p).magnitude
  3162. local Light = Instance.new("Part",Model)
  3163. Light.Anchored = true
  3164. Light.CanCollide = false
  3165. Light.TopSurface = "SmoothNoOutlines"
  3166. Light.BottomSurface = "SmoothNoOutlines"
  3167. Light.BackSurface = "SmoothNoOutlines"
  3168. Light.FrontSurface = "SmoothNoOutlines"
  3169. Light.LeftSurface = "SmoothNoOutlines"
  3170. Light.RightSurface = "SmoothNoOutlines"
  3171. Light.Transparency = 0
  3172. Light.Size = Vector3.new(0.4,0.4,distance)
  3173. Light.Material = "Neon"
  3174. Light.BrickColor = Color
  3175. Light.CFrame = CFrame.new(Point10.CFrame.p , Point9.CFrame.p) * CFrame.new(0,0,-distance/2)
  3176. elseif PrevPoint10 ~= nil then
  3177. local distance = (Point10.CFrame.p - PrevPoint10).magnitude
  3178. local Light = Instance.new("Part",Model)
  3179. Light.Anchored = true
  3180. Light.CanCollide = false
  3181. Light.TopSurface = "SmoothNoOutlines"
  3182. Light.BottomSurface = "SmoothNoOutlines"
  3183. Light.BackSurface = "SmoothNoOutlines"
  3184. Light.FrontSurface = "SmoothNoOutlines"
  3185. Light.LeftSurface = "SmoothNoOutlines"
  3186. Light.RightSurface = "SmoothNoOutlines"
  3187. Light.Transparency = 0
  3188. Light.Size = Vector3.new(0.4,0.4,distance)
  3189. Light.Material = "Neon"
  3190. Light.BrickColor = Color
  3191. Light.CFrame = CFrame.new(Point10.CFrame.p , PrevPoint10) * CFrame.new(0,0,-distance/2)
  3192. end
  3193.  
  3194.  
  3195. if PrevPoint12 == nil or PrevPoint12 == "Empty" then
  3196. local distance = (Point12.CFrame.p - Point11.CFrame.p).magnitude
  3197. local Light = Instance.new("Part",Model)
  3198. Light.Anchored = true
  3199. Light.CanCollide = false
  3200. Light.TopSurface = "SmoothNoOutlines"
  3201. Light.BottomSurface = "SmoothNoOutlines"
  3202. Light.BackSurface = "SmoothNoOutlines"
  3203. Light.FrontSurface = "SmoothNoOutlines"
  3204. Light.LeftSurface = "SmoothNoOutlines"
  3205. Light.RightSurface = "SmoothNoOutlines"
  3206. Light.Transparency = 0
  3207. Light.Size = Vector3.new(0.4,0.4,distance)
  3208. Light.Material = "Neon"
  3209. Light.BrickColor = Color
  3210. Light.CFrame = CFrame.new(Point12.CFrame.p , Point11.CFrame.p) * CFrame.new(0,0,-distance/2)
  3211. elseif PrevPoint12 ~= nil then
  3212. local distance = (Point12.CFrame.p - PrevPoint12).magnitude
  3213. local Light = Instance.new("Part",Model)
  3214. Light.Anchored = true
  3215. Light.CanCollide = false
  3216. Light.TopSurface = "SmoothNoOutlines"
  3217. Light.BottomSurface = "SmoothNoOutlines"
  3218. Light.BackSurface = "SmoothNoOutlines"
  3219. Light.FrontSurface = "SmoothNoOutlines"
  3220. Light.LeftSurface = "SmoothNoOutlines"
  3221. Light.RightSurface = "SmoothNoOutlines"
  3222. Light.Transparency = 0
  3223. Light.Size = Vector3.new(0.4,0.4,distance)
  3224. Light.Material = "Neon"
  3225. Light.BrickColor = Color
  3226. Light.CFrame = CFrame.new(Point12.CFrame.p , PrevPoint12) * CFrame.new(0,0,-distance/2)
  3227. end
  3228. PreviousP = Object.CFrame.p
  3229. PreviousA1 = Arm1.CFrame.p
  3230. PreviousA2 = Arm2.CFrame.p
  3231. PreviousL1 = Leg1.CFrame.p
  3232. PreviousL2 = Leg2.CFrame.p
  3233. PrevPoint1 = Point1.CFrame.p
  3234. PrevPoint2 = Point2.CFrame.p
  3235. PrevPoint3 = Point3.CFrame.p
  3236. PrevPoint4 = Point4.CFrame.p
  3237. PrevPoint5 = Point5.CFrame.p
  3238. PrevPoint6 = Point6.CFrame.p
  3239. PrevPoint7 = Point7.CFrame.p
  3240. PrevPoint8 = Point8.CFrame.p
  3241. PrevPoint9 = Point9.CFrame.p
  3242. PrevPoint10 = Point10.CFrame.p
  3243. PrevPoint11 = Point11.CFrame.p
  3244. PrevPoint12 = Point12.CFrame.p
  3245. local Children = Model:GetChildren()
  3246. wait(1)
  3247. for i = 1,10 do
  3248. local Remove = coroutine.wrap(function()
  3249. for i = 1,#Children do
  3250. if Children[i]:IsA("Part") then
  3251. Children[i].Transparency = Children[i].Transparency + 0.1
  3252. if Children[i].Transparency >= 1 and Children[i] ~= Light and Children[i] ~= Point1 and Children[i] ~= Point2 and Children[i] ~= Point3
  3253. and Children[i] ~= Point4 and Children[i] ~= Point5 and Children[i] ~= Point6 and Children[i] ~= Point7 and Children[i] ~= Point8
  3254. and Children[i] ~= Point9 and Children[i] ~= Point10 and Children[i] ~= Point11 and Children[i] ~= Point12 then
  3255. game.Debris:AddItem(Children[i],0)
  3256. end
  3257. end
  3258. if Children[i].ClassName ~= "Part" then
  3259. game.Debris:AddItem(Children[i],0)
  3260. end
  3261. end
  3262. end)
  3263. Remove()
  3264. wait(0.05)
  3265. end
  3266. game.Debris:AddItem(Light,0)
  3267. game.Debris:AddItem(Point1,0)
  3268. game.Debris:AddItem(Point2,0)
  3269. game.Debris:AddItem(Point3,0)
  3270. game.Debris:AddItem(Point4,0)
  3271. game.Debris:AddItem(Point5,0)
  3272. game.Debris:AddItem(Point6,0)
  3273. game.Debris:AddItem(Point7,0)
  3274. game.Debris:AddItem(Point8,0)
  3275. game.Debris:AddItem(Point9,0)
  3276. game.Debris:AddItem(Point10,0)
  3277. game.Debris:AddItem(Point11,0)
  3278. game.Debris:AddItem(Point12,0)
  3279. end
  3280. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement