Advertisement
EmeraldIT

Untitled

Apr 13th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.46 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(Player,io)
  42. if Player~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=mouse.Hit,Target=mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=mouse.Hit or t~=mouse.Target then
  80. h,t=mouse.Hit,mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. --==//==--
  146. local Player = owner
  147. local Char = Player.Character
  148. local mouse = Player:GetMouse()
  149. local Humanoid = Char:findFirstChild("Humanoid")
  150. local Torso = Char:findFirstChild("Torso")
  151. ----------------------------------------------------------
  152. ------------------------
  153. local Head = Char.Head
  154. local ra = Char:findFirstChild("Right Arm")
  155. local la = Char:findFirstChild("Left Arm")
  156. local rl = Char:findFirstChild("Right Leg")
  157. local ll = Char:findFirstChild("Left Leg")
  158. local rs = Torso:findFirstChild("Right Shoulder")
  159. local ls = Torso:findFirstChild("Left Shoulder")
  160. local rh = Torso:findFirstChild("Right Hip")
  161. local lh = Torso:findFirstChild("Left Hip")
  162. local neck = Torso:findFirstChild("Neck")
  163. local rp = Char:findFirstChild("HumanoidRootPart")
  164. rp.Archivable = true
  165. local rj = rp:findFirstChild("RootJoint")
  166. rj.Archivable = true
  167. local animate = Char:findFirstChild("Animate")
  168. local rootpart = Char:findFirstChild("HumanoidRootPart")
  169. local Camera = workspace.CurrentCamera
  170. local CF = CFrame.new
  171. local components = CF().components
  172. local magicclrs = {"Really blue", "Really black", "Institutional white"}
  173. rootpart.CanCollide = false
  174. Humanoid:findFirstChild("Animator"):Destroy()
  175. Humanoid.CameraOffset = Vector3.new(0, 2, 0)
  176. Humanoid.JumpPower = 60
  177. game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
  178. if jump == "Jump" then
  179. Humanoid.Jump = false
  180. end
  181. end)
  182.  
  183.  
  184. local tors = owner.Character.Torso
  185. local arm = owner.Character:findFirstChild("Left Arm")
  186. local brm = owner.Character:findFirstChild("Right Arm")
  187. local Humaniod = owner.Character:findFirstChild("Humanoid")
  188. local human = Humaniod
  189. local player = owner
  190. local Char = owner.Character
  191. local mouse = player:GetMouse()
  192. human.MaxHealth = math.huge
  193. human.Health = math.huge
  194. local sparkle = Instance.new("Sparkles")
  195. sparkle.SparkleColor = Color3.new(0, 255, 75);
  196. sparkle.Parent = script;
  197. sparkle.Enabled = false;
  198. function CreatePart1(parent,transparency,reflectance,material,brickcolor)
  199. local p = Instance.new("Part")
  200. p.Parent = parent
  201. p.Size = Vector3.new(1,1,1)
  202. p.Transparency = transparency
  203. p.Reflectance = reflectance
  204. p.CanCollide = false
  205. p.Locked = true
  206. p.BrickColor = brickcolor
  207. p.Material = material
  208. return p
  209. end
  210.  
  211.  
  212.  
  213. snd = Instance.new("Sound")
  214. snd.SoundId = "http://www.roblox.com/asset/?id=2233908"
  215. snd.Volume = 1
  216. snd.Name = "Boom"
  217. snd.Parent = tors
  218. local UnsheathSound = Instance.new("Sound")
  219. UnsheathSound.SoundId = "http://www.roblox.com/asset/?id=11998770"
  220. UnsheathSound.Name = "Go"
  221. UnsheathSound.Volume = 0.5
  222. UnsheathSound.Parent = tors
  223.  
  224. local Wing1 = Instance.new("Part",Char)
  225. Wing1.FormFactor = Enum.FormFactor.Custom
  226. Wing1.Size = Vector3.new(.2, .2, .2)
  227. Wing1.Name = "WIng_1"
  228.  
  229. local fire = Instance.new("ParticleEmitter", Wing1)
  230. fire.VelocitySpread = 0
  231. fire.Lifetime = NumberRange.new(1)
  232. fire.Acceleration = Vector3.new(0, 0, 0)
  233. fire.RotSpeed = NumberRange.new(150)
  234. fire.Rate = 500
  235. fire.Rotation = NumberRange.new(151515)
  236. fire.Name = "Fire"
  237. fire.LightEmission = 1
  238. fire.LockedToPart = false
  239. fire.Texture = "rbxassetid://296874871"
  240. fire.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Lime green").Color)
  241. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 3)})
  242. fire.Enabled = false
  243.  
  244. function go()
  245. Wing1.Fire.Enabled = true
  246. end
  247.  
  248. Wld = function(a,b,cf)
  249. local Weld = Instance.new('Weld',a)
  250. Weld.Part0 = a
  251. Weld.Part1 = b
  252. Weld.C1 = cf
  253. return Weld
  254. end
  255.  
  256. local wld = Wld(tors,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  257. Player = owner
  258. Character = Char
  259. function chatfunc(text)
  260. local chat = coroutine.wrap(function()
  261. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  262. Character:FindFirstChild("TalkingBillBoard"):destroy()
  263. end
  264. local naeeym2 = Instance.new("BillboardGui",Char)
  265. naeeym2.Size = UDim2.new(0,100,0,40)
  266. naeeym2.StudsOffset = Vector3.new(0,3,0)
  267. naeeym2.Adornee = Char.Head
  268. naeeym2.Name = "TalkingBillBoard"
  269. local tecks2 = Instance.new("TextLabel",naeeym2)
  270. tecks2.BackgroundTransparency = 1
  271. tecks2.BorderSizePixel = 0
  272. tecks2.Text = ""
  273. tecks2.Font = "Antique"
  274. tecks2.TextSize = 30
  275. tecks2.TextStrokeTransparency = 0
  276. tecks2.TextColor3 = Color3.new(55/255,0/255,255/255)
  277. tecks2.TextStrokeColor3 = Color3.new(22/255,255/255,22/255)
  278. tecks2.Size = UDim2.new(1,0,0.5,0)
  279. local tecks3 = Instance.new("TextLabel",naeeym2)
  280. tecks3.BackgroundTransparency = 1
  281. tecks3.BorderSizePixel = 0
  282. tecks3.Text = ""
  283. tecks3.Font = "Antique"
  284. tecks3.TextSize = 30
  285. tecks3.TextStrokeTransparency = 0
  286. tecks3.TextColor3 = Color3.new(22/255,255/255,22/255)
  287. tecks3.TextStrokeColor3 = Color3.new(55/255,0/255,255/255)
  288. tecks3.Size = UDim2.new(1,0,0.5,0)
  289. for i = 1,string.len(text),1 do
  290. tecks2.Text = string.sub(text,1,i)
  291. tecks3.Text = string.sub(text,1,i)
  292. wait(0.01)
  293. end
  294. wait(2)
  295. for i = 1, 50 do
  296. wait()
  297. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  298. tecks2.Rotation = tecks2.Rotation - .8
  299. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  300. tecks2.TextTransparency = tecks2.TextTransparency + .04
  301. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  302. tecks3.Rotation = tecks2.Rotation + .8
  303. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  304. tecks3.TextTransparency = tecks2.TextTransparency + .04
  305. end
  306. naeeym2:Destroy()
  307. end)
  308. chat()
  309. end
  310. function onChatted(msg)
  311. chatfunc(msg)
  312. end
  313. Player.Chatted:connect(onChatted)
  314.  
  315.  
  316. function nigga(part)
  317. local eff1 = Instance.new("ParticleEmitter",part)
  318. eff1.Size = NumberSequence.new(.1)
  319. eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  320. eff1.LightEmission = 1
  321. eff1.Lifetime = NumberRange.new(1)
  322. eff1.Speed = NumberRange.new(0)
  323. eff1.Rate = 100
  324. eff1.Texture = "rbxassetid://284205403"
  325. eff1.Acceleration = Vector3.new(0,10,0)
  326. eff1.Color = ColorSequence.new(Color3.new(0,255,0))
  327. local eff2 = Instance.new("ParticleEmitter",part)
  328. eff2.Size = NumberSequence.new(.1)
  329. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  330. eff2.LightEmission = 1
  331. eff2.Lifetime = NumberRange.new(1)
  332. eff2.Speed = NumberRange.new(0)
  333. eff2.Rate = 100
  334. eff2.Texture = "rbxassetid://347504259"
  335. eff2.Acceleration = Vector3.new(0,10,0)
  336. eff2.Color = ColorSequence.new(Color3.new(0,255,0))
  337. local eff3 = Instance.new("ParticleEmitter",part)
  338. eff3.Size = NumberSequence.new(1)
  339. eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  340. eff3.LightEmission = 1
  341. eff3.Lifetime = NumberRange.new(1)
  342. eff3.Speed = NumberRange.new(0)
  343. eff3.Rate = 100
  344. eff3.Texture = "rbxassetid://284205403"
  345. eff3.Acceleration = Vector3.new(0,10,0)
  346. eff3.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Lime green").Color)
  347. end
  348.  
  349.  
  350. local eff4 = Instance.new("ParticleEmitter",tors)
  351. eff4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15),NumberSequenceKeypoint.new(1,0)})
  352. eff4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,0)})
  353. eff4.LightEmission = 1
  354. eff4.Lifetime = NumberRange.new(10)
  355. eff4.Speed = NumberRange.new(200)
  356. eff4.Rate = 0
  357. eff4.SpreadAngle = Vector2.new(-360,360)
  358. eff4.Texture = "rbxassetid://284205403"
  359. eff4.Acceleration = Vector3.new(0,0,0)
  360. eff4.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Lime green").Color)
  361. eff4.Rate = 1000
  362. chatfunc("I hope you're ready... Cause its about time..")
  363. wait(3)
  364. for i = 1, 5 do
  365. local eff3 = Instance.new("Part", tors.Parent)
  366. eff3.Size = Vector3.new(1, 1, 1)
  367. eff3.Transparency = 0
  368. eff3.Material = "Neon"
  369. eff3.Anchored = true
  370. eff3.CanCollide = false
  371. eff3.Shape = "Ball"
  372. eff3.CFrame = tors.CFrame
  373. for i = 1, 10 do
  374. eff3.Size = eff3.Size + Vector3.new(4, 4, 4)
  375. eff3.Transparency = eff3.Transparency + 0.1
  376. eff3.CFrame = tors.CFrame * CFrame.Angles(math.random(), math.random(), math.random())
  377. eff3.BrickColor = BrickColor.new("Dark green")
  378. wait()
  379. end
  380. end
  381. chatfunc("THAT YOU GOT THE KARMA YOU DESERVE!")
  382. wait()
  383.  
  384. go()
  385.  
  386.  
  387. nigga(brm)
  388.  
  389. nigga(arm)
  390.  
  391. nigga(tors)
  392. wait(2)
  393. eff4.Rate = 0
  394. wait(2)
  395. eff4:Remove()
  396. Head = Char.Head
  397. char = Char
  398. CV="Toothpaste"
  399. p = owner
  400. char = p.Character
  401. local txt = Instance.new("BillboardGui", char)
  402. txt.Adornee = char .Head
  403. txt.Name = "_status"
  404. txt.Size = UDim2.new(2, 0, 1.2, 0)
  405. txt.StudsOffset = Vector3.new(-9, 14, 0)
  406. local text = Instance.new("TextLabel", txt)
  407. text.Size = UDim2.new(10, 0, 7, 0)
  408. text.FontSize = "Size24"
  409. text.TextScaled = true
  410. text.TextTransparency = 0
  411. text.BackgroundTransparency = 1
  412. text.TextTransparency = 0
  413. text.TextStrokeTransparency = 0
  414. text.Font = "Antique"
  415. text.TextStrokeColor3 = Color3.new(22/255,255/255,22/255)
  416.  
  417. v=Instance.new("Part")
  418. v.Name = "ColorBrick"
  419. v.Parent=p.Character
  420. v.FormFactor="Symmetric"
  421. v.Anchored=true
  422. v.CanCollide=false
  423. v.BottomSurface="Smooth"
  424. v.TopSurface="Smooth"
  425. v.Size=Vector3.new(10,5,3)
  426. v.Transparency=1
  427. v.CFrame=char.Torso.CFrame
  428. v.BrickColor=BrickColor.new(CV)
  429. v.Transparency=1
  430. text.TextColor3 = Color3.new(55/255,0/255,255/255)
  431. v.Shape="Block"
  432. text.Text = "||``Aurora Borealis``||"
  433.  
  434. function boom(part)
  435. wait();
  436. if part == nil then return end;
  437. if part.Anchored then return end;
  438. if part.Name == "WIng_1" then return end;
  439. if part.Parent.ClassName == "Accessory" then return end;
  440. if part.Parent.Name == owner.Name then return end
  441. tors.Go:Play()
  442. wait(0.5)
  443. if part.Name == "Torso" or part.Name == "Head" then
  444. local fire = Instance.new("ParticleEmitter", part)
  445. fire.VelocitySpread = 0
  446. fire.Lifetime = NumberRange.new(1)
  447. fire.Acceleration = Vector3.new(0, 0, 0)
  448. fire.RotSpeed = NumberRange.new(150)
  449. fire.Rate = 500
  450. fire.Rotation = NumberRange.new(151515)
  451. fire.Name = "Fire"
  452. fire.LightEmission = 1
  453. fire.LockedToPart = false
  454. fire.Texture = "rbxassetid://296874871"
  455. fire.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Lime green").Color)
  456. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 3)})
  457. fire.Enabled = true
  458. end
  459. if part.Name == "Torso" then
  460. local eff3 = Instance.new("Part", tors)
  461. eff3.Size = Vector3.new(1, 1, 1)
  462. eff3.Transparency = 0
  463. eff3.Material = "Neon"
  464. eff3.Anchored = true
  465. eff3.CanCollide = false
  466. eff3.Shape = "Ball"
  467. eff3.CFrame = part.CFrame
  468. for i = 1, 10 do
  469. eff3.Size = eff3.Size + Vector3.new(4, 4, 4)
  470. eff3.Transparency = eff3.Transparency + 0.1
  471. eff3.CFrame = part.CFrame * CFrame.Angles(math.random(), math.random(), math.random())
  472. eff3.BrickColor = BrickColor.new("Dark green")
  473. wait()
  474. end
  475.  
  476. end
  477. part:BreakJoints();
  478. part.Velocity = Vector3.new(part.Velocity.X+ math.random(10, 20), part.Velocity.Y + math.random(100, 200), part.Velocity.Z+ math.random(10, 20));
  479. game.Debris:AddItem(part, 10);
  480. end
  481.  
  482. local load = true
  483.  
  484.  
  485.  
  486. Lerp = function(a,b,c)
  487. return a+(b-a)*c
  488. end
  489.  
  490. function phaseclone()
  491. Char.Archivable = true
  492. local Clone1 = Char:Clone()
  493. Clone1.Parent = game.Workspace
  494. for i,v in pairs (Clone1:GetChildren()) do
  495. if v.ClassName == "BodyColors" then
  496. B = "Really black"
  497. v.HeadColor = BrickColor.new(B)
  498. v.LeftArmColor = BrickColor.new(B)
  499. v.RightArmColor = BrickColor.new(B)
  500. v.TorsoColor = BrickColor.new(B)
  501. v.LeftLegColor = BrickColor.new(B)
  502. v.RightLegColor = BrickColor.new(B)
  503. elseif not v:IsA("Part") then
  504. v:Destroy()
  505. end
  506. if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then
  507. v:Destroy()
  508. end
  509. if v:IsA("Part") then
  510. v.Transparency = 0.5
  511. v.TopSurface = "Smooth"
  512. v.BottomSurface = "Smooth"
  513. v.LeftSurface = "Smooth"
  514. v.RightSurface = "Smooth"
  515. Bl = "Really black"
  516. v.BrickColor = BrickColor.new(Bl)
  517. v.Anchored = true
  518. v.CanCollide = false
  519. end
  520. end
  521. for i,v in pairs (Clone1:GetChildren()) do
  522. if v:FindFirstChild("roblox") then
  523. v.roblox:Destroy()
  524. end
  525. if v:FindFirstChild("face") then
  526. v.face:Destroy()
  527. end
  528. if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then
  529. v:Remove()
  530. end
  531. end
  532. wait(0.3)
  533. for i = 1,5 do
  534. for _,v in pairs(Clone1:GetChildren()) do
  535. if v:IsA("Part") then
  536. v.Transparency = 0.5+i/5
  537. wait()
  538. end
  539. end
  540. end
  541. Clone1:Destroy()
  542. end
  543.  
  544.  
  545. function ctlerp(c1,c2,al)
  546. local com1 = {c1:components()}
  547. local com2 = {c2:components()}
  548. for i,v in pairs(com1) do
  549. com1[i] = Lerp(v,com2[i],al)
  550. end
  551. return CF(unpack(com1))
  552. end
  553.  
  554. do
  555. local function QuaternionFromCFrame(cf)
  556. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  557. local trace = m00 + m11 + m22
  558. if trace > 0 then
  559. local s = math.sqrt(1 + trace)
  560. local recip = 0.5/s
  561. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  562. else
  563. local i = 0
  564. if m11 > m00 then
  565. i = 1
  566. end
  567. if m22 > (i == 0 and m00 or m11) then
  568. i = 2
  569. end
  570. if i == 0 then
  571. local s = math.sqrt(m00-m11-m22+1)
  572. local recip = 0.5/s
  573. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  574. elseif i == 1 then
  575. local s = math.sqrt(m11-m22-m00+1)
  576. local recip = 0.5/s
  577. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  578. elseif i == 2 then
  579. local s = math.sqrt(m22-m00-m11+1)
  580. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  581. end
  582. end
  583. end
  584. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  585. local xs, ys, zs = x + x, y + y, z + z
  586. local wx, wy, wz = w*xs, w*ys, w*zs
  587. local xx = x*xs
  588. local xy = x*ys
  589. local xz = x*zs
  590. local yy = y*ys
  591. local yz = y*zs
  592. local zz = z*zs
  593. return CF(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  594. end
  595. local function QuaternionSlerp(a, b, t)
  596. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  597. local startInterp, finishInterp;
  598. if cosTheta >= 0.0001 then
  599. if (1 - cosTheta) > 0.0001 then
  600. local theta = math.acos(cosTheta)
  601. local invSinTheta = 1/math.sin(theta)
  602. startInterp = math.sin((1-t)*theta)*invSinTheta
  603. finishInterp = math.sin(t*theta)*invSinTheta
  604. else
  605. startInterp = 1-t
  606. finishInterp = t
  607. end
  608. else
  609. if (1+cosTheta) > 0.0001 then
  610. local theta = math.acos(-cosTheta)
  611. local invSinTheta = 1/math.sin(theta)
  612. startInterp = math.sin((t-1)*theta)*invSinTheta
  613. finishInterp = math.sin(t*theta)*invSinTheta
  614. else
  615. startInterp = t-1
  616. finishInterp = t
  617. end
  618. end
  619. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  620. end
  621. function clerp(a,b,t)
  622. local qa = {QuaternionFromCFrame(a)}
  623. local qb = {QuaternionFromCFrame(b)}
  624. local ax, ay, az = a.x, a.y, a.z
  625. local bx, by, bz = b.x, b.y, b.z
  626. local _t = 1-t
  627. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  628. end
  629. end
  630.  
  631. --==/BASE/DEFAULT WELDS/==--
  632. rm = Instance.new("Weld", Torso)
  633. rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  634. rm.C1 = CFrame.new(0, 0.5, 0)
  635. rm.Part0 = Torso
  636. rm.Part1 = ra
  637. lm = Instance.new("Weld", Torso)
  638. lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  639. lm.C1 = CFrame.new(0, 0.5, 0)
  640. lm.Part0 = Torso
  641. lm.Part1 = la
  642. rlegm = Instance.new("Weld", Torso)
  643. rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  644. rlegm.C1 = CFrame.new(0, 1, 0)
  645. rlegm.Part0 = Torso
  646. rlegm.Part1 = rl
  647. llegm = Instance.new("Weld", Torso)
  648. llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  649. llegm.C1 = CFrame.new(0, 1, 0)
  650. llegm.Part0 = Torso
  651. llegm.Part1 = ll
  652. neck.C0 = CFrame.new(0,1,0)
  653. neck.C1 = CFrame.new(0,-0.5,0)
  654.  
  655. --==/Mage's gauntlet/==--
  656. gauntlet = Instance.new("Model", Char)
  657. gauntParts = Instance.new("Model", gauntlet)
  658.  
  659. local rrng = Instance.new("Part", gauntParts)
  660. rrng.Anchored = false
  661. rrng.CanCollide = false
  662. rrng.FormFactor = "Custom"
  663. rrng.TopSurface = "Smooth"
  664. rrng.BottomSurface = "Smooth"
  665. rrng.BrickColor = BrickColor.new("Really black")
  666. rrng.Transparency = 0
  667. local rrngM = Instance.new("FileMesh", rrng)
  668. rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017"
  669. rrngM.Scale = Vector3.new(0.8, 0.8, 0.8)
  670. local rrngW = Instance.new("Weld", rrng)
  671. rrngW.Part1 = rrng
  672. rrngW.Part0 = ra
  673. rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0)
  674.  
  675. local rbg = Instance.new("Part", gauntParts)
  676. rbg.Anchored, rbg.CanCollide = false, false
  677. rbg.FormFactor = "Custom"
  678. rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth"
  679. rbg.Color = Color3.new(0/255,255/255,100/255)
  680. rbg.Transparency = 0
  681. local rbgM = Instance.new("SpecialMesh", rbg)
  682. rbgM.MeshType = "Cylinder"
  683. rbgM.Scale = Vector3.new(0.01, 0.7, 0.7)
  684. local rbgW = Instance.new("Weld", rbg)
  685. rbgW.Part1 = rbg
  686. rbgW.Part0 = rrng
  687. rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  688.  
  689. local chak = Instance.new("Part", gauntParts)
  690. chak.Anchored, chak.CanCollide = false, false
  691. chak.FormFactor = "Custom"
  692. chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth"
  693. chak.Color = Color3.new(255/154, 255/96, 255/255)
  694. chak.Transparency = 0
  695. local chakM = Instance.new("FileMesh", chak)
  696. chakM.MeshId = "http://www.roblox.com/asset/?id=47260990"
  697. chakM.Scale = Vector3.new(0.85, 0.85, 0.85)
  698. local chakW = Instance.new("Motor", chak)
  699. chakW.DesiredAngle = 100000000000
  700. chakW.MaxVelocity = 0.1
  701. chakW.Part1 = chak
  702. chakW.Part0 = rrng
  703. chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0)
  704.  
  705. --=/Spikes for Gauntlet [top]/=--
  706.  
  707. local cone = Instance.new("Part", gauntParts)
  708. cone.Anchored, cone.CanCollide = false, false
  709. cone.FormFactor = "Custom"
  710. cone.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  711. cone.Color = Color3.new(0/255,255/255,100/255)
  712. cone.Transparency = 0
  713. local coneM = Instance.new("FileMesh", cone)
  714. coneM.MeshId = "http://www.roblox.com/asset/?id=1033714"
  715. coneM.Scale = Vector3.new(0.1, 0.85, 0.06)
  716. local coneW = Instance.new("Motor", cone)
  717. coneW.Part1 = cone
  718. coneW.Part0 = rrng
  719. coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0)
  720.  
  721. local cone2 = Instance.new("Part", gauntParts)
  722. cone2.Anchored, cone2.CanCollide = false, false
  723. cone2.FormFactor = "Custom"
  724. cone2.TopSurface, cone2.BottomSurface = "Smooth", "Smooth"
  725. cone2.Color = Color3.new(0/255,255/255,100/255)
  726. cone2.Transparency = 0
  727. local cone2M = Instance.new("FileMesh", cone2)
  728. cone2M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  729. cone2M.Scale = Vector3.new(0.1, 0.45, 0.06)
  730. local cone2W = Instance.new("Motor", cone2)
  731. cone2W.Part1 = cone2
  732. cone2W.Part0 = rrng
  733. cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40))
  734.  
  735. local cone3 = Instance.new("Part", gauntParts)
  736. cone3.Anchored, cone3.CanCollide = false, false
  737. cone3.FormFactor = "Custom"
  738. cone3.TopSurface, cone3.BottomSurface = "Smooth", "Smooth"
  739. cone3.Color = Color3.new(0/255,255/255,100/255)
  740. cone3.Transparency = 0
  741. local cone3M = Instance.new("FileMesh", cone3)
  742. cone3M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  743. cone3M.Scale = Vector3.new(0.1, 0.45, 0.06)
  744. local cone3W = Instance.new("Motor", cone3)
  745. cone3W.Part1 = cone3
  746. cone3W.Part0 = rrng
  747. cone3W.C0 = CFrame.new(0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(-40))
  748.  
  749. --=/Spikes for Gauntlet [bottom]/=--
  750.  
  751. local cone4 = Instance.new("Part", gauntParts)
  752. cone4.Anchored, cone4.CanCollide = false, false
  753. cone4.FormFactor = "Custom"
  754. cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  755. cone4.Color = Color3.new(0/255,255/255,100/255)
  756. cone4.Transparency = 0
  757. local cone4M = Instance.new("FileMesh", cone4)
  758. cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  759. cone4M.Scale = Vector3.new(0.1, 1, 0.06)
  760. local cone4W = Instance.new("Motor", cone4)
  761. cone4W.Part1 = cone4
  762. cone4W.Part0 = rrng
  763. cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180))
  764.  
  765. local cone5 = Instance.new("Part", gauntParts)
  766. cone5.Anchored, cone5.CanCollide = false, false
  767. cone5.FormFactor = "Custom"
  768. cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth"
  769. cone5.Color = Color3.new(0/255,255/255,100/255)
  770. cone5.Transparency = 0
  771. local cone5M = Instance.new("FileMesh", cone5)
  772. cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  773. cone5M.Scale = Vector3.new(0.1, 0.35, 0.035)
  774. local cone5W = Instance.new("Motor", cone5)
  775. cone5W.Part1 = cone5
  776. cone5W.Part0 = rrng
  777. cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150))
  778.  
  779. local cone6 = Instance.new("Part", gauntParts)
  780. cone6.Anchored, cone6.CanCollide = false, false
  781. cone6.FormFactor = "Custom"
  782. cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth"
  783. cone6.Color = Color3.new(0/255,255/255,100/255)
  784. cone6.Transparency = 0
  785. local cone6M = Instance.new("FileMesh", cone6)
  786. cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  787. cone6M.Scale = Vector3.new(0.1, 0.35, 0.035)
  788. local cone6W = Instance.new("Motor", cone6)
  789. cone6W.Part1 = cone6
  790. cone6W.Part0 = rrng
  791. cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150))
  792.  
  793. --=/Armband/=--
  794.  
  795. local armbnd = Instance.new("Part", gauntParts)
  796. armbnd.Anchored, armbnd.CanCollide = false, false
  797. armbnd.FormFactor = "Custom"
  798. armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth"
  799. armbnd.Color = Color3.new(0/255,255/255,100/255)
  800. armbnd.Transparency = 0
  801. armbnd.Size = Vector3.new(1.005, 0.3, 1.005)
  802. local armbndW = Instance.new("Motor", armbnd)
  803. armbndW.Part1 = armbnd
  804. armbndW.Part0 = ra
  805. armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  806.  
  807. local armbnd2 = Instance.new("Part", gauntParts)
  808. armbnd2.Anchored, armbnd2.CanCollide = false, false
  809. armbnd2.FormFactor = "Custom"
  810. armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth"
  811. armbnd2.Color = Color3.new(0/255,255/255,100/255)
  812. armbnd2.Transparency = 0
  813. armbnd2.Size = Vector3.new(1.005, 0.01, 1.005)
  814. local armbnd2W = Instance.new("Motor", armbnd2)
  815. armbnd2W.Part1 = armbnd2
  816. armbnd2W.Part0 = armbnd
  817. armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0)
  818.  
  819. local armbnd3 = Instance.new("Part", gauntParts)
  820. armbnd3.Anchored, armbnd3.CanCollide = false, false
  821. armbnd3.FormFactor = "Custom"
  822. armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth"
  823. armbnd3.Color = Color3.new(0/255,255/255,100/255)
  824. armbnd3.Transparency = 0
  825. armbnd3.Size = Vector3.new(1.005, 0.01, 1.005)
  826. local armbnd3W = Instance.new("Motor", armbnd3)
  827. armbnd3W.Part1 = armbnd3
  828. armbnd3W.Part0 = armbnd
  829. armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0)
  830.  
  831. --[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]--
  832.  
  833. --==/BASE VARIABLES/==--
  834. sine = 1
  835. angle = 0
  836. anglespeed = 1
  837. local anim = false
  838. local walking = false
  839. local sprinting = false
  840. local magix = false
  841. local debounce = false
  842. local magixball = false
  843.  
  844. mouse.Button1Down:connect(function()
  845. magixball = true
  846. if debounce == false and magix == true then
  847. debounce = true
  848. coroutine.resume(coroutine.create(function()
  849. wait(0.3)
  850. debounce = false
  851. end))
  852. local PorplBall = Instance.new("Part", Char)
  853. PorplBall.Archivable = true
  854. PorplBall.TopSurface = 10
  855. PorplBall.BottomSurface = 10
  856. PorplBall.CFrame = rrng.CFrame
  857. PorplBall.Anchored = false
  858. PorplBall.CanCollide = false
  859. PorplBall.Size = Vector3.new(1, 1, 1)
  860. PorplBall.BrickColor = BrickColor.new("Really black")
  861. PorplBall.Transparency = 0
  862. local PorplBallM = Instance.new("SpecialMesh", PorplBall)
  863. PorplBallM.MeshType = "Sphere"
  864. PorplBallM.Scale = Vector3.new(1, 1, 1)
  865. local function explode()
  866. wait()
  867. PorplBall:Destroy()
  868. end
  869. coroutine.resume(coroutine.create(function()
  870. for i = 1, 125 do wait(0.000000000000001)
  871. local pmagic = Instance.new("Part", PorplBall)
  872. pmagic.FormFactor = "Custom"
  873. pmagic.Anchored = true
  874. pmagic.CanCollide = false
  875. pmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  876. pmagic.TopSurface = 10
  877. pmagic.BottomSurface = 10
  878. pmagic.LeftSurface = 10
  879. pmagic.RightSurface = 10
  880. pmagic.FrontSurface = 10
  881. pmagic.BackSurface = 10
  882. pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  883. pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  884. local lt = Instance.new("PointLight", pmagic)
  885. lt.Brightness = 100
  886. lt.Range = 5
  887. lt.Color = Color3.new(0, 0, 65/100)
  888. local pmagicM = Instance.new("BlockMesh", pmagic)
  889. game:GetService("Debris"):AddItem(pmagic, 0.5)
  890. coroutine.wrap(function()
  891. for i = 1, 10 do
  892. pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  893. pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0)
  894. wait()
  895. end
  896. end)()
  897. end
  898. end))
  899. local Velocity = Instance.new("BodyVelocity", PorplBall)
  900. Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge
  901. Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80
  902. local ready = false
  903. PorplBall.Touched:connect(function(part)
  904. if not part:IsDescendantOf(Char) and ready == false then
  905. ready = true
  906. local found = false
  907. for i,v in pairs (part.Parent:GetChildren()) do
  908. if v:IsA("Humanoid") or v == Torso or v == Head then
  909. found = true
  910. v.MaxHealth = v.MaxHealth - math.huge
  911. v.Health = v.Health - math.huge
  912. end
  913. end
  914. Velocity:Destroy()
  915. PorplBall.Anchored = true
  916. for i = 0, 1, 0.06 do
  917. local start = 1
  918. local stop = 7
  919. PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start))
  920. PorplBall.Transparency = i
  921. wait()
  922. end
  923. explode()
  924. end
  925. end)
  926. wait(6.5)
  927. explode()
  928. end
  929. end)
  930.  
  931. coroutine.resume(coroutine.create(function()
  932. while wait(0.0000000001) do if magix == true then
  933. --[[ --==/Lightning Magic/==--
  934. lastCF = Torso.Position
  935. x1 = Instance.new("Part", workspace)
  936. x1.Size = Vector3.new(1, 1, 1)
  937. x1.CanCollide = false
  938. x1.Anchored = true
  939. x1.Transparency = 1
  940. spawn(function()
  941. while true do
  942. wait(-1)
  943. x1.CFrame = Char.Torso.CFrame * CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))) * CFrame.new(0, 0, 6)
  944. end
  945. end)
  946. for i = 1, math.huge do
  947. local dist2 = (lastCF-x1.Position).magnitude
  948. x2 = Instance.new("Part", workspace)
  949. x2.Size = Vector3.new(1, 1, 1)
  950. x2.Material = "Neon"
  951. x2.BrickColor = BrickColor.new("Really black")
  952. x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2)
  953. x2.CanCollide = false
  954. x2.Anchored = true
  955. local m = Instance.new("BlockMesh", x2)
  956. m.Scale = Vector3.new(0.5, 0.5, dist2)
  957. lastCF = x1.Position
  958. spawn(function()
  959. for i = 1, 100 do
  960. x = m.Scale.x/10
  961. y = m.Scale.x/10
  962. m.Scale = m.Scale-Vector3.new(x, y, 0)
  963. wait()
  964. end
  965. end)
  966. game.Debris:AddItem(x2, 0.35)
  967. wait()
  968. end
  969. x1:Destroy()
  970. ]]--
  971. --=/Right Arm Magic/=--
  972. local ramagic = Instance.new("Part", Char)
  973. ramagic.FormFactor = "Custom"
  974. ramagic.Anchored = true
  975. ramagic.CanCollide = false
  976. ramagic.Size = Vector3.new(0.7, 0.7, 0.7)
  977. ramagic.TopSurface = 10
  978. ramagic.BottomSurface = 10
  979. ramagic.LeftSurface = 10
  980. ramagic.RightSurface = 10
  981. ramagic.FrontSurface=10
  982. ramagic.BackSurface=10
  983. ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  984. ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  985. local lt = Instance.new("PointLight", ramagic)
  986. lt.Brightness = 100
  987. lt.Range = 5
  988. lt.Color = Color3.new(0, 0, 65/100)
  989. local ramagicM = Instance.new("BlockMesh", ramagic)
  990.  
  991. --=/Left Arm Magic/=--
  992. local lamagic = Instance.new("Part", Char)
  993. lamagic.FormFactor = "Custom"
  994. lamagic.Anchored = true
  995. lamagic.CanCollide = false
  996. lamagic.Size = Vector3.new(0.7, 0.7, 0.7)
  997. lamagic.TopSurface = 10
  998. lamagic.BottomSurface = 10
  999. lamagic.LeftSurface = 10
  1000. lamagic.RightSurface = 10
  1001. lamagic.FrontSurface=10
  1002. lamagic.BackSurface=10
  1003. lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)])
  1004. lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  1005. local lt2 = Instance.new("PointLight", lamagic)
  1006. lt2.Brightness = 100
  1007. lt2.Range = 6
  1008. lt2.Color = Color3.new(0, 0, 65/100)
  1009. local lamagicM = Instance.new("BlockMesh", lamagic)
  1010. --[[optional
  1011. --=/Right Leg Magic/=--
  1012. local rlmagic = Instance.new("Part", Char)
  1013. rlmagic.FormFactor = "Custom"
  1014. rlmagic.Anchored = true
  1015. rlmagic.CanCollide = false
  1016. rlmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  1017. rlmagic.TopSurface = 10
  1018. rlmagic.BottomSurface = 10
  1019. rlmagic.LeftSurface = 10
  1020. rlmagic.RightSurface = 10
  1021. rlmagic.FrontSurface=10
  1022. rlmagic.BackSurface=10
  1023. rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  1024. rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  1025. local lt3 = Instance.new("PointLight", rlmagic)
  1026. lt3.Brightness = 123123
  1027. lt3.Range = 6
  1028. lt3.Color = Color3.new(1, 0, 1)
  1029. local rlmagicM = Instance.new("BlockMesh", rlmagic)
  1030.  
  1031. --=/Left Leg Magic/=--
  1032. local llmagic = Instance.new("Part", Char)
  1033. llmagic.FormFactor = "Custom"
  1034. llmagic.Anchored = true
  1035. llmagic.CanCollide = false
  1036. llmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  1037. llmagic.TopSurface = 10
  1038. llmagic.BottomSurface = 10
  1039. llmagic.LeftSurface = 10
  1040. llmagic.RightSurface = 10
  1041. llmagic.FrontSurface=10
  1042. llmagic.BackSurface=10
  1043. llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  1044. llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  1045. local lt4 = Instance.new("PointLight", llmagic)
  1046. lt4.Brightness = 123123
  1047. lt4.Range = 6
  1048. lt4.Color = Color3.new(1, 0, 1)
  1049. local llmagicM = Instance.new("BlockMesh", llmagic)
  1050. ]]
  1051. game:GetService("Debris"):AddItem(lamagic, 0.85)
  1052. game:GetService("Debris"):AddItem(ramagic, 0.85)
  1053. --[[
  1054. game:GetService("Debris"):AddItem(rlmagic, 0.85)
  1055. game:GetService("Debris"):AddItem(llmagic, 0.85)
  1056. ]]--
  1057. coroutine.wrap(function()
  1058. for i = 1, 10 do
  1059. ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  1060. ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0)
  1061. lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  1062. lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0)
  1063. --[[
  1064. rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  1065. rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0)
  1066. llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  1067. llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0)
  1068. ]]--
  1069. wait()
  1070. end
  1071. end)()
  1072. end
  1073. end
  1074. end))
  1075.  
  1076. --[[local bodyg = Instance.new("BodyGyro", Torso)
  1077. bodyg.MaxTorque = Vector3.new(0, math.huge, 0)
  1078. while true do game:GetService("RunService").RenderStepped:wait()
  1079. bodyg.CFrame = Camera.CoordinateFrame
  1080. end]]--
  1081.  
  1082.  
  1083. mouse.KeyUp:connect(function(key)
  1084. if key == "q" and sprinting == true then
  1085. sprinting = false
  1086. Humanoid.WalkSpeed = 20
  1087. elseif key == "q" and sprinting == false then
  1088. sprinting = true
  1089. Humanoid.WalkSpeed = 120
  1090. elseif key == "p" then
  1091. if (load) then
  1092. chatfunc("ENOUGH! IM RIDING THIS WORLD OF ABUSERS ONCE AND FOR ALL!")
  1093. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  1094. load = false
  1095. tors.Boom:Play();
  1096. local eff3 = Instance.new("Part", tors.Parent)
  1097. eff3.Size = Vector3.new(1, 1, 1)
  1098. eff3.Transparency = 0
  1099. eff3.Material = "Neon"
  1100. eff3.Anchored = true
  1101. eff3.CanCollide = false
  1102. eff3.Shape = "Ball"
  1103. eff3.CFrame = tors.CFrame
  1104. for i = 1, 10 do
  1105. eff3.Size = eff3.Size + Vector3.new(4, 4, 4)
  1106. eff3.Transparency = eff3.Transparency + 0.1
  1107. eff3.CFrame = tors.CFrame * CFrame.Angles(math.random(), math.random(), math.random())
  1108. eff3.BrickColor = BrickColor.new("Royal purple")
  1109. wait()
  1110. end
  1111. local e = Instance.new("Explosion");
  1112. e.Hit:connect(boom);
  1113. e.Position = tors.Position;
  1114. e.BlastPressure = 0;
  1115. e.Visible = false;
  1116. e.DestroyJointRadiusPercent = 0;
  1117. e.ExplosionType = "NoCraters";
  1118. e.BlastRadius = 10000;
  1119. e.Parent = game.Workspace;
  1120.  
  1121. wait(1)
  1122. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1123. load = true
  1124. end
  1125. end
  1126. end)
  1127.  
  1128. paly = owner
  1129. p = owner
  1130. char = paly.Character
  1131. local symbolimg = "573917407"
  1132. Player = game:GetService("Players").LocalPlayer
  1133. Character = Player.Character
  1134. local mouse = paly:GetMouse()
  1135. local charge = false
  1136. local energy = 100000
  1137. vt = Vector3.new
  1138. torso = char.Torso
  1139. neck = char.Torso.Neck
  1140. hum = char.Humanoid
  1141. Player = game:GetService("Players").LocalPlayer
  1142. local mouse = Player:GetMouse()
  1143. Character = Player.Character
  1144. tors = Character.Torso
  1145. lleg = Character["Left Leg"]
  1146. root = Character.HumanoidRootPart
  1147. hed = Character.Head
  1148. rleg = Character["Right Leg"]
  1149. rarm = Character["Right Arm"]
  1150. larm = Character["Left Arm"]
  1151. local Effects = {}
  1152. attack = false
  1153. local attacking = false
  1154. vt = Vector3.new
  1155. bc = BrickColor.new
  1156. br = BrickColor.random
  1157. it = Instance.new
  1158. cf = CFrame.new
  1159. euler = CFrame.fromEulerAnglesXYZ
  1160. angles = CFrame.Angles
  1161. matr = math.random
  1162. local maincolor = ColorSequence.new(Color3.new(0/255,255/255,100/255))
  1163.  
  1164. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1165. if hit.Parent==nil then
  1166. return
  1167. end
  1168. h=hit.Parent:FindFirstChild("Humanoid")
  1169. for _,v in pairs(hit.Parent:children()) do
  1170. if v:IsA("Humanoid") then
  1171. h=v
  1172. end
  1173. end
  1174. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1175. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1176. end
  1177. if hit.Parent.className=="Hat" then
  1178. hit=hit.Parent.Parent:findFirstChild("Head")
  1179. end
  1180. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1181. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1182. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1183. return
  1184. end]]
  1185. -- hs(hit,1.2)
  1186. c=Instance.new("ObjectValue")
  1187. c.Name="creator"
  1188. c.Value=game:service("Players").LocalPlayer
  1189. c.Parent=h
  1190. game:GetService("Debris"):AddItem(c,.5)
  1191. Damage=math.random(minim,maxim)
  1192. -- h:TakeDamage(Damage)
  1193. blocked=false
  1194. block=hit.Parent:findFirstChild("Block")
  1195. if block~=nil then
  1196. print(block.className)
  1197. if block.className=="NumberValue" then
  1198. if block.Value>0 then
  1199. blocked=true
  1200. if decreaseblock==nil then
  1201. block.Value=block.Value-1
  1202. end
  1203. end
  1204. end
  1205. if block.className=="IntValue" then
  1206. if block.Value>0 then
  1207. blocked=true
  1208. if decreaseblock~=nil then
  1209. block.Value=block.Value-1
  1210. end
  1211. end
  1212. end
  1213. end
  1214. if blocked==false then
  1215. -- h:TakeDamage(Damage)
  1216. h.Health=h.Health-Damage
  1217. showDamage(hit.Parent,Damage,.5,TorsoColor)
  1218. else
  1219. h.Health=h.Health-(Damage/2)
  1220. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1221. end
  1222. if Type=="Knockdown" then
  1223. hum=hit.Parent.Humanoid
  1224. hum.PlatformStand=true
  1225. coroutine.resume(coroutine.create(function(HHumanoid)
  1226. swait(1)
  1227. HHumanoid.PlatformStand=false
  1228. end),hum)
  1229. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1230. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1231. local bodvol=Instance.new("BodyVelocity")
  1232. bodvol.velocity=angle*knockback
  1233. bodvol.P=5000
  1234. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1235. bodvol.Parent=hit
  1236. rl=Instance.new("BodyAngularVelocity")
  1237. rl.P=3000
  1238. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1239. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1240. rl.Parent=hit
  1241. game:GetService("Debris"):AddItem(bodvol,.5)
  1242. game:GetService("Debris"):AddItem(rl,.5)
  1243. elseif Type=="Normal" then
  1244. vp=Instance.new("BodyVelocity")
  1245. vp.P=500
  1246. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1247. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1248. if KnockbackType==1 then
  1249. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1250. elseif KnockbackType==2 then
  1251. vp.velocity=Property.CFrame.lookVector*knockback
  1252. end
  1253. if knockback>0 then
  1254. vp.Parent=hit.Parent.Torso
  1255. end
  1256. game:GetService("Debris"):AddItem(vp,.5)
  1257. elseif Type=="Up" then
  1258. local bodyVelocity=Instance.new("BodyVelocity")
  1259. bodyVelocity.velocity=vt(0,10,0)
  1260. bodyVelocity.P=1000
  1261. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  1262. bodyVelocity.Parent=hit
  1263. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1264. rl=Instance.new("BodyAngularVelocity")
  1265. rl.P=3000
  1266. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1267. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1268. rl.Parent=hit
  1269. game:GetService("Debris"):AddItem(rl,.5)
  1270. elseif Type=="Snare" then
  1271. bp=Instance.new("BodyPosition")
  1272. bp.P=2000
  1273. bp.D=100
  1274. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1275. bp.position=hit.Parent.Torso.Position
  1276. bp.Parent=hit.Parent.Torso
  1277. game:GetService("Debris"):AddItem(bp,1)
  1278. elseif Type=="Target" then
  1279. if Targetting==false then
  1280. ZTarget=hit.Parent.Torso
  1281. coroutine.resume(coroutine.create(function(Part)
  1282. swait(5)
  1283. end),ZTarget)
  1284. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1285. targetgui=Instance.new("BillboardGui")
  1286. targetgui.Parent=ZTarget
  1287. targetgui.Size=UDim2.new(10,100,10,100)
  1288. targ=Instance.new("ImageLabel")
  1289. targ.Parent=targetgui
  1290. targ.BackgroundTransparency=1
  1291. targ.Image="rbxassetid://4834067"
  1292. targ.Size=UDim2.new(1,0,1,0)
  1293. cam.CameraType="Scriptable"
  1294. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1295. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1296. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1297. Targetting=true
  1298. RocketTarget=ZTarget
  1299. for i=1,Property do
  1300. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1301. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1302. swait()
  1303. end
  1304. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1305. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1306. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1307. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1308. end
  1309. Targetting=false
  1310. RocketTarget=nil
  1311. targetgui.Parent=nil
  1312. cam.CameraType="Custom"
  1313. end
  1314. end
  1315. debounce=Instance.new("BoolValue")
  1316. debounce.Name="DebounceHit"
  1317. debounce.Parent=hit.Parent
  1318. debounce.Value=true
  1319. game:GetService("Debris"):AddItem(debounce,Delay)
  1320. c=Instance.new("ObjectValue")
  1321. c.Name="creator"
  1322. c.Value=Player
  1323. c.Parent=h
  1324. game:GetService("Debris"):AddItem(c,.5)
  1325. CRIT=false
  1326. hitDeb=true
  1327. AttackPos=6
  1328. end
  1329. end
  1330.  
  1331. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  1332. local gui = it(GuiType)
  1333. gui.Parent = parent
  1334. gui.Text = text
  1335. gui.BackgroundTransparency = backtrans
  1336. gui.BackgroundColor3 = backcol
  1337. gui.SizeConstraint = "RelativeXY"
  1338. gui.TextXAlignment = "Center"
  1339. gui.TextYAlignment = "Center"
  1340. gui.Position = pos
  1341. gui.Size = size
  1342. gui.Font = "SourceSans"
  1343. gui.FontSize = "Size14"
  1344. gui.TextWrapped = false
  1345. gui.TextStrokeTransparency = 0
  1346. gui.TextColor = BrickColor.new("White")
  1347. return gui
  1348. end
  1349.  
  1350. local tick1 = Instance.new("Sound",tors)
  1351. tick1.SoundId = "rbxassetid://313108061"
  1352. tick1.Volume = 2.5
  1353. tick1.Looped = true
  1354. tick1.Pitch = 0.85
  1355.  
  1356. local tick2 = Instance.new("Sound",tors)
  1357. tick2.SoundId = "rbxassetid://272207079"
  1358. tick2.Volume = 2.5
  1359. tick2.Looped = true
  1360. tick2.Pitch = 0.85
  1361.  
  1362. local orb = Instance.new("Part")
  1363. orb.Parent = char
  1364. orb.Size = Vector3.new(0.2, 0.2, 0.2)
  1365. orb.Archivable = true
  1366. orb.Transparency = 1
  1367. orb.Material = "Neon"
  1368. orb.CanCollide = false
  1369. local weld1 = Instance.new("Weld")
  1370. weld1.Parent = tors
  1371. weld1.Part0 = tors
  1372. weld1.Part1 = orb
  1373. weld1.C1 = CFrame.new(0, 0.01, 0)
  1374. local pt1 = NumberSequenceKeypoint.new(0,5,0)
  1375. local pt1a = NumberSequenceKeypoint.new(0,1,0)
  1376. local pt2a = NumberSequenceKeypoint.new(1,1,1)
  1377. local pt2 = NumberSequenceKeypoint.new(1,0,0)
  1378. local effecto = Instance.new("ParticleEmitter",orb)
  1379. effecto.LightEmission = 1
  1380. effecto.Texture = "rbxassetid://296874871"
  1381. effecto.Color = maincolor
  1382. effecto.Rate = 0
  1383. effecto.Acceleration = Vector3.new(0,25,0)
  1384. effecto.Transparency = NumberSequence.new({pt1a,pt2a})
  1385. effecto.Lifetime = NumberRange.new(0.75)
  1386. effecto.Size = NumberSequence.new({pt1,pt2})
  1387. effecto.Speed = NumberRange.new(12.5)
  1388. effecto.VelocitySpread = 100000000
  1389. effecto.RotSpeed = NumberRange.new(-300,300)
  1390.  
  1391. function Fireball()
  1392. local touched = false
  1393. local delay = false
  1394. local spart = Instance.new("Part",char)
  1395. local tick1 = Instance.new("Sound",spart)
  1396. tick1.SoundId = "rbxassetid://304448425"
  1397. tick1.Volume = 1.5
  1398. tick1.Pitch = 1.5
  1399. tick1:Play()
  1400. spart.Size = vt(1,1,1)
  1401. spart.BrickColor = BrickColor.new("Deep orange")
  1402. spart.Transparency = 1
  1403. spart.CanCollide = false
  1404. spart.Material = "Neon"
  1405. spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
  1406. local msh = Instance.new("SpecialMesh",spart)
  1407. msh.MeshType = "Sphere"
  1408. msh.Scale = vt(3,3,3)
  1409. local pt1e = NumberSequenceKeypoint.new(0,5,0)
  1410. local pt2e = NumberSequenceKeypoint.new(1,0,0)
  1411. local effecto = Instance.new("ParticleEmitter",spart)
  1412. effecto.Texture = "rbxassetid://296874871"
  1413. effecto.LightEmission = 1
  1414. effecto.Color = maincolor
  1415. effecto.Rate = 10000
  1416. effecto.Lifetime = NumberRange.new(0.5)
  1417. effecto.Size = NumberSequence.new({pt1e,pt2e})
  1418. effecto.Transparency = NumberSequence.new({pt1a,pt2a})
  1419. effecto.Speed = NumberRange.new(0,0)
  1420. effecto.RotSpeed = NumberRange.new(-500,500)
  1421. local bv = Instance.new("BodyVelocity")
  1422. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1423. bv.velocity = mouse.Hit.lookVector * 100
  1424. bv.Parent = spart
  1425. wait(0.05)
  1426. spart.Touched:connect(function(hit)
  1427. if touched == false then
  1428. touched = true
  1429. if hit.Name == "Water" then
  1430. local pt1er = NumberSequenceKeypoint.new(0,5,0)
  1431. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1432. local smokecolor = Color3.new(0.5,0.5,0.5)
  1433. local tick1 = Instance.new("Sound",spart)
  1434. tick1.SoundId = "rbxassetid://629468689"
  1435. tick1.Volume = 1.5
  1436. tick1.Pitch = 1
  1437. tick1:Play()
  1438. effecto.Rate = 0
  1439. local effectoz = Instance.new("ParticleEmitter",spart)
  1440. effectoz.Texture = "rbxassetid://296874871"
  1441. effectoz.LightEmission = 0.75
  1442. effectoz.Color = ColorSequence.new(smokecolor)
  1443. effectoz.Lifetime = NumberRange.new(3)
  1444. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1445. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1446. effectoz.Rotation = NumberRange.new(-300,300)
  1447. effectoz.RotSpeed = NumberRange.new(-500,500)
  1448. effectoz.Speed = NumberRange.new(10)
  1449. effectoz.VelocitySpread = 25
  1450. effectoz.Rate = 1000000000000
  1451. spart.Anchored = true
  1452. wait(1)
  1453. effectoz.Rate = 0
  1454. wait(2.5)
  1455. spart:Destroy()
  1456. end
  1457. if hit.Name ~= "Water" then
  1458. local saveposition = spart.CFrame
  1459. spart.Anchored = true
  1460. local tick1 = Instance.new("Sound",spart)
  1461. tick1.SoundId = "rbxassetid://304529688"
  1462. tick1.Volume = 1.5
  1463. tick1.Pitch = 1.25
  1464. tick1:Play()
  1465. effecto:Destroy()
  1466. local pt1er = NumberSequenceKeypoint.new(0,10,0)
  1467. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1468. local effectoz = Instance.new("ParticleEmitter",spart)
  1469. effectoz.Texture = "rbxassetid://296874871"
  1470. effectoz.LightEmission = 1
  1471. effectoz.Color = maincolor
  1472. effectoz.Lifetime = NumberRange.new(0.5)
  1473. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1474. effectoz.Speed = NumberRange.new(0,0)
  1475. effectoz.Rotation = NumberRange.new(-300,300)
  1476. effectoz.RotSpeed = NumberRange.new(-500,500)
  1477. effectoz.Speed = NumberRange.new(75)
  1478. effectoz.VelocitySpread = 10000000
  1479. effectoz.Rate = 1000000000000
  1480. spart.Size = vt(1,1,1)
  1481. spart.Transparency = 1
  1482. spart.CFrame = saveposition
  1483. Damagefunc(hit,10,15,-20,"Normal",root,.2,1)
  1484. wait(0.5)
  1485. effectoz.Rate = 0
  1486. for i = 0, 10 do
  1487. spart.Size = spart.Size + vt(0.5,0.5,0.5)
  1488. spart.CFrame = saveposition
  1489. wait()
  1490. end
  1491. spart:Destroy()
  1492. end
  1493. end
  1494. end)
  1495. end
  1496.  
  1497. function Firestorm()
  1498. local shur = Instance.new("Part",char)
  1499. local gahd = Instance.new("Sound",char)
  1500. char.Humanoid.WalkSpeed = 0
  1501. gahd.SoundId = "rbxassetid://313945165"
  1502. gahd.Volume = 4.5
  1503. gahd.Pitch = 0.595
  1504. gahd:Play()
  1505. shur.Transparency = 1
  1506. shur.Material = "Neon"
  1507. shur.BrickColor = bc("Dark green")
  1508. shur.Anchored = true
  1509. shur.CFrame = tors.CFrame + vt(0,-2.5,0)
  1510. shur.Size = vt(1,0.2,1)
  1511. shur.CanCollide = false
  1512. local dec = Instance.new("Decal",shur)
  1513. dec.Texture = symbolimg
  1514. dec.Face = "Top"
  1515. local dec2 = dec:Clone()
  1516. dec2.Parent = shur
  1517. dec2.Face = "Bottom"
  1518. local Meshshur = Instance.new("CylinderMesh",shur)
  1519. Meshshur.Scale = vt(0,1,0)
  1520. for i = 0, 25 do
  1521. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  1522. Meshshur.Scale = Meshshur.Scale + vt(2.5,0,2.5)
  1523. wait(0)
  1524. end
  1525. for i = 0, 10 do
  1526. larm.Transparency = larm.Transparency + 0.1
  1527. rarm.Transparency = rarm.Transparency + 0.1
  1528. lleg.Transparency = lleg.Transparency + 0.1
  1529. rleg.Transparency = rleg.Transparency + 0.1
  1530. tors.Transparency = tors.Transparency + 0.1
  1531. hed.Transparency = hed.Transparency + 0.1
  1532. wait()
  1533. end
  1534. local pt1mass = NumberSequenceKeypoint.new(0,15,0)
  1535. local effecton = Instance.new("ParticleEmitter",root)
  1536. effecton.LightEmission = 1
  1537. effecton.Texture = "rbxassetid://296874871"
  1538. effecton.Color = maincolor
  1539. effecton.Rate = 1000
  1540. effecton.Lifetime = NumberRange.new(0.75)
  1541. effecton.Size = NumberSequence.new({pt1mass,pt2})
  1542. effecton.Speed = NumberRange.new(5)
  1543. effecton.VelocitySpread = 100000000
  1544. effecton.RotSpeed = NumberRange.new(-300,300)
  1545. local ash = Instance.new("Sound",root)
  1546. ash.SoundId = "rbxassetid://181004943"
  1547. ash.Volume = 4
  1548. ash.Pitch = 0.25
  1549. ash:Play()
  1550. local sbs = Instance.new("BodyPosition", root)
  1551. sbs.P = 3000
  1552. sbs.D = 1000
  1553. sbs.maxForce = Vector3.new(500000, 500000000, 500000)
  1554. sbs.position = root.CFrame.p + Vector3.new(0, 175, 0)
  1555. wait(2.5)
  1556. for i = 0, 25 do
  1557. local touched = false
  1558. local delay = false
  1559. local spart = Instance.new("Part",char)
  1560. local tick1 = Instance.new("Sound",spart)
  1561. tick1.SoundId = "rbxassetid://304448425"
  1562. tick1.Volume = 1.5
  1563. tick1.Pitch = 0.85
  1564. tick1:Play()
  1565. spart.Size = vt(2,2,2)
  1566. spart.BrickColor = BrickColor.new("Deep orange")
  1567. spart.Transparency = 1
  1568. spart.CanCollide = false
  1569. spart.Material = "Neon"
  1570. spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
  1571. local pt1e = NumberSequenceKeypoint.new(0,15,0)
  1572. local pt2e = NumberSequenceKeypoint.new(1,0,0)
  1573. local effecto = Instance.new("ParticleEmitter",spart)
  1574. effecto.Texture = "rbxassetid://296874871"
  1575. effecto.LightEmission = 1
  1576. effecto.Color = maincolor
  1577. effecto.Rate = 10000
  1578. effecto.Lifetime = NumberRange.new(0.5)
  1579. effecto.Size = NumberSequence.new({pt1e,pt2e})
  1580. effecto.Transparency = NumberSequence.new({pt1a,pt2a})
  1581. effecto.Speed = NumberRange.new(0,0)
  1582. effecto.RotSpeed = NumberRange.new(-500,500)
  1583. local bv = Instance.new("BodyVelocity")
  1584. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1585. bv.velocity = mouse.Hit.lookVector * 150
  1586. bv.Parent = spart
  1587. wait(0.05)
  1588. spart.Touched:connect(function(hit)
  1589. if touched == false then
  1590. touched = true
  1591. if hit.Name == "Water" then
  1592. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  1593. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1594. local smokecolor = Color3.new(0.5,0.5,0.5)
  1595. local tick1 = Instance.new("Sound",spart)
  1596. tick1.SoundId = "rbxassetid://629468689"
  1597. tick1.Volume = 1.5
  1598. tick1.Pitch = 1
  1599. tick1:Play()
  1600. effecto.Rate = 0
  1601. local effectoz = Instance.new("ParticleEmitter",spart)
  1602. effectoz.Texture = "rbxassetid://296874871"
  1603. effectoz.LightEmission = 0.75
  1604. effectoz.Color = ColorSequence.new(smokecolor)
  1605. effectoz.Lifetime = NumberRange.new(3)
  1606. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1607. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1608. effectoz.Rotation = NumberRange.new(-300,300)
  1609. effectoz.RotSpeed = NumberRange.new(-500,500)
  1610. effectoz.Speed = NumberRange.new(10)
  1611. effectoz.VelocitySpread = 75
  1612. effectoz.Rate = 1000000000000
  1613. spart.Anchored = true
  1614. wait(3)
  1615. effectoz.Rate = 0
  1616. wait(2.5)
  1617. spart:Destroy()
  1618. end
  1619. if hit.Name ~= "Water" then
  1620. local saveposition = spart.CFrame
  1621. spart.Anchored = true
  1622. local tick1 = Instance.new("Sound",spart)
  1623. tick1.SoundId = "rbxassetid://304529688"
  1624. tick1.Volume = 1.5
  1625. tick1.Pitch = 0.85
  1626. tick1:Play()
  1627. local tickn = Instance.new("Sound",spart)
  1628. tickn.SoundId = "rbxassetid://138186576"
  1629. tickn.Volume = 1.5
  1630. tickn.Pitch = 1
  1631. tickn:Play()
  1632. local tick2e = Instance.new("Sound",spart)
  1633. tick2e.SoundId = "rbxassetid://272207079"
  1634. tick2e.Volume = 2.5
  1635. tick2e.Looped = true
  1636. tick2e.Pitch = 0.85
  1637. tick2e:Play()
  1638. effecto:Destroy()
  1639. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  1640. local pt1er2 = NumberSequenceKeypoint.new(0,25,0)
  1641. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1642. local effectoz = Instance.new("ParticleEmitter",spart)
  1643. effectoz.Texture = "rbxassetid://296874871"
  1644. effectoz.LightEmission = 1
  1645. effectoz.Color = maincolor
  1646. effectoz.Lifetime = NumberRange.new(2.5)
  1647. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1648. effectoz.Speed = NumberRange.new(0,0)
  1649. effectoz.Rotation = NumberRange.new(-300,300)
  1650. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1651. effectoz.RotSpeed = NumberRange.new(-500,500)
  1652. effectoz.Speed = NumberRange.new(10)
  1653. effectoz.VelocitySpread = 10000000
  1654. effectoz.Rate = 1000000000000
  1655. local effectoz2 = Instance.new("ParticleEmitter",spart)
  1656. effectoz2.Texture = "rbxassetid://296874871"
  1657. effectoz2.LightEmission = 1
  1658. effectoz2.Color = maincolor
  1659. effectoz2.Lifetime = NumberRange.new(0.5)
  1660. effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
  1661. effectoz2.Speed = NumberRange.new(0,0)
  1662. effectoz2.Rotation = NumberRange.new(-300,300)
  1663. effectoz2.RotSpeed = NumberRange.new(-500,500)
  1664. effectoz2.Speed = NumberRange.new(250)
  1665. effectoz2.VelocitySpread = 10000000
  1666. effectoz2.Rate = 1000000000000
  1667. spart.Size = vt(25,25,25)
  1668. spart.Transparency = 1
  1669. spart.CFrame = saveposition
  1670. wait(0.5)
  1671. Damagefunc(hit,50,60,-20,"Normal",root,.2,1)
  1672. effectoz2.Rate = 0
  1673. wait(5)
  1674. effectoz.Rate = 0
  1675. tick2e:Stop()
  1676. wait(2.5)
  1677. spart:Destroy()
  1678. end
  1679. end
  1680. end)
  1681. wait(0.215)
  1682. end
  1683. wait(1)
  1684. effecton.Rate = 0
  1685. for i = 0, 10 do
  1686. larm.Transparency = larm.Transparency - 0.1
  1687. rarm.Transparency = rarm.Transparency - 0.1
  1688. lleg.Transparency = lleg.Transparency - 0.1
  1689. rleg.Transparency = rleg.Transparency - 0.1
  1690. tors.Transparency = tors.Transparency - 0.1
  1691. hed.Transparency = hed.Transparency - 0.1
  1692. wait()
  1693. end
  1694. sbs:Destroy()
  1695. char.Humanoid.WalkSpeed = 16
  1696. for i = 0, 25 do
  1697. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  1698. Meshshur.Scale = Meshshur.Scale - vt(2.5,0,2.5)
  1699. wait(0)
  1700. end
  1701. effecton:Destroy()
  1702. shur:Destroy()
  1703. end
  1704.  
  1705.  
  1706. function SplashFire()
  1707. local shur = Instance.new("Part",char)
  1708. local gahd = Instance.new("Sound",char)
  1709. char.Humanoid.WalkSpeed = 0
  1710. gahd.SoundId = "rbxassetid://313945165"
  1711. gahd.Volume = 2.5
  1712. gahd.Pitch = 0.625
  1713. gahd:Play()
  1714. shur.Transparency = 1
  1715. shur.Material = "Neon"
  1716. shur.BrickColor = bc("Dark green")
  1717. shur.Anchored = true
  1718. shur.CFrame = tors.CFrame + vt(0,-2.5,0)
  1719. shur.Size = vt(1,0.2,1)
  1720. shur.CanCollide = false
  1721. local dec = Instance.new("Decal",shur)
  1722. dec.Texture = symbolimg
  1723. dec.Face = "Top"
  1724. local dec2 = dec:Clone()
  1725. dec2.Parent = shur
  1726. dec2.Face = "Bottom"
  1727. local Meshshur = Instance.new("CylinderMesh",shur)
  1728. Meshshur.Scale = vt(0,1,0)
  1729. for i = 0, 25 do
  1730. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  1731. Meshshur.Scale = Meshshur.Scale + vt(1,0,1)
  1732. wait(0)
  1733. end
  1734. for i = 0, 10 do
  1735. larm.Transparency = larm.Transparency + 0.1
  1736. rarm.Transparency = rarm.Transparency + 0.1
  1737. lleg.Transparency = lleg.Transparency + 0.1
  1738. rleg.Transparency = rleg.Transparency + 0.1
  1739. tors.Transparency = tors.Transparency + 0.1
  1740. hed.Transparency = hed.Transparency + 0.1
  1741. wait()
  1742. end
  1743. local pt1mass = NumberSequenceKeypoint.new(0,15,0)
  1744. local effecton = Instance.new("ParticleEmitter",root)
  1745. effecton.LightEmission = 1
  1746. effecton.Texture = "rbxassetid://296874871"
  1747. effecton.Color = maincolor
  1748. effecton.Rate = 1000
  1749. effecton.Lifetime = NumberRange.new(0.75)
  1750. effecton.Size = NumberSequence.new({pt1mass,pt2})
  1751. effecton.Speed = NumberRange.new(5)
  1752. effecton.VelocitySpread = 100000000
  1753. effecton.RotSpeed = NumberRange.new(-300,300)
  1754. local ash = Instance.new("Sound",root)
  1755. ash.SoundId = "rbxassetid://181004943"
  1756. ash.Volume = 4
  1757. ash.Pitch = 0.5
  1758. ash:Play()
  1759. local sbs = Instance.new("BodyPosition", root)
  1760. sbs.P = 3000
  1761. sbs.D = 1000
  1762. sbs.maxForce = Vector3.new(500000, 500000000, 500000)
  1763. sbs.position = root.CFrame.p + Vector3.new(0, 200, 0)
  1764. wait(1)
  1765. sbs.position = root.CFrame.p - Vector3.new(0, 500, 0)
  1766. wait(0.1)
  1767. sbs:Destroy()
  1768. wait(0.15)
  1769. effecton.Rate = 0
  1770. local spart = Instance.new("Part",char)
  1771. spart.Size = vt(2,2,2)
  1772. spart.BrickColor = BrickColor.new("Royal purple")
  1773. spart.Transparency = 1
  1774. spart.CanCollide = false
  1775. spart.Material = "Neon"
  1776. spart.Anchored = true
  1777. spart.CFrame = root.CFrame + Vector3.new(0,0.1,0)
  1778. local tick1 = Instance.new("Sound",spart)
  1779. tick1.SoundId = "rbxassetid://304529688"
  1780. tick1.Volume = 1.5
  1781. tick1.Pitch = 0.85
  1782. tick1:Play()
  1783. local tickn = Instance.new("Sound",spart)
  1784. tickn.SoundId = "rbxassetid://138186576"
  1785. tickn.Volume = 1.5
  1786. tickn.Pitch = 1
  1787. tickn:Play()
  1788. local tick2e = Instance.new("Sound",spart)
  1789. tick2e.SoundId = "rbxassetid://272207079"
  1790. tick2e.Volume = 2.5
  1791. tick2e.Looped = true
  1792. tick2e.Pitch = 0.85
  1793. tick2e:Play()
  1794. local pt1er = NumberSequenceKeypoint.new(0,10,0)
  1795. local pt1er2 = NumberSequenceKeypoint.new(0,20,0)
  1796. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1797. local effectoz = Instance.new("ParticleEmitter",spart)
  1798. effectoz.Texture = "rbxassetid://296874871"
  1799. effectoz.LightEmission = 1
  1800. effectoz.Color = maincolor
  1801. effectoz.Lifetime = NumberRange.new(2.5)
  1802. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1803. effectoz.Speed = NumberRange.new(0,0)
  1804. effectoz.Rotation = NumberRange.new(-300,300)
  1805. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1806. effectoz.RotSpeed = NumberRange.new(-500,500)
  1807. effectoz.Speed = NumberRange.new(5)
  1808. effectoz.VelocitySpread = 10000000
  1809. effectoz.Rate = 1000000000000
  1810. local effectoz2 = Instance.new("ParticleEmitter",spart)
  1811. effectoz2.Texture = "rbxassetid://296874871"
  1812. effectoz2.LightEmission = 1
  1813. effectoz2.Color = maincolor
  1814. effectoz2.Lifetime = NumberRange.new(0.5)
  1815. effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
  1816. effectoz2.Speed = NumberRange.new(0,0)
  1817. effectoz2.Rotation = NumberRange.new(-300,300)
  1818. effectoz2.RotSpeed = NumberRange.new(-500,500)
  1819. effectoz2.Speed = NumberRange.new(100)
  1820. effectoz2.VelocitySpread = 10000000
  1821. effectoz2.Rate = 1000000000000
  1822. spart.Size = vt(35,5,35)
  1823. spart.Transparency = 1
  1824. spart.CFrame = root.CFrame
  1825. wait(0.5)
  1826. spart.Touched:connect(function(hit)
  1827. Damagefunc(hit,25,30,-20,"Normal",root,.2,1)
  1828. end)
  1829. ash:Destroy()
  1830. effectoz2.Rate = 0
  1831. wait(5)
  1832. effecton:Destroy()
  1833. effectoz.Rate = 0
  1834. tick2e:Stop()
  1835. wait(2.5)
  1836. spart:Destroy()
  1837. wait(1)
  1838. for i = 0, 10 do
  1839. larm.Transparency = larm.Transparency - 0.1
  1840. rarm.Transparency = rarm.Transparency - 0.1
  1841. lleg.Transparency = lleg.Transparency - 0.1
  1842. rleg.Transparency = rleg.Transparency - 0.1
  1843. tors.Transparency = tors.Transparency - 0.1
  1844. hed.Transparency = hed.Transparency - 0.1
  1845. wait()
  1846. end
  1847. sbs:Destroy()
  1848. char.Humanoid.WalkSpeed = 16
  1849. for i = 0, 25 do
  1850. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  1851. Meshshur.Scale = Meshshur.Scale - vt(1,0,1)
  1852. wait(0)
  1853. end
  1854. shur:Destroy()
  1855. end
  1856.  
  1857. function MassiveFireBall()
  1858. local shur = Instance.new("Part",char)
  1859. local gahd = Instance.new("Sound",char)
  1860. char.Humanoid.WalkSpeed = 0
  1861. gahd.SoundId = "rbxassetid://313945165"
  1862. gahd.Volume = 2.5
  1863. gahd.Pitch = 0.6
  1864. gahd:Play()
  1865. shur.Transparency = 1
  1866. shur.Material = "Neon"
  1867. shur.BrickColor = bc("Dark green")
  1868. shur.Anchored = true
  1869. shur.CFrame = tors.CFrame + vt(0,-2.5,0)
  1870. shur.Size = vt(1,0.2,1)
  1871. shur.CanCollide = false
  1872. local dec = Instance.new("Decal",shur)
  1873. dec.Texture = symbolimg
  1874. dec.Face = "Top"
  1875. local dec2 = dec:Clone()
  1876. dec2.Parent = shur
  1877. dec2.Face = "Bottom"
  1878. local Meshshur = Instance.new("CylinderMesh",shur)
  1879. Meshshur.Scale = vt(0,1,0)
  1880. for i = 0, 25 do
  1881. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  1882. Meshshur.Scale = Meshshur.Scale + vt(1.25,0,1.25)
  1883. wait(0)
  1884. end
  1885. local touched = false
  1886. local delay = false
  1887. local spart = Instance.new("Part",char)
  1888. local tick1 = Instance.new("Sound",spart)
  1889. tick1.SoundId = "rbxassetid://304448425"
  1890. tick1.Volume = 1.5
  1891. tick1.Pitch = 0.85
  1892. tick1:Play()
  1893. spart.Size = vt(2,2,2)
  1894. spart.BrickColor = BrickColor.new("Royal purple")
  1895. spart.Transparency = 1
  1896. spart.CanCollide = false
  1897. spart.Material = "Neon"
  1898. spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
  1899. local pt1e = NumberSequenceKeypoint.new(0,15,0)
  1900. local pt2e = NumberSequenceKeypoint.new(1,0,0)
  1901. local effecto = Instance.new("ParticleEmitter",spart)
  1902. effecto.Texture = "rbxassetid://296874871"
  1903. effecto.LightEmission = 1
  1904. effecto.Color = maincolor
  1905. effecto.Rate = 10000
  1906. effecto.Lifetime = NumberRange.new(0.5)
  1907. effecto.Size = NumberSequence.new({pt1e,pt2e})
  1908. effecto.Transparency = NumberSequence.new({pt1a,pt2a})
  1909. effecto.Speed = NumberRange.new(0,0)
  1910. effecto.RotSpeed = NumberRange.new(-500,500)
  1911. local bv = Instance.new("BodyVelocity")
  1912. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1913. bv.velocity = mouse.Hit.lookVector * 150
  1914. bv.Parent = spart
  1915. wait(0.05)
  1916. spart.Touched:connect(function(hit)
  1917. if touched == false then
  1918. touched = true
  1919. if hit.Name == "Water" then
  1920. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  1921. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1922. local smokecolor = Color3.new(0.5,0.5,0.5)
  1923. local tick1 = Instance.new("Sound",spart)
  1924. tick1.SoundId = "rbxassetid://629468689"
  1925. tick1.Volume = 1.5
  1926. tick1.Pitch = 1
  1927. tick1:Play()
  1928. effecto.Rate = 0
  1929. local effectoz = Instance.new("ParticleEmitter",spart)
  1930. effectoz.Texture = "rbxassetid://296874871"
  1931. effectoz.LightEmission = 0.75
  1932. effectoz.Color = ColorSequence.new(smokecolor)
  1933. effectoz.Lifetime = NumberRange.new(3)
  1934. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1935. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1936. effectoz.Rotation = NumberRange.new(-300,300)
  1937. effectoz.RotSpeed = NumberRange.new(-500,500)
  1938. effectoz.Speed = NumberRange.new(10)
  1939. effectoz.VelocitySpread = 75
  1940. effectoz.Rate = 1000000000000
  1941. spart.Anchored = true
  1942. wait(3)
  1943. effectoz.Rate = 0
  1944. wait(2.5)
  1945. spart:Destroy()
  1946. end
  1947. if hit.Name ~= "Water" then
  1948. local saveposition = spart.CFrame
  1949. spart.Anchored = true
  1950. local tick1 = Instance.new("Sound",spart)
  1951. tick1.SoundId = "rbxassetid://304529688"
  1952. tick1.Volume = 1.5
  1953. tick1.Pitch = 0.85
  1954. tick1:Play()
  1955. local tickn = Instance.new("Sound",spart)
  1956. tickn.SoundId = "rbxassetid://138186576"
  1957. tickn.Volume = 1.5
  1958. tickn.Pitch = 1
  1959. tickn:Play()
  1960. local tick2e = Instance.new("Sound",spart)
  1961. tick2e.SoundId = "rbxassetid://272207079"
  1962. tick2e.Volume = 2.5
  1963. tick2e.Looped = true
  1964. tick2e.Pitch = 0.85
  1965. tick2e:Play()
  1966. effecto:Destroy()
  1967. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  1968. local pt1er2 = NumberSequenceKeypoint.new(0,25,0)
  1969. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  1970. local effectoz = Instance.new("ParticleEmitter",spart)
  1971. effectoz.Texture = "rbxassetid://296874871"
  1972. effectoz.LightEmission = 1
  1973. effectoz.Color = maincolor
  1974. effectoz.Lifetime = NumberRange.new(2.5)
  1975. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  1976. effectoz.Speed = NumberRange.new(0,0)
  1977. effectoz.Rotation = NumberRange.new(-300,300)
  1978. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  1979. effectoz.RotSpeed = NumberRange.new(-500,500)
  1980. effectoz.Speed = NumberRange.new(10)
  1981. effectoz.VelocitySpread = 10000000
  1982. effectoz.Rate = 1000000000000
  1983. local effectoz2 = Instance.new("ParticleEmitter",spart)
  1984. effectoz2.Texture = "rbxassetid://296874871"
  1985. effectoz2.LightEmission = 1
  1986. effectoz2.Color = maincolor
  1987. effectoz2.Lifetime = NumberRange.new(0.5)
  1988. effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
  1989. effectoz2.Speed = NumberRange.new(0,0)
  1990. effectoz2.Rotation = NumberRange.new(-300,300)
  1991. effectoz2.RotSpeed = NumberRange.new(-500,500)
  1992. effectoz2.Speed = NumberRange.new(250)
  1993. effectoz2.VelocitySpread = 10000000
  1994. effectoz2.Rate = 1000000000000
  1995. spart.Size = vt(25,25,25)
  1996. spart.Transparency = 1
  1997. spart.CFrame = saveposition
  1998. wait(0.5)
  1999. Damagefunc(hit,50,60,-20,"Normal",root,.2,1)
  2000. effectoz2.Rate = 0
  2001. wait(5)
  2002. effectoz.Rate = 0
  2003. tick2e:Stop()
  2004. wait(2.5)
  2005. spart:Destroy()
  2006. end
  2007. end
  2008. end)
  2009. char.Humanoid.WalkSpeed = 16
  2010. wait(1)
  2011. for i = 0, 25 do
  2012. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  2013. Meshshur.Scale = Meshshur.Scale - vt(1.25,0,1.25)
  2014. wait(0)
  2015. end
  2016. shur:Destroy()
  2017. end
  2018.  
  2019.  
  2020. mouse.KeyDown:connect(function(k)
  2021.  
  2022. k = k:lower()
  2023. if k == "z" and attacking == false then
  2024. if energy >= 10 then
  2025. energy = energy - 10
  2026. attacking = true
  2027. Fireball()
  2028. attacking = false
  2029. end
  2030. end
  2031. if k == "x" and attacking == false then
  2032. if energy >= 50 then
  2033. energy = energy - 50
  2034. attacking = true
  2035. MassiveFireBall()
  2036. attacking = false
  2037. end
  2038. end
  2039. if k == "c" and attacking == false then
  2040. if energy >= 100 then
  2041. energy = energy - 100
  2042. attacking = true
  2043. Firestorm()
  2044. attacking = false
  2045. end
  2046. end
  2047. if k == "v" and attacking == false then
  2048. if energy >= 25 then
  2049. energy = energy - 25
  2050. attacking = true
  2051. SplashFire()
  2052. attacking = false
  2053. end
  2054. end
  2055. if k == "b" and attacking == false then
  2056. if charge == false then
  2057. tick1:Resume()
  2058. tick2:Resume()
  2059. charge = true
  2060. attacking = true
  2061. if charge == true then
  2062. effecto.Rate = 10000
  2063. end
  2064. end
  2065. end
  2066. end)
  2067. mouse.KeyUp:connect(function(k)
  2068.  
  2069. k = k:lower()
  2070. if k == "b" then
  2071. charge = false
  2072. tick1:Pause()
  2073. tick2:Pause()
  2074. attacking = false
  2075. effecto.Rate = 0
  2076. end
  2077. end)
  2078.  
  2079.  
  2080. --==/GAMEPAD CONTROLS/==--
  2081.  
  2082. game:GetService("UserInputService").InputBegan:connect(function(input)
  2083. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  2084. if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then
  2085. magix = true
  2086. elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then
  2087. magix = false
  2088. elseif input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == false then
  2089. sprinting = true
  2090. end
  2091. end
  2092. end)
  2093.  
  2094. game:GetService("UserInputService").InputEnded:connect(function(input)
  2095. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  2096. if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then
  2097. sprinting = false
  2098. end
  2099. end
  2100. end)
  2101.  
  2102.  
  2103.  
  2104. game:GetService("RunService").Stepped:connect(function()
  2105. angle = (angle % 100) + anglespeed/10
  2106. rootpart.CanCollide = false
  2107. local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude
  2108. if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed < 2 then
  2109. animpose = "Jump"
  2110.  
  2111. elseif speed < 2 then -- idle
  2112. animpose = "Idle"
  2113.  
  2114. elseif sprinting == true then -- sprinting
  2115. animpose = "Sprinting"
  2116.  
  2117. elseif speed > 2 and sprinting ~= true then -- walking
  2118. walking = true
  2119. animpose = "Moving"
  2120. end
  2121. --==/ANIMATION FUNCTIONS/==--
  2122. if animpose == "Idle" and anim == false then -- idle
  2123. anglespeed = 0.5
  2124. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(5) + math.sin(angle) * 0.02, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1)
  2125. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, 0.15) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-15) + -math.sin(angle) * 0.02), 0.1)
  2126. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -0.4) * CFrame.Angles(math.rad(-20), math.rad(-35), 0), 0.1)
  2127. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1)
  2128. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(-40), math.sin(angle) * 0.01), 0.1)
  2129. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-90), 0, math.rad(220)), 0.1)
  2130.  
  2131. elseif animpose == "Moving" and anim == false and walking == true then -- walk
  2132. anglespeed = 0.5
  2133. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  2134. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  2135. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, -0.3) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
  2136. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1)
  2137. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1)
  2138. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-110), -rootpart.RotVelocity.Y/25, math.rad(180)), 0.1)
  2139. Humanoid.WalkSpeed = 6
  2140.  
  2141. elseif animpose == "Sprinting" and anim == false then -- sprint
  2142. anglespeed = 0.5
  2143. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  2144. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  2145. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
  2146. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1)
  2147. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1)
  2148. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-135), -rootpart.RotVelocity.Y/15, math.rad(180)), 0.1)
  2149. Humanoid.WalkSpeed = 40
  2150. end
  2151. end)
  2152.  
  2153. wait(1)
  2154. ----------------------------------------------------------------------------------
  2155. -------------------------------------------------------------------------------------
  2156. ------------------------------------------------------------------------------------
  2157. local Character = owner.Character
  2158. -------------------------------------------------------------------------------------
  2159. -------------------------------------------------------------------------------------
  2160.  
  2161. local Color2 = 98/255, 37/255, 209/255
  2162. local Num = 0.5
  2163.  
  2164. local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
  2165. local Size = 0.8
  2166. local Rate = 300
  2167. -------------------------------------------------------------------------------------
  2168. local Player = owner
  2169. local Character = Player.Character
  2170. Torso = Character:WaitForChild'Torso'
  2171.  
  2172. local Wing1 = Instance.new("Part",Character)
  2173. Wing1.FormFactor = Enum.FormFactor.Custom
  2174. Wing1.Size = Vector3.new(.2, .2, .2)
  2175. Wing1.Name = "WIng_1"
  2176.  
  2177. local fire = Instance.new("ParticleEmitter", Wing1)
  2178. fire.VelocitySpread = 0
  2179. fire.Lifetime = NumberRange.new(2)
  2180. fire.Acceleration = Vector3.new(0, 2, 2)
  2181. fire.RotSpeed = NumberRange.new(10)
  2182. fire.Rate = Rate
  2183. fire.Rotation = NumberRange.new(151515)
  2184. fire.Name = "Fire"
  2185. fire.LightEmission = 1
  2186. fire.LockedToPart = true
  2187. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2188. fire.Color = ColorSequence.new(Color3.new( 0/255, 255/255, 0/255), Color3.new(98/255, 37/255, 209/255))
  2189. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2190.  
  2191. local Wing2 = Wing1:Clone()
  2192. Wing2.Parent = Torso
  2193. local x,y,z = 0,-1,-6
  2194.  
  2195. Wld = function(a,b,cf)
  2196. local Weld = Instance.new('Weld',a)
  2197. Weld.Part0 = a
  2198. Weld.Part1 = b
  2199. Weld.C1 = cf
  2200. return Weld
  2201. end
  2202.  
  2203. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  2204. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  2205.  
  2206.  
  2207. game:service'RunService'.Stepped:connect(function()
  2208. --z = 6+math.sin(tick()*2)
  2209. y = -1+math.sin(tick()*Num)*Num2
  2210. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2211. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2212. end)
  2213. ------------------------------------------------------------------------------------------------
  2214. local Player = owner
  2215. local Character = Player.Character
  2216. Torso = Character:WaitForChild'Torso'
  2217.  
  2218. local Wing1 = Instance.new("Part",Character)
  2219. Wing1.FormFactor = Enum.FormFactor.Custom
  2220. Wing1.Size = Vector3.new(.2, .2, .2)
  2221. Wing1.Name = "WIng_1"
  2222.  
  2223. local fire = Instance.new("ParticleEmitter", Wing1)
  2224. fire.VelocitySpread = 0
  2225. fire.Lifetime = NumberRange.new(2.5)
  2226. fire.Acceleration = Vector3.new(0, 4, 4)
  2227. fire.RotSpeed = NumberRange.new(10)
  2228. fire.Rate = Rate
  2229. fire.Rotation = NumberRange.new(151515)
  2230. fire.Name = "Fire"
  2231. fire.LightEmission = 1
  2232. fire.LockedToPart = true
  2233. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2234. fire.Color = ColorSequence.new(Color3.new( 0/255, 255/255, 0/255), Color3.new(98/255, 37/255, 209/255))
  2235. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2236.  
  2237. local Wing2 = Wing1:Clone()
  2238. Wing2.Parent = Torso
  2239. local x,y,z = 0,-1,-6
  2240.  
  2241. Wld = function(a,b,cf)
  2242. local Weld = Instance.new('Weld',a)
  2243. Weld.Part0 = a
  2244. Weld.Part1 = b
  2245. Weld.C1 = cf
  2246. return Weld
  2247. end
  2248.  
  2249. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  2250. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  2251.  
  2252. print'Loaded'
  2253.  
  2254. game:service'RunService'.Stepped:connect(function()
  2255. --z = 6+math.sin(tick()*2)
  2256. y = -1+math.sin(tick()*Num)*Num2
  2257. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2258. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2259. end)
  2260.  
  2261. ------------------------------------------------------------------------------------------------
  2262. local Player = owner
  2263. local Character = Player.Character
  2264. Torso = Character:WaitForChild'Torso'
  2265.  
  2266. local Wing1 = Instance.new("Part",Character)
  2267. Wing1.FormFactor = Enum.FormFactor.Custom
  2268. Wing1.Size = Vector3.new(.2, .2, .2)
  2269. Wing1.Name = "WIng_1"
  2270.  
  2271. local fire = Instance.new("ParticleEmitter", Wing1)
  2272. fire.VelocitySpread = 0
  2273. fire.Lifetime = NumberRange.new(2.8)
  2274. fire.Acceleration = Vector3.new(0, 4, 4)
  2275. fire.RotSpeed = NumberRange.new(10)
  2276. fire.Rate = Rate
  2277. fire.Rotation = NumberRange.new(151515)
  2278. fire.Name = "Fire"
  2279. fire.LightEmission = 1
  2280. fire.LockedToPart = true
  2281. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2282. fire.Color = ColorSequence.new(Color3.new( 0/255, 255/255, 0/255), Color3.new(98/255, 37/255, 209/255))
  2283. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2284.  
  2285. local Wing2 = Wing1:Clone()
  2286. Wing2.Parent = Torso
  2287. local x,y,z = 0,-1,-6
  2288.  
  2289. Wld = function(a,b,cf)
  2290. local Weld = Instance.new('Weld',a)
  2291. Weld.Part0 = a
  2292. Weld.Part1 = b
  2293. Weld.C1 = cf
  2294. return Weld
  2295. end
  2296.  
  2297. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  2298. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  2299.  
  2300. print'Loaded'
  2301.  
  2302. game:service'RunService'.Stepped:connect(function()
  2303. --z = 6+math.sin(tick()*2)
  2304. y = -1+math.sin(tick()*Num)*Num2
  2305. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2306. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2307. end)
  2308.  
  2309. ------------------------------------------------------------------------------------------------
  2310. local Player = owner
  2311. local Character = Player.Character
  2312. Torso = Character:WaitForChild'Torso'
  2313.  
  2314. local Wing1 = Instance.new("Part",Character)
  2315. Wing1.FormFactor = Enum.FormFactor.Custom
  2316. Wing1.Size = Vector3.new(.2, .2, .2)
  2317. Wing1.Name = "WIng_1"
  2318.  
  2319. local fire = Instance.new("ParticleEmitter", Wing1)
  2320. fire.VelocitySpread = 0
  2321. fire.Lifetime = NumberRange.new(3)
  2322. fire.Acceleration = Vector3.new(0, 4, 4)
  2323. fire.RotSpeed = NumberRange.new(10)
  2324. fire.Rate = Rate
  2325. fire.Rotation = NumberRange.new(151515)
  2326. fire.Name = "Fire"
  2327. fire.LightEmission = 1
  2328. fire.LockedToPart = true
  2329. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2330. fire.Color = ColorSequence.new(Color3.new( 0/255, 255/255, 0/255), Color3.new(98/255, 37/255, 209/255))
  2331. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2332.  
  2333. local Wing2 = Wing1:Clone()
  2334. Wing2.Parent = Torso
  2335. local x,y,z = 0,-1,-6
  2336.  
  2337. Wld = function(a,b,cf)
  2338. local Weld = Instance.new('Weld',a)
  2339. Weld.Part0 = a
  2340. Weld.Part1 = b
  2341. Weld.C1 = cf
  2342. return Weld
  2343. end
  2344.  
  2345. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  2346. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  2347.  
  2348. print'Loaded'
  2349.  
  2350. game:service'RunService'.Stepped:connect(function()
  2351. --z = 6+math.sin(tick()*2)
  2352. y = -1+math.sin(tick()*Num)*Num2
  2353. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2354. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2355. end)
  2356.  
  2357. ------------------------------------------------------------------------------------------------
  2358. local Player = owner
  2359. local Character = Player.Character
  2360. Torso = Character:WaitForChild'Torso'
  2361.  
  2362. local Wing1 = Instance.new("Part",Character)
  2363. Wing1.FormFactor = Enum.FormFactor.Custom
  2364. Wing1.Size = Vector3.new(.2, .2, .2)
  2365. Wing1.Name = "WIng_1"
  2366.  
  2367. local fire = Instance.new("ParticleEmitter", Wing1)
  2368. fire.VelocitySpread = 0
  2369. fire.Lifetime = NumberRange.new(3.1)
  2370. fire.Acceleration = Vector3.new(0, 4, 4)
  2371. fire.RotSpeed = NumberRange.new(10)
  2372. fire.Rate = Rate
  2373. fire.Rotation = NumberRange.new(151515)
  2374. fire.Name = "Fire"
  2375. fire.LightEmission = 1
  2376. fire.LockedToPart = true
  2377. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2378. fire.Color = ColorSequence.new(Color3.new( 0/255, 255/255, 0/255), Color3.new(98/255, 37/255, 209/255))
  2379. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2380.  
  2381. local Wing2 = Wing1:Clone()
  2382. Wing2.Parent = Torso
  2383. local x,y,z = 0,-1,-6
  2384.  
  2385. Wld = function(a,b,cf)
  2386. local Weld = Instance.new('Weld',a)
  2387. Weld.Part0 = a
  2388. Weld.Part1 = b
  2389. Weld.C1 = cf
  2390. return Weld
  2391. end
  2392.  
  2393. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  2394. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  2395.  
  2396. print'Loaded'
  2397.  
  2398. game:service'RunService'.Stepped:connect(function()
  2399. --z = 6+math.sin(tick()*2)
  2400. y = -1+math.sin(tick()*Num)*Num2
  2401. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2402. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2403. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement