Advertisement
lafur

Untitled

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