Dark_EccentricYT

Untitled

May 7th, 2017
2,869
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.50 KB | None | 0 0
  1. --[[
  2. #Lightbringer
  3.  
  4. Made from scratch by mr steal yo bork, idea by my friend Pablo, I recommend
  5. reading everything under this comment so you can customize
  6. it to your own likings, enjoy.
  7.  
  8. v0.8
  9. - Added "Ascended Strike"
  10. - Added sprinting particle.
  11. - Added "Ascended Meteors"
  12. v0.7
  13. - You can now ascend to next level :-)
  14. - Added "Ascended Beam"
  15. - Made damage random so it's not too op.
  16. - Fixed small Light Ball bug.
  17. --]]
  18. MouseAim = false -- false = no mouse aim, true = mouse aim (only works in normal state not in ascended)
  19. Colors = {"Deep orange", "New Yeller", "Gold", "CGA brown", "Bright red"} -- Deep orange not on anything yet, New yeller is for beam attack and other stuff, Gold is for the orbs and CGA brown is for the Light Ball.
  20. MusicID = 753037008 -- change to what u want
  21. tag = false -- put it to true if you want a "Lightbringer" tag above your head.
  22.  
  23. --DONT EDIT BELOW--
  24. busy = false
  25. floating = false
  26. ascended = false
  27. plr = game.Players.LocalPlayer
  28. char = plr.Character
  29. repeat wait() until char
  30. hum = char.Humanoid
  31. chatservice = game:GetService("Chat")
  32. rarm = char["Right Arm"]
  33. larm = char["Left Arm"]
  34. lleg = char["Left Leg"]
  35. rleg = char["Right Leg"]
  36. torso = char["Torso"]
  37. head = char["Head"]
  38. root = char["HumanoidRootPart"]
  39. Inst = Instance.new
  40. _G.attacking = false
  41. Vec = Vector3.new
  42. Angle = CFrame.Angles
  43. mouse = plr:GetMouse()
  44. running = false
  45. renderstepped = game:service("RunService").RenderStepped
  46. Attach1 = torso["Right Shoulder"]:Clone()
  47. Attach2 = torso["Left Shoulder"]:Clone()
  48. Attach3 = torso["Neck"]:Clone()
  49. Attach4 = torso["Right Hip"]:Clone()
  50. Attach5 = torso["Left Hip"]:Clone()
  51. handhitsound = Inst("Sound")
  52. handaurasound = Inst("Sound")
  53. explosionsound = Inst("Sound")
  54. explosionsound2 = Inst("Sound")
  55. handarmsound = Inst("Sound")
  56. chargesound = Inst("Sound")
  57. beamsound = Inst("Sound")
  58. beamsound.Parent = torso
  59. explosionsound.SoundId = "rbxassetid://138186576"
  60. explosionsound2.SoundId = "rbxassetid://138186576"
  61. beamsound.SoundId = "rbxassetid://415700134"
  62. chargesound.SoundId = "rbxassetid://253729308"
  63. handhitsound.SoundId = "rbxassetid://169380525"
  64. handaurasound.SoundId = "rbxassetid://154500795"
  65. handarmsound.SoundId = "rbxassetid://743521497"
  66. handarmsound.Parent = larm
  67. handhitsound.Parent = torso
  68. handaurasound.Parent = rarm
  69. explosionsound.Parent = head
  70. explosionsound2.Parent = head
  71. explosionsound.Volume = 7
  72. explosionsound2.Volume = 7
  73. beamsound.Volume = 7
  74. handaurasound.Volume = 10
  75. handhitsound.Volume = 5
  76. chargesound.Volume = 10
  77. chargesound.Parent = torso
  78. --functions
  79. function Color4(r, g, b)
  80. return Color3.new((((r + 1) / 256) - (1 / 256)), (((g + 1) / 256) - (1 / 256)),(((b + 1) / 256) - (1 / 256)))
  81. end
  82.  
  83. function dmg(part, dmg)
  84. part.Touched:connect(function(hit)
  85. if _G.attacking == true then
  86. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  87. if ehum and ehum ~= hum then
  88. if not handhitsound.Playing then
  89. handhitsound:Play()
  90. ehum:TakeDamage(dmg)
  91. tag(dmg,243,14,14,ehum.Parent:FindFirstChild("Head"))
  92. wait(1)
  93. ehum.Parent:FindFirstChild("tag"):Destroy()
  94. handhitsound:Stop()
  95. _G.attacking = false
  96. end
  97. end
  98. end
  99. end)
  100. end
  101.  
  102. function smooth(Part)
  103. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  104. end
  105. function tag(string, color1,color2,color3, parent)
  106. local txt = Inst("BillboardGui", parent.Parent)
  107. txt.Adornee = parent
  108. txt.Name = "tag"
  109. txt.Size = UDim2.new(2, 0, 1.2, 0)
  110. txt.StudsOffset = Vector3.new(-9, 8, 0)
  111. local text = Inst("TextLabel", txt)
  112. text.Size = UDim2.new(10, 0, 7, 0)
  113. text.FontSize = "Size24"
  114. text.TextScaled = true
  115. text.TextTransparency = 0
  116. text.BackgroundTransparency = 1
  117. text.TextTransparency = 0
  118. text.TextStrokeTransparency = 0
  119. text.Font = "SourceSansBold"
  120. text.TextStrokeColor3 = Color3.new(0.25,0.25,0.25)
  121. text.Text = string
  122. text.TextColor3 = Color4(color1,color2,color3)
  123. end
  124.  
  125. function startepicness()
  126. local epic = Inst("ParticleEmitter",torso)
  127. epic.Texture = "http://www.roblox.com/asset/?id=288978836"
  128. epic.Color = ColorSequence.new(Color4(255,230,0))
  129. epic.Size = NumberSequence.new(1)
  130. epic.Name = "EPICNESS"
  131. epic.LightEmission = 1
  132. epic.Transparency = NumberSequence.new(0.6)
  133. epic.EmissionDirection = "Top"
  134. epic.Acceleration = Vec(0,50,0)
  135. epic.Lifetime = NumberRange.new(0.5)
  136. epic.ZOffset = -1
  137. epic.Rate = 350
  138. epic.Speed = NumberRange.new(-20)
  139. epic.VelocitySpread = 360
  140. end
  141.  
  142. function removeepicness()
  143. torso:FindFirstChild("EPICNESS"):Destroy()
  144. end
  145. function hideepicness()
  146. torso:FindFirstChild("EPICNESS").Enabled = false
  147. end
  148.  
  149. function showepicness()
  150. torso:FindFirstChild("EPICNESS").Enabled = true
  151. end
  152.  
  153. function createflyingball(partd, pos1,pos2,pos3)
  154. partd = ball:Clone()
  155. partd.BrickColor = BrickColor.new(Colors[5])
  156. if partd:FindFirstChild("BodyPosition") then
  157. partd:FindFirstChild("BodyPosition"):Destroy()
  158. end
  159. partd.Parent = workspace
  160.  
  161. partd.Touched:connect(function(part)
  162. if part.Name ~= "specialball" then
  163. explosionsound.TimePosition = 0.4
  164. explosionsound:Play()
  165. Aura1d = Inst("ParticleEmitter",partd)
  166. Aura1d.Texture = "http://www.roblox.com/asset/?id=313951123"
  167. Aura1d.Color = ColorSequence.new(Color4(255, 255, 127))
  168. Aura1d.LightEmission = 1
  169. Aura1d.EmissionDirection = "Top"
  170. Aura1d.Lifetime = NumberRange.new(0.5)
  171. Aura1d.Rate = 200
  172. Aura1d.Rotation = NumberRange.new(-180,180)
  173. Aura1d.Size = NumberSequence.new(5)
  174. Aura1d.Speed = NumberRange.new(-120,120)
  175. Aura1d.VelocitySpread = 200
  176. Aura1d.ZOffset = 2.5
  177. wait(1)
  178. Aura1d:Destroy()
  179. explosionsound:Stop()
  180. end
  181. end)
  182. local dd = Instance.new("BodyPosition", partd)
  183.  
  184. dd.Position = head.CFrame:pointToWorldSpace(Vector3.new(pos1,pos2,pos3))
  185. wait(1)
  186. dd:Destroy()
  187. _G.attacking = true
  188. dmg(partd, math.random(50,80))
  189. pos2 = Instance.new("BodyGyro", partd)
  190. pos2.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  191. pos2.CFrame = CFrame.new(partd.Position, mouse.Hit.p)
  192.  
  193. bv2 = Instance.new("BodyVelocity")
  194. bv2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  195. bv2.Velocity = pos2.CFrame.lookVector.unit * 50
  196. bv2.Parent = partd
  197. beamsound:Play()
  198. game.Debris:AddItem(partd, 5)
  199.  
  200. end
  201.  
  202. function reloadball()
  203. for i = 1,10 do wait()
  204. ball.Size = ball.Size - Vec(0.2,0.2,0.2)
  205. end
  206. for i = 1,5 do wait()
  207. ball.Size = ball.Size + Vec(0.4,0.4,0.4)
  208. end
  209. end
  210.  
  211. -- tag and song
  212. if tag == true then
  213. tag("Lightbringer", 255,255,0,head)
  214. end
  215. ex = Inst("Sound", head)
  216. ex.SoundId = "rbxassetid://" .. MusicID
  217. ex.Volume = 1
  218. ex.Looped = true
  219. ex:Play()
  220. --[[
  221. mainpart = Inst("Part", workspace)
  222. mainpart.Transparency = 0
  223. mainpart.Name = "main"
  224. mainpart.CanCollide = false
  225. mainpart.Anchored = false
  226. mainpart.Size = Vec(0.1,0.1,0.1)
  227. mainpart.Position = Vec(-14, 0.5, 1)mainpart = Inst("Part", workspace)
  228. mainpart.Transparency = 0
  229. mainpart.Name = "main"
  230. mainpart.CanCollide = false
  231. mainpart.Anchored = false
  232. mainpart.Size = Vec(0.1,0.1,0.1)
  233.  
  234. mainweld = Inst("Weld", workspace)
  235. mainweld.Part1 = head
  236. mainweld.Part0 = mainpart
  237. mainweld.C1 = CFrame.new(0, 2.5, 0)
  238. --]]
  239. --gui
  240. local gui = Inst("ScreenGui", plr.PlayerGui)
  241. local frame = Inst("ScrollingFrame")
  242. local TextLabel = Inst("TextLabel")
  243. local line = Inst("Frame")
  244. local handblast = Inst("TextLabel")
  245. local sprint = Inst("TextLabel")
  246. local openandclose = Inst("TextButton")
  247. local ascendedmeteors = Inst("TextLabel")
  248. local sprint = Inst("TextLabel")
  249. local lightball = Inst("TextLabel")
  250. local ascend = Inst("TextLabel")
  251. local whileascended = Inst("TextLabel")
  252. local ascendedbeam = Inst("TextLabel")
  253. local ascendedstrike = Inst("TextLabel")
  254. whileascended.Name = "whileascended"
  255. whileascended.Parent = frame
  256. whileascended.BackgroundColor3 = Color3.new(1, 1, 1)
  257. whileascended.BackgroundTransparency = 1
  258. whileascended.Position = UDim2.new(0, 0, 0, 160)
  259. whileascended.Size = UDim2.new(0, 179, 0, 19)
  260. whileascended.Font = Enum.Font.SourceSans
  261. whileascended.FontSize = Enum.FontSize.Size18
  262. whileascended.Text = "-While Ascended-"
  263. whileascended.TextColor3 = Color3.new(0.333333, 1, 0.498039)
  264. whileascended.TextSize = 18
  265. ascendedbeam.Name = "ascendedbeam"
  266. ascendedbeam.Parent = frame
  267. ascendedbeam.BackgroundColor3 = Color3.new(1, 1, 1)
  268. ascendedbeam.BackgroundTransparency = 1
  269. ascendedbeam.Position = UDim2.new(0, 0, 0, 183)
  270. ascendedbeam.Size = UDim2.new(0, 188, 0, 19)
  271. ascendedbeam.Font = Enum.Font.SourceSans
  272. ascendedbeam.FontSize = Enum.FontSize.Size18
  273. ascendedbeam.Text = "LCLICK - Ascended Beam"
  274. ascendedbeam.TextColor3 = Color3.new(0.921569, 1, 0.184314)
  275. ascendedbeam.TextSize = 18
  276. ascendedstrike.Name = "ascendedstrike"
  277. ascendedstrike.Parent = frame
  278. ascendedstrike.BackgroundColor3 = Color3.new(1, 1, 1)
  279. ascendedstrike.BackgroundTransparency = 1
  280. ascendedstrike.Position = UDim2.new(0, 0, 0, 209)
  281. ascendedstrike.Size = UDim2.new(0, 188, 0, 19)
  282. ascendedstrike.Font = Enum.Font.SourceSans
  283. ascendedstrike.FontSize = Enum.FontSize.Size18
  284. ascendedstrike.Text = "Z - Ascended Strike"
  285. ascendedstrike.TextColor3 = Color3.new(0.921569, 1, 0.184314)
  286. ascendedstrike.TextSize = 18
  287. lightball.Name = "lightball"
  288. lightball.Parent = frame
  289. lightball.BackgroundColor3 = Color3.new(1, 1, 1)
  290. lightball.BackgroundTransparency = 1
  291. lightball.Position = UDim2.new(0, 0, 0, 87)
  292. lightball.Size = UDim2.new(0, 179, 0, 19)
  293. lightball.Font = Enum.Font.SourceSans
  294. lightball.FontSize = Enum.FontSize.Size18
  295. lightball.Text = "X - Light Ball"
  296. lightball.TextColor3 = Color3.new(0.921569, 1, 0.184314)
  297. lightball.TextSize = 18
  298. ascendedmeteors.Name = "ascendedmeteors"
  299. ascendedmeteors.Parent = frame
  300. ascendedmeteors.BackgroundColor3 = Color3.new(1, 1, 1)
  301. ascendedmeteors.BackgroundTransparency = 1
  302. ascendedmeteors.Position = UDim2.new(0, 6, 0, 241)
  303. ascendedmeteors.Size = UDim2.new(0, 188, 0, 19)
  304. ascendedmeteors.Font = Enum.Font.SourceSans
  305. ascendedmeteors.FontSize = Enum.FontSize.Size18
  306. ascendedmeteors.Text = "Z - Ascended Meteors"
  307. ascendedmeteors.TextColor3 = Color3.new(0.921569, 1, 0.184314)
  308. ascendedmeteors.TextSize = 18
  309. ascend.Name = "ascend"
  310. ascend.Parent = frame
  311. ascend.BackgroundColor3 = Color3.new(1, 1, 1)
  312. ascend.BackgroundTransparency = 1
  313. ascend.Position = UDim2.new(0, 0, 0, 114)
  314. ascend.Size = UDim2.new(0, 188, 0, 19)
  315. ascend.Font = Enum.Font.SourceSans
  316. ascend.FontSize = Enum.FontSize.Size18
  317. ascend.Text = "V - Ascend"
  318. ascend.TextColor3 = Color3.new(0.921569, 1, 0.184314)
  319. ascend.TextSize = 18
  320. sprint.Name = "sprint"
  321. sprint.Parent = frame
  322. sprint.BackgroundColor3 = Color3.new(1, 1, 1)
  323. sprint.BackgroundTransparency = 1
  324. sprint.Position = UDim2.new(0, 0, 0, 57)
  325. sprint.Size = UDim2.new(0, 179, 0, 19)
  326. sprint.Font = Enum.Font.SourceSans
  327. sprint.FontSize = Enum.FontSize.Size18
  328. sprint.Text = "SHIFT(hold) - Sprint"
  329. sprint.TextColor3 = Color3.new(0.921569, 1, 0.184314)
  330. sprint.TextSize = 18
  331. openandclose.Name = "open and close"
  332. openandclose.Parent = gui
  333. openandclose.BackgroundColor3 = Color3.new(0.67451, 0.67451, 0.67451)
  334. openandclose.BackgroundTransparency = 0.69999998807907
  335. openandclose.Position = UDim2.new(0, 0, 0, 601)
  336. openandclose.Size = UDim2.new(0, 50, 0, 50)
  337. openandclose.Font = Enum.Font.Code
  338. openandclose.FontSize = Enum.FontSize.Size60
  339. openandclose.Text = ">"
  340. openandclose.TextColor3 = Color3.new(0.0235294, 0.0509804, 0.207843)
  341. openandclose.TextSize = 60
  342. frame.Name = "frame"
  343. frame.Parent = gui
  344. frame.BackgroundColor3 = Color3.new(0.113725, 0.27451, 1)
  345. frame.BackgroundTransparency = 0.30000001192093
  346. frame.BorderColor3 = Color3.new(1, 0.666667, 0)
  347. frame.BorderSizePixel = 4
  348. frame.Position = UDim2.new(0, 0, 0, 423)
  349. frame.Visible = false
  350. frame.Size = UDim2.new(0, 199, 0, 133)
  351. TextLabel.Parent = frame
  352. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  353. TextLabel.BackgroundTransparency = 1
  354. TextLabel.Size = UDim2.new(0, 179, 0, 19)
  355. TextLabel.Font = Enum.Font.SourceSans
  356. TextLabel.FontSize = Enum.FontSize.Size18
  357. TextLabel.Text = "Controls for Lightbringer"
  358. TextLabel.TextSize = 18
  359. line.Name = "line"
  360. line.Parent = frame
  361. line.BackgroundColor3 = Color3.new(1, 1, 1)
  362. line.BorderSizePixel = 0
  363. line.Position = UDim2.new(0, 0, 0, 21)
  364. line.Size = UDim2.new(0, 183, 0, 1)
  365. handblast.Name = "handblast"
  366. handblast.Parent = frame
  367. handblast.BackgroundColor3 = Color3.new(1, 1, 1)
  368. handblast.BackgroundTransparency = 1
  369. handblast.Position = UDim2.new(0, 0, 0, 29)
  370. handblast.Size = UDim2.new(0, 179, 0, 19)
  371. handblast.Font = Enum.Font.SourceSans
  372. handblast.FontSize = Enum.FontSize.Size18
  373. handblast.Text = "Z - Hand Blast"
  374. handblast.TextColor3 = Color3.new(0.921569, 1, 0.184314)
  375. handblast.TextSize = 18
  376. openandclose.MouseButton1Down:connect(function()
  377. if openandclose.Text == ">" then
  378. frame.Visible = true
  379. openandclose.Text = "<"
  380. else
  381. frame.Visible = false
  382. openandclose.Text = ">"
  383. end
  384. end)
  385. --
  386. mouse.KeyDown:connect(function(key)
  387. if key:lower() == "z" then
  388. if not busy == true and not ascended then
  389. --same
  390.  
  391. busy = true
  392. Rweld = Inst("Weld", torso)
  393. Rweld.Part0 = Rweld.Parent
  394. Rweld.Part1 = char["Right Arm"]
  395. Lweld = Inst("Weld", torso)
  396. Lweld.Part0 = Lweld.Parent
  397. Lweld.Part1 = char["Left Arm"]
  398. Rweld.C0 = CFrame.new(-1.5,0,0) * Angle(0,0,0)
  399. Lweld.C0 = CFrame.new(1.5,0,0) * Angle(0,0,0)
  400. Aura1 = Inst("ParticleEmitter",torso)
  401. Aura1.Texture = "rbxassetid://305563617"
  402. Aura1.Color = ColorSequence.new(Color4(255, 170, 0))
  403. Aura1.LightEmission = 1
  404. Aura1.EmissionDirection = "Top"
  405. Aura1.Lifetime = NumberRange.new(0.5)
  406. Aura1.Rate = 100
  407. Aura1.Size = NumberSequence.new(3)
  408. Aura1.Speed = NumberRange.new(8)
  409. Aura1.VelocitySpread = 75
  410. Aura1.ZOffset = -2
  411. Aura1ef = Inst("ParticleEmitter",rarm)
  412. Aura1ef.Texture = "http://www.roblox.com/asset/?id=288978836"
  413. Aura1ef.Color = ColorSequence.new(Color4(255,255,0))
  414. Aura1ef.LightEmission = 1
  415. Aura1ef.EmissionDirection = "Top"
  416. Aura1ef.Lifetime = NumberRange.new(0.5)
  417. Aura1ef.Rate = 8
  418. Aura1ef.Speed = NumberRange.new(-20)
  419. Aura1ef.VelocitySpread = 20
  420. Aura1ef2 = Inst("ParticleEmitter",larm)
  421. Aura1ef2.Texture = "http://www.roblox.com/asset/?id=288978836"
  422. Aura1ef2.Color = ColorSequence.new(Color4(255,255,0))
  423. Aura1ef2.LightEmission = 1
  424. Aura1ef2.EmissionDirection = "Top"
  425. Aura1ef2.Lifetime = NumberRange.new(0.5)
  426. Aura1ef2.Rate = 8
  427. Aura1ef2.Speed = NumberRange.new(-20)
  428. Aura1ef2.VelocitySpread = 20
  429. chatservice:Chat(head, "HAAAAAAAAAAA!", "Red")
  430. if not handaurasound.Playing then
  431. handaurasound:Play()
  432. end
  433. wait(0.5)
  434. chatservice:Chat(head, "ROTATE!", "Red")
  435. for i = 1,41.999 do wait()
  436. Rweld.C0 = Rweld.C0 * Angle(0.50,0,0)
  437. Lweld.C0 = Lweld.C0 * Angle(0.50,0,0)
  438. end
  439. chatservice:Chat(head, "CHARGE!", "Blue")
  440. wait(2)
  441. chatservice:Chat(head, "SHOOT!", "Green")
  442. if not handarmsound.Playing then
  443. handarmsound:Play()
  444. end
  445. Aura1ef2.Rate = 50
  446. Aura1ef.Rate = 50
  447. _G.attacking = true
  448. dmg(rarm,math.random(50,80))
  449. dmg(larm,math.random(50,80))
  450. --emitter2 = Inst("ParticleEmitter",larm)
  451. for i = 1,20 do wait()
  452. Rweld.C0 = Rweld.C0 - Vec(0,0,1.5)
  453. Lweld.C0 = Lweld.C0 - Vec(0,0,1.5)
  454. end
  455. wait(1)
  456. for i = 1,20 do wait()
  457. Rweld.C0 = Rweld.C0 + Vec(0,0,1.5)
  458. Lweld.C0 = Lweld.C0 + Vec(0,0,1.5)
  459. end
  460. Aura1.Size = NumberSequence.new(2.5)
  461. wait(0.5)
  462. Aura1.Size = NumberSequence.new(2)
  463. wait(0.5)
  464. Aura1.Size = NumberSequence.new(1)
  465. wait(0.5)
  466. Aura1:Destroy()
  467. Aura1ef2:Destroy()
  468. Aura1ef:Destroy()
  469. for i = 1,41.999 do wait()
  470. Rweld.C0 = Rweld.C0 * Angle(-0.50,0,0)
  471. Lweld.C0 = Lweld.C0 * Angle(-0.50,0,0)
  472. end
  473. wait(0.5)
  474. Attach1.Parent = torso
  475. Attach2.Parent = torso
  476. Rweld:Remove()
  477. Lweld:Remove()
  478. busy = false
  479. elseif not busy == true and ascended == true then
  480. busy = true
  481.  
  482. --hide epicness
  483. hideepicness()
  484.  
  485. --create balls
  486.  
  487. chatservice:Chat(head, "Ascended Strike.", "Red")
  488.  
  489. wait(1)
  490. reloadball()
  491. createflyingball(_G.ball2, -5,5,0)
  492. reloadball()
  493. createflyingball(_G.ball2, 5,5,0)
  494.  
  495. showepicness()
  496. busy = false
  497. end
  498. end
  499. end)
  500. Aura1d = Inst("ParticleEmitter",rleg)
  501. Aura1d.Texture = "http://www.roblox.com/asset/?id=199456287"
  502. Aura1d.Color = ColorSequence.new(Color4(255, 170, 0))
  503. Aura1d.LightEmission = 1
  504. Aura1d.EmissionDirection = "Top"
  505. Aura1d.Lifetime = NumberRange.new(0.5)
  506. Aura1d.Transparency = NumberSequence.new(0.5)
  507. Aura1d.Rate = 250
  508. Aura1d.Size = NumberSequence.new(0.2)
  509. Aura1d.Speed = NumberRange.new(0)
  510. Aura1d.Enabled = false
  511. Aura1d.VelocitySpread = 0
  512. Aura1d.ZOffset = 0.5
  513. Aura2d = Inst("ParticleEmitter",lleg)
  514. Aura2d.Texture = "http://www.roblox.com/asset/?id=199456287"
  515. Aura2d.Color = ColorSequence.new(Color4(255, 170, 0))
  516. Aura2d.LightEmission = 1
  517. Aura2d.EmissionDirection = "Top"
  518. Aura2d.Enabled = false
  519. Aura2d.Transparency = NumberSequence.new(0.5)
  520. Aura2d.Lifetime = NumberRange.new(0.5)
  521. Aura2d.Rate = 250
  522. Aura2d.Size = NumberSequence.new(0.2)
  523. Aura2d.Speed = NumberRange.new(0)
  524. Aura2d.VelocitySpread = 0
  525. Aura2d.ZOffset = 0.5
  526. function onsprintpress(inputObject, gameProcessedEvent)
  527. if inputObject.KeyCode == Enum.KeyCode.LeftShift then
  528. for i = 1,5 do
  529. game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  530. wait()
  531. end
  532. Aura1d.Enabled = true
  533. Aura2d.Enabled = true
  534. hum.WalkSpeed = 20 -- Change To Any Higgher Number To Go Faster
  535. end
  536. end
  537. function onsprintrelease(inputObject, gameProcessedEvent)
  538. if inputObject.KeyCode == Enum.KeyCode.LeftShift then
  539. hum.WalkSpeed = 16
  540. for i = 1,5 do
  541. game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  542. wait()
  543. end
  544. Aura2d.Enabled = false
  545. Aura1d.Enabled = false
  546. end
  547. end
  548.  
  549. mouse.KeyDown:connect(function(key2)
  550. if key2:lower() == "x" then
  551. if not busy == true and not ascended then
  552. busy = true
  553. Rweld = Inst("Weld", torso)
  554. Rweld.Part0 = Rweld.Parent
  555. Rweld.Part1 = char["Right Arm"]
  556. Lweld = Inst("Weld", torso)
  557. Lweld.Part0 = Lweld.Parent
  558. Lweld.Part1 = char["Left Arm"]
  559. Rweld.C0 = CFrame.new(-1.5,0,0) * Angle(0,0,0)
  560. Lweld.C0 = CFrame.new(1.5,0,0) * Angle(0,0,0)
  561. Aura1 = Inst("ParticleEmitter",torso)
  562. Aura1.Texture = "rbxassetid://305563617"
  563. Aura1.Color = ColorSequence.new(Color4(255, 170, 0))
  564. Aura1.LightEmission = 1
  565. Aura1.EmissionDirection = "Top"
  566. Aura1.Lifetime = NumberRange.new(0.5)
  567. Aura1.Rate = 100
  568. Aura1.Size = NumberSequence.new(3)
  569. Aura1.Speed = NumberRange.new(8)
  570. Aura1.VelocitySpread = 75
  571. Aura1.ZOffset = -2
  572. chatservice:Chat(head, "Take this!", "Red")
  573.  
  574. if not handaurasound.Playing then
  575. handaurasound:Play()
  576. end
  577.  
  578. _G.attacking = true
  579. -- charge animation
  580. for i = 1,3 do wait()
  581. Rweld.C0 = Rweld.C0 * Angle(0.53,0,0)
  582. Lweld.C0 = Lweld.C0 * Angle(0.53,0,0)
  583. end
  584. for i = 1,3 do wait()
  585. Rweld.C0 = Rweld.C0 + Vec(0,0.20,0)
  586. Lweld.C0 = Lweld.C0 + Vec(0,0.20,0)
  587. end
  588. for i = 1,3 do wait()
  589. Rweld.C0 = Rweld.C0 - Vec(0,0,0.20)
  590. Lweld.C0 = Lweld.C0 - Vec(0,0,0.20)
  591. end
  592. for i = 1,3 do wait()
  593. Rweld.C0 = Rweld.C0 * Angle(0,0,0.10)
  594. Lweld.C0 = Lweld.C0 * Angle(0,0,-0.10)
  595. end
  596.  
  597. wait(.5)
  598. chatservice:Chat(head, "CHARGE!", "Blue")
  599. if not chargesound.Playing then
  600. chargesound:Play()
  601. end
  602. wait(.5)
  603. -- do stuff
  604. beammain = Inst("Part", workspace)
  605. torso.Anchored = true
  606. beammain.Shape = "Ball"
  607. smooth(beammain)
  608. beammain.CanCollide = false
  609. beammain.BrickColor = BrickColor.new(Colors[2])
  610. beammain.Material = "Neon"
  611. beammain.Anchored = true
  612. beammain.Size = Vec(1,1,1)
  613. beammain.Position = torso.Position
  614. beammain.CFrame = beammain.CFrame - Vec(0, 0.8, 0)
  615. for i = 1,30 do wait()
  616. beammain.Size = beammain.Size + Vec(0.09,0.09,0.09)
  617. end
  618. beammain.Anchored = false
  619. local bv = Inst("BodyVelocity")
  620. bv.MaxForce = Vector3.new(1e8,1e8,1e8)
  621. bv.Velocity = head.CFrame.lookVector * 3
  622. bv.Parent = beammain
  623. if MouseAim == true then
  624. chatservice:Chat(head, "Focus, Aim...", "Green")
  625. else
  626. chatservice:Chat(head, "Focus...", "Green")
  627. end
  628. wait(1)
  629. bv:Destroy()
  630. beammain.Anchored = true
  631. wait(0.5)
  632. chargesound:Stop()
  633. if not beamsound.Playing then
  634. beamsound:Play()
  635. end
  636. chatservice:Chat(head, "LIGHT BALL!", "Green")
  637. dmg(beammain,math.random(300,500))
  638. --beammain.Touched:connect(function(hit)
  639. --local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  640. --if not ehum then
  641. --some more weird particle stuff idk might add
  642. --end
  643. --end)
  644. local bv = Inst("BodyVelocity")
  645. beammain.Anchored = false
  646. bv.MaxForce = Vector3.new(1e8,1e8,1e8)
  647. if MouseAim == true then
  648. bv.Velocity = mouse.Hit.lookVector * 50
  649. else
  650. bv.Velocity = torso.CFrame.lookVector * 50
  651. end
  652. bv.Parent = beammain
  653. game.Debris:AddItem(beammain, 10)
  654. torso.Anchored = false
  655. --for i = 1,20 do wait()
  656. --beammain.Position = beammain.Position - Vec(0,0,0.1)
  657. --end
  658. light1 = Inst("ParticleEmitter", beammain)
  659. light1.Color = ColorSequence.new(Color4(255, 255, 127))
  660. light1.LightEmission = 1
  661. light1.Size = NumberSequence.new(2)
  662. light1.Texture = "http://www.roblox.com/asset/?id=199456287"
  663. light1.ZOffset = 2.5
  664. light1.LockedToPart = true
  665. light1.EmissionDirection = "Front"
  666. light1.Lifetime = NumberRange.new(0.75)
  667. light1.Speed = NumberRange.new(15)
  668. light1.Rate = 50
  669. -- back animation
  670. for i = 1,3 do wait()
  671. Rweld.C0 = Rweld.C0 * Angle(0,0,-0.10)
  672. Lweld.C0 = Lweld.C0 * Angle(0,0,0.10)
  673. end
  674. for i = 1,3 do wait()
  675. Rweld.C0 = Rweld.C0 - Vec(0,0,-0.20)
  676. Lweld.C0 = Lweld.C0 - Vec(0,0,-0.20)
  677. end
  678. for i = 1,3 do wait()
  679. Rweld.C0 = Rweld.C0 + Vec(0,-0.20,0)
  680. Lweld.C0 = Lweld.C0 + Vec(0,-0.20,0)
  681. end
  682. for i = 1,3 do wait()
  683. Rweld.C0 = Rweld.C0 * Angle(-0.53,0,0)
  684. Lweld.C0 = Lweld.C0 * Angle(-0.53,0,0)
  685. end
  686. beamsound:Stop()
  687. --Rweld.C0 = CFrame.new(-1.5,0,0) * Angle(0,0,0)
  688. --Lweld.C0 = CFrame.new(1.5,0,0) * Angle(0,0,0)
  689. -- remove welds and stuff
  690. Aura1.Size = NumberSequence.new(2.5)
  691. wait(0.5)
  692. Aura1.Size = NumberSequence.new(2)
  693. wait(0.5)
  694. Aura1.Size = NumberSequence.new(1)
  695. wait(0.5)
  696. Aura1:Destroy()
  697. if handaurasound.Playing then
  698. handaurasound:Stop()
  699. end
  700. wait(0.1)
  701. Attach1.Parent = torso
  702. Attach2.Parent = torso
  703. Rweld:Remove()
  704. Lweld:Remove()
  705. busy = false
  706. elseif not busy == true and ascended == true then
  707. busy = true
  708. hideepicness()
  709.  
  710. --make orbs fly up
  711.  
  712. chatservice:Chat(head, "Ascended Meteors.", "Red")
  713. reloadball()
  714. createflyingball(balltest1, 10,15,0)
  715. reloadball()
  716. createflyingball(balltest2, 5,15,0)
  717. reloadball()
  718. createflyingball(balltest1, 0,15,0)
  719. reloadball()
  720. createflyingball(balltest1, -5,15,0)
  721. reloadball()
  722. createflyingball(balltest1, -10,15,0)
  723.  
  724. showepicness()
  725. busy = false
  726. end
  727. end
  728. end)
  729.  
  730. function createorbs()
  731. _G.orb1 = Inst("Part", char)
  732. _G.orb1.Name = "orb"
  733. _G.orb1.Shape = "Ball"
  734. _G.orb1.Material = "Neon"
  735. _G.orb1.CanCollide = false
  736. _G.orb1.Position = torso.Position + Vec(0,5,0)
  737. _G.orb1.BrickColor = BrickColor.new(Colors[3])
  738. _G.orb1.Transparency = 0.25
  739. _G.orb1.Size = Vector3.new(2, 2, 2)
  740. _G.orb2 = _G.orb1:Clone()
  741. _G.orb2.Parent = char
  742. _G.orb3 = _G.orb2:Clone()
  743. _G.orb3.Parent = char
  744. _G.orb4 = _G.orb3:Clone()
  745. _G.orb4.Parent = char
  746. local bp1 = Inst("BodyPosition", _G.orb1)
  747. local bp2 = Inst("BodyPosition", _G.orb2)
  748. local bp3 = Inst("BodyPosition", _G.orb3)
  749. local bp4 = Inst("BodyPosition", _G.orb4)
  750. game:service'RunService'.RenderStepped:connect(function()
  751. bp1.Position = head.CFrame:pointToWorldSpace(Vector3.new(4, -1, 0))
  752. bp2.Position = head.CFrame:pointToWorldSpace(Vector3.new(-4, -1, 0))
  753. bp3.Position = head.CFrame:pointToWorldSpace(Vector3.new(-0, -1, -4))
  754. bp4.Position = head.CFrame:pointToWorldSpace(Vector3.new(-0, -1, 4))
  755. end)
  756. end
  757.  
  758. function removeorbs()
  759. for _,orbs in pairs(char:children()) do
  760. if orbs:IsA("Part") and orbs.Name == "orb" then
  761. orbs:Destroy()
  762. end
  763. end
  764. end
  765.  
  766. createorbs()
  767.  
  768. mouse.KeyDown:connect(function(key3)
  769. if key3:lower() == "v" then
  770. if not busy == true and not ascended then
  771. busy = true
  772.  
  773. --epic shit.
  774. if ex.Playing == true then
  775. ex:Stop()
  776. ex2 = Inst("Sound", head)
  777. ex2.SoundId = "rbxassetid://753037008"
  778. ex2.Volume = 5
  779. ex2.TimePosition = 180
  780. ex2.Looped = true
  781. ex2:Play()
  782. end
  783. --animate
  784. chatservice:Chat(head, "This has gone on for long enough.", "Red")
  785. wait(1)
  786. chatservice:Chat(head, "I'm gonna show you my last form.", "Red")
  787. wait(2)
  788. chatservice:Chat(head, "ASCEND!", "Red")
  789. wait(0.5)
  790. handaurasound:Play()
  791. handaurasound.Looped = true
  792.  
  793. Aura1 = Inst("ParticleEmitter",torso)
  794. Aura1.Texture = "rbxassetid://305563617"
  795. Aura1.Color = ColorSequence.new(Color4(255, 170, 0))
  796. Aura1.LightEmission = 1
  797. Aura1.EmissionDirection = "Top"
  798. Aura1.Lifetime = NumberRange.new(0.5)
  799. Aura1.Rate = 100
  800. Aura1.Size = NumberSequence.new(3)
  801. Aura1.Speed = NumberRange.new(8)
  802. Aura1.VelocitySpread = 75
  803. Aura1.ZOffset = -2
  804. Rweld = Inst("Weld", torso)
  805. Rweld.Part0 = Rweld.Parent
  806. Rweld.Part1 = char["Right Arm"]
  807. Lweld = Inst("Weld", torso)
  808. Lweld.Part0 = Lweld.Parent
  809. Lweld.Part1 = char["Left Arm"]
  810. RLweld = Inst("Weld", torso)
  811. RLweld.Part0 = RLweld.Parent
  812. RLweld.Part1 = rleg
  813. LLweld = Inst("Weld", torso)
  814. LLweld.Part0 = LLweld.Parent
  815. LLweld.Part1 = lleg
  816. Hweld = Inst("Weld", torso)
  817. Hweld.Part0 = Hweld.Parent
  818. Hweld.Part1 = head
  819. Rweld.C0 = CFrame.new(-1.5,0,0) * Angle(0,0,0)
  820. Lweld.C0 = CFrame.new(1.5,0,0) * Angle(0,0,0)
  821. RLweld.C0 = CFrame.new(0.5,-2,0) * Angle(0,0,0)
  822. LLweld.C0 = CFrame.new(-0.5,-2,0) * Angle(0,0,0)
  823. Hweld.C0 = CFrame.new(0,1.5,0) * Angle(0,0,0)
  824. for i = 0,1 do wait()
  825. Rweld.C0 = Rweld.C0 * Angle(0,0,-0.03)
  826. Lweld.C0 = Lweld.C0 * Angle(0,0,0.03)
  827. end
  828.  
  829. --float
  830. local bp = Inst("BodyPosition", root)
  831. bp.Position = root.Position
  832. local ad = root.Position
  833. local huge = math.huge
  834. bp.MaxForce = Vec(huge,huge,huge)
  835. for i = 0, 5, .06 do wait()
  836. bp.Position = Vec(ad.x, ad.y+i, ad.z)
  837. end
  838.  
  839. --orbs gather
  840.  
  841. for i = 1,10 do wait()
  842. _G.orb1.Transparency = _G.orb1.Transparency + 0.1
  843. _G.orb2.Transparency = _G.orb2.Transparency + 0.1
  844. _G.orb3.Transparency = _G.orb3.Transparency + 0.1
  845. _G.orb4.Transparency = _G.orb4.Transparency + 0.1
  846. end
  847. wait(1)
  848. removeorbs()
  849. wait(2)
  850. --make special ball
  851. ball = Inst("Part", workspace)
  852. ball.BrickColor = BrickColor.new(Colors[4])
  853. ball.CanCollide = false
  854. ball.Name = "specialball"
  855. ball.Size = Vec(2.5,2.5,2.5)
  856. ball.Shape = "Ball"
  857. ball.Transparency = 1
  858. ball.Position = torso.Position
  859. ball.Material = "Neon"
  860. ball.Position = torso.Position
  861. local bv = Inst("BodyVelocity")
  862. bv.MaxForce = Vector3.new(1e8,1e8,1e8)
  863. bv.Velocity = head.CFrame.lookVector * 3
  864. bv.Parent = ball
  865. wait(2)
  866. bv:Destroy()
  867. ball.Anchored = true
  868. smooth(ball)
  869.  
  870. particle = Inst("ParticleEmitter", ball)
  871. particle.Texture = "http://www.roblox.com/asset/?id=199456287"
  872. particle.Color = ColorSequence.new(Color4(255,255,0))
  873. particle.LightEmission = 1
  874. particle.EmissionDirection = "Top"
  875. particle.Color = ColorSequence.new(Color4(255,255,127))
  876. particle.Size = NumberSequence.new(0.1)
  877. particle.Lifetime = NumberRange.new(0.75)
  878. particle.Rate = 250.000
  879. particle.ZOffset = 2.500
  880. particle.Speed = NumberRange.new(0)
  881. for i = 1,10 do wait()
  882. ball.Transparency = ball.Transparency - 0.1
  883. end
  884. wait(3)
  885. ball.Anchored = false
  886. local ballbp = Instance.new("BodyPosition", ball)
  887.  
  888. renderstepped:connect(function()
  889. ballbp.Position = head.CFrame:pointToWorldSpace(Vector3.new(0, 5, 0))
  890. end)
  891. wait(1)
  892.  
  893. chatservice:Chat(head, "I am ready.", "Green")
  894. wait(1.5)
  895. -- down we go
  896. asd = true
  897. lleg.Touched:connect(function(hit)
  898. if asd == true then
  899. bp:Destroy()
  900. asd = false
  901. end
  902. end)
  903.  
  904. if bp then
  905. for i = 0, -5, -.6 do wait()
  906. bp.Position = Vec(ad.x, ad.y+i, ad.z)
  907. end
  908. end
  909.  
  910. Attach1.Parent = torso
  911. Attach2.Parent = torso
  912. Attach3.Parent = torso
  913. Attach4.Parent = torso
  914. Attach5.Parent = torso
  915. Aura1:Destroy()
  916. Rweld:Remove()
  917. Lweld:Remove()
  918. RLweld:Remove()
  919. LLweld:Remove()
  920. Hweld:Remove()
  921. startepicness()
  922. --
  923. ascended = true
  924. busy = false
  925. elseif ascended == true and busy == false then
  926. chatservice:Chat(head, "Phew, better turn this off.", "Green")
  927. wait(1)
  928. removeepicness()
  929. for i = 1,10 do wait()
  930. ball.Transparency = ball.Transparency + 0.1
  931. end
  932. ball:Destroy()
  933. createorbs()
  934. handaurasound:Stop()
  935. handaurasound.Looped = false
  936. ascended = false
  937. end
  938. end
  939. end)
  940.  
  941. mouse.Button1Down:connect(function()
  942. if not busy == true and ascended == true then
  943. busy = true
  944. beamsound:Play()
  945. --reload
  946. reloadball()
  947. --making ball
  948.  
  949. ballbeam = ball:Clone()
  950. ballbeam.Size = Vec(1.5,1.5,1.5)
  951. ballbeam.CFrame = ball.CFrame
  952. ballbeam.Parent = workspace
  953. _G.attacking = true
  954. dmg(ballbeam, 80)
  955. --make that shit fly
  956. pos = Instance.new("BodyGyro", ballbeam)
  957. pos.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  958. pos.CFrame = CFrame.new(ballbeam.Position, mouse.Hit.p)
  959. bv = Instance.new("BodyVelocity")
  960. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  961. bv.Velocity = pos.CFrame.lookVector.unit * 50
  962. bv.Parent = ballbeam
  963. game.Debris:AddItem(ballbeam, 5)
  964. busy = false
  965. beamsound:Stop()
  966. end
  967. end)
  968.  
  969. --[[
  970. TODO :
  971. Make the Z attack where it clones the main balls 2 times, shoots both of them and when they hit
  972. they make a huge explosion.
  973. --]]
  974.  
  975. game:GetService("UserInputService").InputEnded:connect(onsprintrelease)
  976. game:GetService("UserInputService").InputBegan:connect(onsprintpress)
  977.  
  978. -->======================END OF SCRIPT======================<--
Add Comment
Please, Sign In to add comment