Phantom_Mods

se_blueFE

Apr 8th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 173.00 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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. --//////
  84. local verlet = {}
  85. verlet.step_time = 1 / 50
  86. verlet.gravity = Vector3.new(0, -10, 0)
  87. local char = Player
  88. local torso = char:WaitForChild("Torso")
  89. local parts = {}
  90. local render = game:GetService("RunService").RenderStepped
  91.  
  92. wait(2)
  93.  
  94. local point = {}
  95. local link = {}
  96. local rope = {}
  97.  
  98. local function ccw(A,B,C)
  99. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  100. end
  101.  
  102. local function intersect(A,B,C,D)
  103. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  104. end
  105.  
  106. local function vec2(v)
  107. return Vector2.new(v.x, v.z)
  108. end
  109.  
  110. function point:step()
  111. if not self.fixed then
  112. local derivative = (self.position - self.last_position) * 0.95
  113. self.last_position = self.position
  114. self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
  115. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  116. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  117. local pointE = self.position + torso.CFrame.lookVector * 100
  118. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  119. if not doIntersect then
  120. self.postition = self.position - torso.CFrame.lookVector * 10
  121. end]]
  122. end
  123. end
  124.  
  125. function link:step()
  126. for i = 1, 1 do
  127. local distance = self.point1.position - self.point2.position
  128. local magnitude = distance.magnitude
  129. local differance = (self.length - magnitude) / magnitude
  130. local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
  131. if not self.point1.fixed then
  132. self.point1.position = self.point1.position + translation
  133. end
  134. if not self.point2.fixed then
  135. self.point2.position = self.point2.position - translation
  136. end
  137. end
  138. end
  139.  
  140. function verlet.new(class, a, b, c)
  141. if class == "Point" then
  142. local new = {}
  143. setmetatable(new, {__index = point})
  144. new.class = class
  145. new.position = a or Vector3.new()
  146. new.last_position = new.position
  147. new.velocity = verlet.gravity
  148. new.fixed = false
  149. return new
  150. elseif class == "Link" then
  151. local new = {}
  152. setmetatable(new, {__index = link})
  153. new.class = class
  154. new.point1 = a
  155. new.point2 = b
  156. new.length = c or (a.position - b.position).magnitude
  157. return new
  158. elseif class == "Rope" then
  159. local new = {}
  160. setmetatable(new, {__index = link})
  161. new.class = class
  162. new.start_point = a
  163. new.finish_point = b
  164. new.points = {}
  165. new.links = {}
  166. local inc = (b - a) / 10
  167. for i = 0, 10 do
  168. table.insert(new.points, verlet.new("Point", a + (i * inc)))
  169. end
  170. for i = 2, #new.points do
  171. table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
  172. end
  173. return new
  174. end
  175. end
  176.  
  177. local tris = {}
  178. local triParts = {}
  179.  
  180. local function GetDiscoColor(hue)
  181. local section = hue % 1 * 0.05
  182. local secondary = 0.05 * math.pi * (section % 1)
  183. if section < 1 then
  184. return Color3.new(0,0.3,0.7)
  185. end
  186. end
  187. local function setupPart(part)
  188. part.Anchored = true
  189. part.FormFactor = 3
  190. part.CanCollide = false
  191. part.TopSurface = 10
  192. part.BottomSurface = 10
  193. part.LeftSurface = 10
  194. part.RightSurface = 10
  195. part.FrontSurface = 10
  196. part.BackSurface = 10
  197. part.Material = "Neon"
  198. local m = Instance.new("SpecialMesh", part)
  199. m.MeshType = "Wedge"
  200. m.Scale = Vector3.new(0.2, 1, 1)
  201. return part
  202. end
  203.  
  204. local function CFrameFromTopBack(at, top, back)
  205. local right = top:Cross(back)
  206. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  207. end
  208.  
  209. local function drawTri(parent, a, b, c)
  210. local this = {}
  211. local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  212. local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  213. function this:Set(a, b, c)
  214. local ab, bc, ca = b-a, c-b, a-c
  215. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  216. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  217. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  218. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  219. if edg1 < edg2 then
  220. if edg1 >= edg3 then
  221. a, b, c = c, a, b
  222. ab, bc, ca = ca, ab, bc
  223. abm = cam
  224. end
  225. else
  226. if edg2 < edg3 then
  227. a, b, c = b, c, a
  228. ab, bc, ca = bc, ca, ab
  229. abm = bcm
  230. else
  231. a, b, c = c, a, b
  232. ab, bc, ca = ca, ab, bc
  233. abm = cam
  234. end
  235. end
  236.  
  237. local len1 = -ca:Dot(ab)/abm
  238. local len2 = abm - len1
  239. local width = (ca + ab.unit*len1).magnitude
  240.  
  241. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  242.  
  243. if len1 > 0.2 then
  244. mPart1.Parent = parent
  245. mPart1.Size = Vector3.new(0.2, width, len1)
  246. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  247. else
  248. mPart1.Parent = nil
  249. end
  250.  
  251. if len2 > 0.2 then
  252. mPart2.Parent = parent
  253. mPart2.Size = Vector3.new(0.2, width, len2)
  254. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  255. else
  256. mPart2.Parent = nil
  257. end
  258. end
  259. function this:SetProperty(prop, value)
  260. mPart1[prop] = value
  261. mPart2[prop] = value
  262. end
  263. this:Set(a, b, c)
  264. function this:Destroy()
  265. mPart1:Destroy()
  266. mPart2:Destroy()
  267. end
  268. this.p1 = mPart1
  269. this.p2 = mPart2
  270. this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
  271. this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
  272. return this
  273. end
  274.  
  275. function verlet.draw(object, id)
  276. if object.class == "Point" then
  277. local part = parts[id]
  278. part.BrickColor = BrickColor.new(0, 0.3, 0.7)
  279. part.Transparency = 0
  280. part.formFactor = 3
  281. part.Anchored = true
  282. part.CanCollide = true
  283. part.TopSurface = 0
  284. part.BottomSurface = 0
  285. part.Size = Vector3.new(0.35, 0.35, 0.35)
  286. part.Material = "Neon"
  287. part.CFrame = CFrame.new(object.position)
  288. part.Parent = torso
  289. return part
  290. elseif object.class == "Link" then
  291. local part = parts[id]
  292. local dist = (object.point1.position - object.point2.position).magnitude
  293. part.Size = Vector3.new(0.2, 0.2, dist)
  294. part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
  295. part.Parent = torso
  296. return part
  297. end
  298. end
  299.  
  300. function verlet.clear()
  301. for _, v in pairs(workspace:GetChildren()) do
  302. if v.Name == "Part" then
  303. v:Destroy()
  304. end
  305. end
  306. end
  307.  
  308. local points = {}
  309. local links = {}
  310.  
  311. for x = 0, 2 do
  312. points[x] = {}
  313. for y = 0, 3 do
  314. points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
  315. points[x][y].fixed = y == 0
  316. end
  317. end
  318.  
  319. for x = 1, 2 do
  320. for y = 0, 3 do
  321. links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
  322. end
  323. end
  324.  
  325. for x = 0, 2 do
  326. for y = 1, 3 do
  327. links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
  328. end
  329. end
  330.  
  331. render:connect(function()
  332. for x = 0, 2 do
  333. for y = 0, 3 do
  334. if y == 0 then
  335. points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
  336. else
  337. points[x][y]:step()
  338. end
  339. end
  340. end
  341. for i = 1, #links do
  342. links[i]:step()
  343. end
  344. for i = 1, #tris do
  345. triParts[#triParts + 1] = tris[i].p1
  346. triParts[#triParts + 1] = tris[i].p2
  347. end
  348. tris = {}
  349. for x = 1, 2 do
  350. for y = 1, 3 do
  351. tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
  352. tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
  353. end
  354. end
  355. end)
  356.  
  357. function sandbox(var,func)
  358. local env = getfenv(func)
  359. local newenv = setmetatable({},{
  360. __index = function(self,k)
  361. if k=="script" then
  362. return var
  363. else
  364. return env[k]
  365. end
  366. end,
  367. })
  368. setfenv(func,newenv)
  369. return func
  370. end
  371. local naeeym2 = Instance.new("BillboardGui",game.Workspace.Phantom_RBX.Head)
  372. naeeym2.Size = UDim2.new(0,100,0,40)
  373. naeeym2.StudsOffset = Vector3.new(0,3,0)
  374. naeeym2.Adornee = game.Workspace.Phantom_RBX.Head
  375. naeeym2.Name = "TalkingBillBoard"
  376. local tecks2 = Instance.new("TextLabel",naeeym2)
  377. tecks2.BackgroundTransparency = 1
  378. tecks2.BorderSizePixel = 1
  379. tecks2.Text = "Phantom, the Searing Warden"
  380. tecks2.Font = "Fantasy"
  381. tecks2.TextSize = 30
  382. tecks2.TextStrokeTransparency = 0
  383. tecks2.TextColor3 = Color3.new(1,1,1)
  384. tecks2.TextStrokeColor3 = Color3.new(0,0.3,0.7)
  385. tecks2.Size = UDim2.new(1,0,0.5,0)
  386.  
  387. cors = {}
  388. mas = Instance.new("Model",game:GetService("Lighting"))
  389. LocalScript0 = Instance.new("LocalScript")
  390. ParticleEmitter1 = Instance.new("ParticleEmitter")
  391. ParticleEmitter2 = Instance.new("ParticleEmitter")
  392. BillboardGui3 = Instance.new("BillboardGui")
  393. TextLabel4 = Instance.new("TextLabel")
  394. TextLabel5 = Instance.new("TextLabel")
  395. ParticleEmitter6 = Instance.new("ParticleEmitter")
  396. LocalScript7 = Instance.new("LocalScript")
  397. NumberValue8 = Instance.new("NumberValue")
  398. NumberValue9 = Instance.new("NumberValue")
  399. BoolValue10 = Instance.new("BoolValue")
  400. ParticleEmitter11 = Instance.new("ParticleEmitter")
  401. ParticleEmitter12 = Instance.new("ParticleEmitter")
  402. ParticleEmitter13 = Instance.new("ParticleEmitter")
  403. ParticleEmitter14 = Instance.new("ParticleEmitter")
  404. ParticleEmitter15 = Instance.new("ParticleEmitter")
  405. ParticleEmitter16 = Instance.new("ParticleEmitter")
  406. ParticleEmitter17 = Instance.new("ParticleEmitter")
  407. ParticleEmitter18 = Instance.new("ParticleEmitter")
  408. ParticleEmitter19 = Instance.new("ParticleEmitter")
  409. ParticleEmitter20 = Instance.new("ParticleEmitter")
  410. Part21 = Instance.new("Part")
  411. SpecialMesh22 = Instance.new("SpecialMesh")
  412. Folder23 = Instance.new("Folder")
  413. CharacterMesh24 = Instance.new("CharacterMesh")
  414. CharacterMesh25 = Instance.new("CharacterMesh")
  415. CharacterMesh26 = Instance.new("CharacterMesh")
  416. CharacterMesh27 = Instance.new("CharacterMesh")
  417. CharacterMesh28 = Instance.new("CharacterMesh")
  418. Part29 = Instance.new("Part")
  419. SpecialMesh30 = Instance.new("SpecialMesh")
  420. LocalScript0.Name = "SearingEmperor"
  421. LocalScript0.Parent = mas
  422. table.insert(cors,sandbox(LocalScript0,function()
  423. --//====================================================\\--
  424. --|| CREATED BY SHACKLUSTER
  425. --\\====================================================//--
  426.  
  427. wait(1)
  428.  
  429. Player = game:GetService("Players").LocalPlayer
  430. PlayerGui = Player.PlayerGui
  431. Cam = workspace.CurrentCamera
  432. Backpack = Player.Backpack
  433. repeat wait() until Player.Character
  434. Character = Player.Character
  435. repeat wait() until Player.Character:FindFirstChildOfClass("Humanoid")
  436. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  437. Mouse = Player:GetMouse()
  438. Mouse2 = Player:GetMouse()
  439. RootPart = Character["HumanoidRootPart"]
  440. Torso = Character["Torso"]
  441. Head = Character["Head"]
  442. RightArm = Character["Right Arm"]
  443. LeftArm = Character["Left Arm"]
  444. RightLeg = Character["Right Leg"]
  445. LeftLeg = Character["Left Leg"]
  446. RootJoint = RootPart["RootJoint"]
  447. Neck = Torso["Neck"]
  448. RightShoulder = Torso["Right Shoulder"]
  449. LeftShoulder = Torso["Left Shoulder"]
  450. RightHip = Torso["Right Hip"]
  451. LeftHip = Torso["Left Hip"]
  452.  
  453. IT = Instance.new
  454. CF = CFrame.new
  455. VT = Vector3.new
  456. RAD = math.rad
  457. C3 = Color3.new
  458. UD2 = UDim2.new
  459. BRICKC = BrickColor.new
  460. ANGLES = CFrame.Angles
  461. EULER = CFrame.fromEulerAnglesXYZ
  462. COS = math.cos
  463. ACOS = math.acos
  464. SIN = math.sin
  465. ASIN = math.asin
  466. ABS = math.abs
  467. MRANDOM = math.random
  468. FLOOR = math.floor
  469.  
  470. --//=================================\\
  471. --|| USEFUL VALUES
  472. --\\=================================//
  473.  
  474. Animation_Speed = 3
  475. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  476. local Speed = 16
  477. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  478. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  479. local RIGHTSHOULDERC0 = CF(-0.5, -0.25, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  480. local LEFTSHOULDERC0 = CF(0.5, -0.25, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  481. local DAMAGEMULTIPLIER = 1.05
  482. local ANIM = "Idle"
  483. local ATTACK = false
  484. local EQUIPPED = false
  485. local HOLD = false
  486. local COMBO = 1
  487. local Rooted = false
  488. local SINE = 0
  489. local KEYHOLD = false
  490. local CHANGE = 2 / Animation_Speed
  491. local WALKINGANIM = false
  492. local VALUE1 = false
  493. local VALUE2 = false
  494. local ROBLOXIDLEANIMATION = IT("Animation")
  495. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  496. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id="
  497. --ROBLOXIDLEANIMATION.Parent = Humanoid
  498. local WEAPON2GUI = IT("ScreenGui", PlayerGui)
  499. WEAPON2GUI.Name = "BanishV3Gui"
  500. local Weapon2 = IT("Model")
  501. Weapon2.Name = "Adds"
  502. local Effects2 = IT("Folder", Weapon2)
  503. Effects2.Name = "Effects2"
  504. local TOBANISH = {}
  505. script.Parent = PlayerGui
  506. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  507. WEAPONGUI.Name = "Weapon GUI"
  508. local Effects = IT("Folder", Character)
  509. Effects.Name = "Effects"
  510. local SpecialEffects = IT("Folder", Character)
  511. SpecialEffects.Name = "SpecialEffects"
  512. local ANIMATOR = Humanoid.Animator
  513. local ANIMATE = Character.Animate
  514. local UNANCHOR = true
  515. local REGENRATE = 1
  516. local FULLREGEN = false
  517. local POSEIDON = false
  518. local EXPLOSIONSMALLSOUND = 439342426
  519. local EXPLOSIONMEDIUMSOUND = 605005842
  520. local EXPLOSIONLARGESOUND = 565538688
  521. local CHARGE = 278641993
  522. local POSEIDONSOUND = 374289727
  523. local FIREBALLSOUND = 414517770
  524. local BURNSOUND = 565777213
  525. local FIREFIELD = false
  526. local SEARING = false
  527. local BODYPOS = nil
  528. local GYRO = nil
  529. local DIRECTTURN = false
  530. local APPLYGYRO = true
  531. local EXPLOSIONSOUNDS = {439342426,605005842}
  532. local SONGS = {1579337956,1470622998,621394148,1007872698,146436031,1088649597,275089687}
  533. local CHOSENSONG = MRANDOM(1,#SONGS)
  534.  
  535. --//=================================\\
  536. --\\=================================//
  537.  
  538.  
  539. --//=================================\\
  540. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  541. --\\=================================//
  542.  
  543. ArtificialHB = Instance.new("BindableEvent", script)
  544. ArtificialHB.Name = "ArtificialHB"
  545.  
  546. script:WaitForChild("ArtificialHB")
  547.  
  548. frame = Frame_Speed
  549. tf = 0
  550. allowframeloss = false
  551. tossremainder = false
  552. lastframe = tick()
  553. script.ArtificialHB:Fire()
  554.  
  555. game:GetService("RunService").Heartbeat:connect(function(s, p)
  556. tf = tf + s
  557. if tf >= frame then
  558. if allowframeloss then
  559. script.ArtificialHB:Fire()
  560. lastframe = tick()
  561. else
  562. for i = 1, math.floor(tf / frame) do
  563. script.ArtificialHB:Fire()
  564. end
  565. lastframe = tick()
  566. end
  567. if tossremainder then
  568. tf = 0
  569. else
  570. tf = tf - frame * math.floor(tf / frame)
  571. end
  572. end
  573. end)
  574.  
  575. --//=================================\\
  576. --\\=================================//
  577.  
  578. --//=================================\\
  579. --|| SOME FUNCTIONS
  580. --\\=================================//
  581.  
  582.  
  583. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  584. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  585. end
  586.  
  587. function SpawnTrail(FROM,TO,BIG)
  588. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Trail", VT(10,10,10))
  589. MakeForm(TRAIL,"Cyl")
  590. local cR=255
  591. local cG=0
  592. local cB=0
  593. local flg5=1 local omgidk=1
  594. local add=15
  595. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  596. if omgidk>10000 then omgidk=0 end
  597. omgidk=omgidk+1
  598. if cR>=255 then flg5=1 end
  599. if cG>=255 then flg5=2 end
  600. if cB>=255 then flg5=3 end
  601. if flg5==1 then cR=cR-add cG=cG+add end
  602. if flg5==2 then cG=cG-add cB=cB+add end
  603. if flg5==3 then cB=cB-add cR=cR+add end
  604. color=Color3.fromRGB(cR,cG,cB)
  605. TRAIL.Color = color
  606. end)
  607. local DIST = (FROM - TO).Magnitude
  608. if BIG == true then
  609. TRAIL.Size = VT(5,DIST,5)
  610. else
  611. TRAIL.Size = VT(5,DIST,5)
  612. end
  613. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  614. coroutine.resume(coroutine.create(function()
  615. for i = 1, 55 do
  616. Swait()
  617. TRAIL.Transparency = TRAIL.Transparency + 0.01
  618. end
  619. TRAIL:remove()
  620. end))
  621. end
  622.  
  623. function PositiveAngle(NUMBER)
  624. if NUMBER >= 0 then
  625. NUMBER = 0
  626. end
  627. return NUMBER
  628. end
  629.  
  630. function NegativeAngle(NUMBER)
  631. if NUMBER <= 0 then
  632. NUMBER = 0
  633. end
  634. return NUMBER
  635. end
  636.  
  637. function Swait(NUMBER)
  638. if NUMBER == 0 or NUMBER == nil then
  639. ArtificialHB.Event:wait()
  640. else
  641. for i = 1, NUMBER do
  642. ArtificialHB.Event:wait()
  643. end
  644. end
  645. end
  646.  
  647. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  648. local NEWMESH = IT(MESH)
  649. if MESH == "SpecialMesh" then
  650. NEWMESH.MeshType = MESHTYPE
  651. if MESHID ~= "nil" and MESHID ~= "" then
  652. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  653. end
  654. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  655. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  656. end
  657. end
  658. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  659. NEWMESH.Scale = SCALE
  660. NEWMESH.Parent = PARENT
  661. return NEWMESH
  662. end
  663.  
  664. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  665. local NEWPART = IT("Part")
  666. NEWPART.formFactor = FORMFACTOR
  667. NEWPART.Reflectance = REFLECTANCE
  668. NEWPART.Transparency = TRANSPARENCY
  669. NEWPART.CanCollide = false
  670. NEWPART.Locked = true
  671. NEWPART.Anchored = true
  672. if ANCHOR == false then
  673. NEWPART.Anchored = false
  674. end
  675. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  676. NEWPART.Name = NAME
  677. NEWPART.Size = SIZE
  678. NEWPART.Position = Torso.Position
  679. NEWPART.Material = MATERIAL
  680. NEWPART:BreakJoints()
  681. NEWPART.Parent = PARENT
  682. return NEWPART
  683. end
  684.  
  685. local function weldBetween(a, b)
  686. local weldd = Instance.new("ManualWeld")
  687. weldd.Part0 = a
  688. weldd.Part1 = b
  689. weldd.C0 = CFrame.new()
  690. weldd.C1 = b.CFrame:inverse() * a.CFrame
  691. weldd.Parent = a
  692. return weldd
  693. end
  694.  
  695.  
  696. function QuaternionFromCFrame(cf)
  697. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  698. local trace = m00 + m11 + m22
  699. if trace > 0 then
  700. local s = math.sqrt(1 + trace)
  701. local recip = 0.5 / s
  702. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  703. else
  704. local i = 0
  705. if m11 > m00 then
  706. i = 1
  707. end
  708. if m22 > (i == 0 and m00 or m11) then
  709. i = 2
  710. end
  711. if i == 0 then
  712. local s = math.sqrt(m00 - m11 - m22 + 1)
  713. local recip = 0.5 / s
  714. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  715. elseif i == 1 then
  716. local s = math.sqrt(m11 - m22 - m00 + 1)
  717. local recip = 0.5 / s
  718. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  719. elseif i == 2 then
  720. local s = math.sqrt(m22 - m00 - m11 + 1)
  721. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  722. end
  723. end
  724. end
  725.  
  726. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  727. local xs, ys, zs = x + x, y + y, z + z
  728. local wx, wy, wz = w * xs, w * ys, w * zs
  729. local xx = x * xs
  730. local xy = x * ys
  731. local xz = x * zs
  732. local yy = y * ys
  733. local yz = y * zs
  734. local zz = z * zs
  735. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  736. end
  737.  
  738. function QuaternionSlerp(a, b, t)
  739. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  740. local startInterp, finishInterp;
  741. if cosTheta >= 0.0001 then
  742. if (1 - cosTheta) > 0.0001 then
  743. local theta = ACOS(cosTheta)
  744. local invSinTheta = 1 / SIN(theta)
  745. startInterp = SIN((1 - t) * theta) * invSinTheta
  746. finishInterp = SIN(t * theta) * invSinTheta
  747. else
  748. startInterp = 1 - t
  749. finishInterp = t
  750. end
  751. else
  752. if (1 + cosTheta) > 0.0001 then
  753. local theta = ACOS(-cosTheta)
  754. local invSinTheta = 1 / SIN(theta)
  755. startInterp = SIN((t - 1) * theta) * invSinTheta
  756. finishInterp = SIN(t * theta) * invSinTheta
  757. else
  758. startInterp = t - 1
  759. finishInterp = t
  760. end
  761. end
  762. 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
  763. end
  764.  
  765. function Clerp(a, b, t)
  766. local qa = {QuaternionFromCFrame(a)}
  767. local qb = {QuaternionFromCFrame(b)}
  768. local ax, ay, az = a.x, a.y, a.z
  769. local bx, by, bz = b.x, b.y, b.z
  770. local _t = 1 - t
  771. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  772. end
  773.  
  774. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  775. local frame = IT("Frame")
  776. frame.BackgroundTransparency = TRANSPARENCY
  777. frame.BorderSizePixel = BORDERSIZEPIXEL
  778. frame.Position = POSITION
  779. frame.Size = SIZE
  780. frame.BackgroundColor3 = COLOR
  781. frame.BorderColor3 = BORDERCOLOR
  782. frame.Name = NAME
  783. frame.Parent = PARENT
  784. return frame
  785. end
  786.  
  787. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  788. local label = IT("TextLabel")
  789. label.BackgroundTransparency = 1
  790. label.Size = UD2(1, 0, 1, 0)
  791. label.Position = UD2(0, 0, 0, 0)
  792. label.TextColor3 = TEXTCOLOR
  793. label.TextStrokeTransparency = STROKETRANSPARENCY
  794. label.TextTransparency = TRANSPARENCY
  795. label.FontSize = TEXTFONTSIZE
  796. label.Font = TEXTFONT
  797. label.BorderSizePixel = BORDERSIZEPIXEL
  798. label.TextScaled = false
  799. label.Text = TEXT
  800. label.Name = NAME
  801. label.Parent = PARENT
  802. return label
  803. end
  804.  
  805. function NoOutlines(PART)
  806. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  807. end
  808.  
  809. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  810. local NEWWELD = IT(TYPE)
  811. NEWWELD.Part0 = PART0
  812. NEWWELD.Part1 = PART1
  813. NEWWELD.C0 = C0
  814. NEWWELD.C1 = C1
  815. NEWWELD.Parent = PARENT
  816. return NEWWELD
  817. end
  818.  
  819. local S = IT("Sound")
  820. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  821. local NEWSOUND = nil
  822. coroutine.resume(coroutine.create(function()
  823. NEWSOUND = S:Clone()
  824. NEWSOUND.Parent = PARENT
  825. NEWSOUND.Volume = VOLUME
  826. NEWSOUND.Pitch = PITCH
  827. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  828. NEWSOUND:play()
  829. if DOESLOOP == true then
  830. NEWSOUND.Looped = true
  831. else
  832. repeat wait(1) until NEWSOUND.Playing == false
  833. NEWSOUND:remove()
  834. end
  835. end))
  836. return NEWSOUND
  837. end
  838.  
  839. function CFrameFromTopBack(at, top, back)
  840. local right = top:Cross(back)
  841. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  842. end
  843.  
  844. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  845. function WACKYEFFECT(Table)
  846. local TYPE = (Table.EffectType or "Sphere")
  847. local SIZE = (Table.Size or VT(1,1,1))
  848. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  849. local TRANSPARENCY = (Table.Transparency or 0)
  850. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  851. local CFRAME = (Table.CFrame or Torso.CFrame)
  852. local MOVEDIRECTION = (Table.MoveToPos or nil)
  853. local ROTATION1 = (Table.RotationX or 0)
  854. local ROTATION2 = (Table.RotationY or 0)
  855. local ROTATION3 = (Table.RotationZ or 0)
  856. local MATERIAL = (Table.Material or "Neon")
  857. local COLOR = (Table.Color or C3(1,1,1))
  858. local TIME = (Table.Time or 45)
  859. local SOUNDID = (Table.SoundID or nil)
  860. local SOUNDPITCH = (Table.SoundPitch or nil)
  861. local SOUNDVOLUME = (Table.SoundVolume or nil)
  862. coroutine.resume(coroutine.create(function()
  863. local PLAYSSOUND = false
  864. local SOUND = nil
  865. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  866. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  867. PLAYSSOUND = true
  868. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  869. end
  870. EFFECT.Color = COLOR
  871. local MSH = nil
  872. if TYPE == "Sphere" then
  873. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  874. elseif TYPE == "Block" then
  875. MSH = IT("BlockMesh",EFFECT)
  876. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  877. elseif TYPE == "Wave" then
  878. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  879. elseif TYPE == "Ring" then
  880. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  881. elseif TYPE == "Slash" then
  882. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  883. elseif TYPE == "Round Slash" then
  884. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  885. elseif TYPE == "Swirl" then
  886. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  887. elseif TYPE == "Skull" then
  888. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  889. elseif TYPE == "Crystal" then
  890. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  891. end
  892. if MSH ~= nil then
  893. local MOVESPEED = nil
  894. if MOVEDIRECTION ~= nil then
  895. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  896. end
  897. local GROWTH = SIZE - ENDSIZE
  898. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  899. if TYPE == "Block" then
  900. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  901. else
  902. EFFECT.CFrame = CFRAME
  903. end
  904. for LOOP = 1, TIME+1 do
  905. Swait()
  906. MSH.Scale = MSH.Scale - GROWTH/TIME
  907. if TYPE == "Wave" then
  908. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  909. end
  910. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  911. if TYPE == "Block" then
  912. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  913. else
  914. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  915. end
  916. if MOVEDIRECTION ~= nil then
  917. local ORI = EFFECT.Orientation
  918. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  919. EFFECT.Orientation = ORI
  920. end
  921. end
  922. if PLAYSSOUND == false then
  923. EFFECT:remove()
  924. else
  925. repeat Swait() until SOUND.Playing == false
  926. EFFECT:remove()
  927. end
  928. else
  929. if PLAYSSOUND == false then
  930. EFFECT:remove()
  931. else
  932. repeat Swait() until SOUND.Playing == false
  933. EFFECT:remove()
  934. end
  935. end
  936. end))
  937. end
  938.  
  939. function MakeForm(PART,TYPE)
  940. if TYPE == "Cyl" then
  941. local MSH = IT("CylinderMesh",PART)
  942. elseif TYPE == "Ball" then
  943. local MSH = IT("SpecialMesh",PART)
  944. MSH.MeshType = "Sphere"
  945. elseif TYPE == "Wedge" then
  946. local MSH = IT("SpecialMesh",PART)
  947. MSH.MeshType = "Wedge"
  948. end
  949. end
  950.  
  951. Debris = game:GetService("Debris")
  952.  
  953. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  954. local DIRECTION = CF(StartPos,EndPos).lookVector
  955. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  956. end
  957.  
  958. function Particles(Which,Parent,Enabled)
  959. if script:FindFirstChild(Which) then
  960. local PARTICLES = script:FindFirstChild(Which):Clone()
  961. PARTICLES.Parent = Parent
  962. PARTICLES.Name = "CurseParticles"
  963. if Enabled ~= true then
  964. PARTICLES:Emit(Enabled)
  965. Debris:AddItem(PARTICLES,10)
  966. else
  967. PARTICLES.Enabled = true
  968. return PARTICLES
  969. end
  970. end
  971. end
  972.  
  973. --//=================================\\
  974. --|| WEAPON CREATION
  975. --\\=================================//
  976. local Particle = IT("ParticleEmitter",nil)
  977. Particle.Enabled = false
  978. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  979. Particle.LightEmission = 0.5
  980. Particle.Rate = 150
  981. Particle.ZOffset = 0.2
  982. Particle.Rotation = NumberRange.new(-180, 180)
  983. Particle.RotSpeed = NumberRange.new(-180, 180)
  984. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  985. Particle.Color = ColorSequence.new(C3(70,103,164),C3(35,71,139),C3(51,88,130),C3(82,124,174),C3(9,137,207))
  986.  
  987. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  988. function ParticleEmitter(Table)
  989. local PRTCL = Particle:Clone()
  990. local Speed = Table.Speed or 5
  991. local Drag = Table.Drag or 0
  992. local Size1 = Table.Size1 or 1
  993. local Size2 = Table.Size2 or 5
  994. local Lifetime1 = Table.Lifetime1 or 9.5
  995. local Lifetime2 = Table.Lifetime2 or 10
  996. local Parent = Table.Parent or Torso
  997. local Emit = Table.Emit or 100
  998. local Offset = Table.Offset or 360
  999. local Acel = Table.Acel or VT(0,0,0)
  1000. local Enabled = Table.Enabled or false
  1001. PRTCL.Parent = Parent
  1002. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1003. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1004. PRTCL.Speed = NumberRange.new(Speed)
  1005. PRTCL.VelocitySpread = Offset
  1006. PRTCL.Drag = Drag
  1007. PRTCL.Acceleration = Acel
  1008. if Enabled == false then
  1009. PRTCL:Emit(Emit)
  1010. Debris:AddItem(PRTCL,Lifetime2)
  1011. else
  1012. PRTCL.Enabled = true
  1013. end
  1014. return PRTCL
  1015. end
  1016. m = game.Players.LocalPlayer
  1017. char = m.Character
  1018.  
  1019. local Handle = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1020. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1021. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1022. MakeForm(Part,"Wedge")
  1023. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1024. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1025. MakeForm(Part,"Wedge")
  1026. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1027. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1028. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1029. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1030. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1031. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1032. MakeForm(Part,"Cyl")
  1033. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1034. for i = 1, 8 do
  1035. local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1036. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1037. end
  1038. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1039. MakeForm(Part,"Cyl")
  1040. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1041. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1042. MakeForm(Part,"Ball")
  1043. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1044. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1045. MakeForm(Part,"Wedge")
  1046. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1047. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1048. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1049. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1050. MakeForm(Part,"Cyl")
  1051. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1052. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1053. MakeForm(Part,"Cyl")
  1054. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1055. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1056. MakeForm(Part,"Cyl")
  1057. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1058. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1059. MakeForm(Part,"Wedge")
  1060. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1061. local LASTPART = Handle
  1062. for i = 1, 10 do
  1063. if LASTPART == Handle then
  1064. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1065. LASTPART = Part
  1066. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1067. else
  1068. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1069. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1070. LASTPART = Part
  1071. end
  1072. end
  1073.  
  1074. local Barrel = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1075. MakeForm(Barrel,"Cyl")
  1076. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1077. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1078. MakeForm(Part,"Cyl")
  1079. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1080. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1081. MakeForm(Part,"Wedge")
  1082. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1083. local Hole2 = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1084. MakeForm(Hole2,"Cyl")
  1085. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
  1086. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1087. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1088. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1089. local Part = CreatePart(3, Weapon2, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1090. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1091. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1092. coroutine.resume(coroutine.create(function()
  1093. while wait() do
  1094. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1095. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1096. end
  1097. end))
  1098.  
  1099. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.7, Size2 = 0, Lifetime1 = 0.7, Lifetime2 = 0.7, Parent = Hole2, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)})
  1100. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.8, Size2 = 0, Lifetime1 = 0.8, Lifetime2 = 0.9, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)})
  1101.  
  1102. local cR=255
  1103. local cG=0
  1104. local cB=0
  1105. local flg5=1 local omgidk=1
  1106. local add=15
  1107. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  1108. if omgidk>10000 then omgidk=0 end
  1109. omgidk=omgidk+1
  1110. if cR>=255 then flg5=1 end
  1111. if cG>=255 then flg5=2 end
  1112. if cB>=255 then flg5=3 end
  1113. if flg5==1 then cR=cR-add cG=cG+add end
  1114. if flg5==2 then cG=cG-add cB=cB+add end
  1115. if flg5==3 then cB=cB-add cR=cR+add end
  1116. color=Color3.fromRGB(cR,cG,cB)
  1117. for _, c in pairs(Weapon2:GetDescendants()) do
  1118. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects2 and c.Parent.Parent ~= Effects2 then
  1119. c.Material = "Glass"
  1120. c.Color = C3(0,0,0)
  1121. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1122. c.Color = color
  1123. c.Material = "Neon"
  1124. end
  1125. end
  1126. end)
  1127. Weapon2.Parent = Character
  1128. for _, c in pairs(Weapon2:GetChildren()) do
  1129. if c.ClassName == "Part" then
  1130. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1131. end
  1132. end
  1133.  
  1134. Humanoid.Died:connect(function()
  1135. ATTACK = true
  1136. end)
  1137.  
  1138. local GUI = script.NameGui
  1139. GUI.Parent = RootPart
  1140. GUI.PlayerToHideFrom = Player
  1141. Humanoid.DisplayDistanceType = "None"
  1142. GUI.Enabled = true
  1143. local Pauldrons = script.Pauldrons
  1144. Pauldrons.Parent = Character
  1145. Pauldrons.CFrame = Torso.CFrame
  1146. local WELD = weldBetween(Torso,Pauldrons)
  1147. Pauldrons.Anchored = false
  1148. Pauldrons.Transparency = 0
  1149. local FLINTLOCK = script.Flintlock
  1150. FLINTLOCK.Parent = Character
  1151. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, FLINTLOCK, CF(1,1.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1152.  
  1153. local REGENSOUND = 487215897
  1154. for _, c in pairs(Character:GetDescendants()) do
  1155. if c and c.Parent then
  1156. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  1157. local ACCESSORY = c.Parent
  1158. c.Parent = Character
  1159. if c then
  1160. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  1161. weldBetween(Head,c)
  1162. else
  1163. weldBetween(Torso,c)
  1164. end
  1165. end
  1166. ACCESSORY:remove()
  1167. end
  1168. end
  1169. end
  1170. wait()
  1171. local BODY = {}
  1172. for _, c in pairs(Character:GetDescendants()) do
  1173. if c:IsA("BasePart") then
  1174. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1175. end
  1176. local REGENVALUE = IT("BoolValue",c)
  1177. REGENVALUE.Name = "IsRegening"
  1178. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name,REGENVALUE})
  1179. elseif c:IsA("JointInstance") and c.Name ~= "AccessoryWeld" then
  1180. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil,nil})
  1181. end
  1182. end
  1183. function FullBodyRegen()
  1184. if FULLREGEN == false then
  1185. FULLREGEN = true
  1186. Character.Parent = workspace
  1187. GUI.Enabled = false
  1188. CreateSound(FIREBALLSOUND,Torso,3,MRANDOM(10,12)/10,false)
  1189. UNANCHOR = false
  1190. for e = 1, #BODY do
  1191. if BODY[e] ~= nil then
  1192. local STUFF = BODY[e]
  1193. local PART = STUFF[1]
  1194. local PARENT = STUFF[2]
  1195. local MATERIAL = STUFF[3]
  1196. local COLOR = STUFF[4]
  1197. local TRANSPARENCY = STUFF[5]
  1198. --local SIZE = STUFF[6]
  1199. local NAME = STUFF[7]
  1200. local VALUE = STUFF[8]
  1201. PART.Parent = PARENT
  1202. Humanoid.MaxHealth = "inf"
  1203. Humanoid.Health = "inf"
  1204. Humanoid.Parent = nil
  1205. Humanoid = IT("Humanoid",Character)
  1206. Humanoid.Died:Connect(FullBodyRegen)
  1207. PART.Parent = PARENT
  1208. if PART:IsA("BasePart") and VALUE.Value == false and PART ~= RootPart then
  1209. VALUE.Value = true
  1210. coroutine.resume(coroutine.create(function()
  1211. PART.Transparency = 1
  1212. CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/15,false)
  1213. local REGEN = script.Regen:Clone()
  1214. REGEN.Parent = PART
  1215. REGEN.Speed = NumberRange.new(30)
  1216. REGEN:Emit(100)
  1217. local REGENING = script.Regen2:Clone()
  1218. REGENING.Parent = PART
  1219. REGENING.Enabled = true
  1220. REGENING.Speed = NumberRange.new(35)
  1221. wait()
  1222. local RANGE = 35
  1223. for i = 1, math.ceil(REGENRATE*25) do
  1224. wait()
  1225. ApplyAoE(PART.Position,6,1,1,0,false)
  1226. REGENING.Speed = NumberRange.new(RANGE)
  1227. RANGE = RANGE - (35/(math.ceil(REGENRATE*20)))
  1228. end
  1229. REGEN.Speed = NumberRange.new(6)
  1230. REGEN:Emit(60)
  1231. wait(REGENRATE/3)
  1232. RootPart.Velocity = VT(0,0,0)
  1233. UNANCHOR = true
  1234. GUI.Enabled = true
  1235. PART.Transparency = 0
  1236. REGEN.Rate = 50
  1237. REGEN.Enabled = true
  1238. REGENING.Enabled = false
  1239. wait(REGENRATE/1.5)
  1240. VALUE.Value = false
  1241. Debris:AddItem(REGENING,5)
  1242. FULLREGEN = false
  1243. REGEN.Enabled = false
  1244. Debris:AddItem(REGEN,5)
  1245. end))
  1246. end
  1247. end
  1248. end
  1249. end
  1250. end
  1251. function Regen()
  1252. Character.Parent = workspace
  1253. for e = 1, #BODY do
  1254. if BODY[e] ~= nil then
  1255. local STUFF = BODY[e]
  1256. local PART = STUFF[1]
  1257. local PARENT = STUFF[2]
  1258. local MATERIAL = STUFF[3]
  1259. local COLOR = STUFF[4]
  1260. local TRANSPARENCY = STUFF[5]
  1261. --local SIZE = STUFF[6]
  1262. local NAME = STUFF[7]
  1263. local VALUE = STUFF[8]
  1264. if PART.ClassName == "Part" and PART ~= RootPart then
  1265. PART.Material = MATERIAL
  1266. PART.Name = NAME
  1267. end
  1268. if PART.Parent ~= PARENT then
  1269. PART.Parent = PARENT
  1270. if PART:IsA("BasePart") and PART ~= RootPart and FULLREGEN == false then
  1271. if VALUE.Value == false then
  1272. VALUE.Value = true
  1273. coroutine.resume(coroutine.create(function()
  1274. PART.Transparency = 1
  1275. wait(REGENRATE)
  1276. CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false)
  1277. local REGENING = script.Regen:Clone()
  1278. REGENING.Parent = PART
  1279. REGENING.Enabled = true
  1280. for i = 1, math.ceil(REGENRATE*10) do
  1281. wait()
  1282. ApplyAoE(PART.Position,6,1,1,0,false)
  1283. end
  1284. wait(REGENRATE)
  1285. PART.Transparency = 0
  1286. wait(REGENRATE/5)
  1287. REGENING.Enabled = false
  1288. VALUE.Value = false
  1289. Debris:AddItem(REGENING,5)
  1290. end))
  1291. end
  1292. elseif PART:IsA("JointInstance") and PARENT ~= RootPart and FULLREGEN == false then
  1293. local VALUE = PARENT.IsRegening
  1294. if VALUE == false then
  1295. VALUE.Value = true
  1296. local PART = PART.Part1
  1297. coroutine.resume(coroutine.create(function()
  1298. PART.Transparency = 1
  1299. wait(REGENRATE)
  1300. CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false)
  1301. local REGENING = script.Regen:Clone()
  1302. REGENING.Parent = PART
  1303. REGENING.Enabled = true
  1304. for i = 1, math.ceil(REGENRATE*10) do
  1305. wait()
  1306. ApplyAoE(PART.Position,6,1,1,0,false)
  1307. end
  1308. wait(REGENRATE)
  1309. PART.Transparency = 0
  1310. wait(REGENRATE/5)
  1311. REGENING.Enabled = false
  1312. VALUE.Value = false
  1313. end))
  1314. end
  1315. end
  1316. end
  1317. end
  1318. end
  1319. end
  1320.  
  1321. for _, c in pairs(script.Package:GetChildren()) do
  1322. c.Parent = Character
  1323. end
  1324.  
  1325. local b = IT("BodyForce",RootPart)
  1326. b.Name = "LowGrav"
  1327. b.force = Vector3.new(0,1500,0)
  1328.  
  1329. local SKILLTEXTCOLOR = C3(0,0,0)
  1330. local SKILLFONT = "Fantasy"
  1331. local SKILLTEXTSIZE = 7
  1332.  
  1333. local BACKATTACHMENT1 = IT("Attachment",Torso)
  1334. BACKATTACHMENT1.Position = VT(0.5, 0.5, 0.75)
  1335. local BACKATTACHMENT2 = IT("Attachment",Torso)
  1336. BACKATTACHMENT2.Position = VT(-0.5, 0.5, 0.75)
  1337.  
  1338. Humanoid.Died:Connect(FullBodyRegen)
  1339.  
  1340. --//=================================\\
  1341. --|| DAMAGING
  1342. --\\=================================//
  1343.  
  1344. function printbye(Name)
  1345. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your life is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  1346. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1347. end
  1348. workspace.ChildAdded:connect(function(instance)
  1349. for BANISH = 1, #TOBANISH do
  1350. if TOBANISH[BANISH] ~= nil then
  1351. if instance.Name == TOBANISH[BANISH] then
  1352. coroutine.resume(coroutine.create(function()
  1353. printbye(instance.Name)
  1354. instance:ClearAllChildren()
  1355. Debris:AddItem(instance,0.0005)
  1356. end))
  1357. end
  1358. end
  1359. end
  1360. end)
  1361.  
  1362. function ApplyDamage(Humanoid,Damage)
  1363. if Humanoid.Health == math.huge then
  1364. Humanoid.Parent:BreakJoints()
  1365. else
  1366. local MULTIPLY = Humanoid.MaxHealth/100
  1367. Damage = Damage * DAMAGEMULTIPLIER
  1368. if Humanoid.Health ~= 0 then
  1369. Humanoid.Health = Humanoid.Health - Damage*MULTIPLY
  1370. end
  1371. end
  1372. end
  1373.  
  1374. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,CAMSINSTAKILL,INSTAKILL)
  1375. local CHILDREN = workspace:GetDescendants()
  1376. for index, CHILD in pairs(CHILDREN) do
  1377. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1378. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1379. if HUM then
  1380. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1381. if TORSO then
  1382. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1383. if INSTAKILL == true or HUM.MaxHealth == math.huge then
  1384. CHILD:BreakJoints()
  1385. else
  1386. local DMG = MRANDOM(MINDMG,MAXDMG)
  1387. ApplyDamage(HUM,DMG)
  1388. end
  1389. if FLING > 0 then
  1390. for _, c in pairs(CHILD:GetChildren()) do
  1391. if c:IsA("BasePart") then
  1392. local bv = Instance.new("BodyVelocity")
  1393. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1394. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1395. bv.Parent = c
  1396. Debris:AddItem(bv,0.05)
  1397. end
  1398. end
  1399. end
  1400. end
  1401. end
  1402. end
  1403. end
  1404. end
  1405. end
  1406.  
  1407. --//=================================\\
  1408. --|| ATTACK FUNCTIONS AND STUFF
  1409. --\\=================================//
  1410. function Banish(Foe)
  1411. if Foe then
  1412. coroutine.resume(coroutine.create(function()
  1413. --if game.Players:FindFirstChild(Foe.Name) then
  1414. table.insert(TOBANISH,Foe.Name)
  1415. printbye(Foe.Name)
  1416. --end
  1417. Foe.Archivable = true
  1418. local CLONE = Foe:Clone()
  1419. Foe:Destroy()
  1420. CLONE.Parent = Effects2
  1421. CLONE:BreakJoints()
  1422. local MATERIALS = {"Glass","Neon"}
  1423. for _, c in pairs(CLONE:GetDescendants()) do
  1424. if c:IsA("BasePart") then
  1425. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1426. CreateSound(340722848, c, 10, 1, false)
  1427. end
  1428. c.Anchored = true
  1429. c.Transparency = c.Transparency + 0.2
  1430. c.Material = MATERIALS[MRANDOM(1,2)]
  1431. c.Color = C3(0,0.7,0.3)
  1432. if c.ClassName == "MeshPart" then
  1433. c.TextureID = ""
  1434. end
  1435. if c:FindFirstChildOfClass("SpecialMesh") then
  1436. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1437. end
  1438. if c:FindFirstChildOfClass("Decal") then
  1439. c:FindFirstChildOfClass("Decal"):remove()
  1440. end
  1441. c.Name = "Banished"
  1442. c.CanCollide = false
  1443. else
  1444. c:remove()
  1445. end
  1446. end
  1447. local A = false
  1448. for i = 1, 35 do
  1449. if A == false then
  1450. A = true
  1451. elseif A == true then
  1452. A = false
  1453. end
  1454. for _, c in pairs(CLONE:GetDescendants()) do
  1455. if c:IsA("BasePart") then
  1456. c.Anchored = true
  1457. c.Material = MATERIALS[MRANDOM(1,2)]
  1458. c.Transparency = c.Transparency + 0.8/35
  1459. if A == false then
  1460. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1461. elseif A == true then
  1462. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1463. end
  1464. end
  1465. end
  1466. Swait()
  1467. end
  1468. CLONE:remove()
  1469. end))
  1470. end
  1471. end
  1472.  
  1473. function ApplyAoE2(POSITION,RANGE,ISBANISH)
  1474. local CHILDREN = workspace:GetDescendants()
  1475. for index, CHILD in pairs(CHILDREN) do
  1476. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1477. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1478. if HUM then
  1479. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1480. if TORSO then
  1481. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1482. if ISBANISH == true then
  1483. Banish(CHILD)
  1484. else
  1485. if ISBANISH == "Gravity" then
  1486. HUM.PlatformStand = true
  1487. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1488. local grav = Instance.new("BodyPosition",TORSO)
  1489. grav.D = 15
  1490. grav.P = 20000
  1491. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1492. grav.position = TORSO.Position
  1493. grav.Name = "V3BanishForce"..Player.Name
  1494. else
  1495. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1496. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1497. end
  1498. else
  1499. HUM.PlatformStand = false
  1500. end
  1501. end
  1502. elseif ISBANISH == "Gravity" then
  1503. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1504. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1505. HUM.PlatformStand = false
  1506. end
  1507. end
  1508. end
  1509. end
  1510. end
  1511. end
  1512. end
  1513.  
  1514. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  1515. local CHILDREN = workspace:GetDescendants()
  1516. for index, CHILD in pairs(CHILDREN) do
  1517. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1518. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1519. if HUM then
  1520. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1521. if TORSO then
  1522. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1523. CHILD:BreakJoints()
  1524. if FLING ~= 0 then
  1525. for _, c in pairs(CHILD:GetChildren()) do
  1526. if c:IsA("BasePart") and c.Transparency == 0 then
  1527. if BURN == true then
  1528. Fire(c)
  1529. end
  1530. local bv = Instance.new("BodyVelocity")
  1531. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1532. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1533. bv.Parent = c
  1534. Debris:AddItem(bv,0.05)
  1535. end
  1536. end
  1537. end
  1538. end
  1539. end
  1540. end
  1541. end
  1542. end
  1543. end
  1544.  
  1545. function MouseDown(Mouse)
  1546. HOLD = true
  1547. if ATTACK == false then
  1548. end
  1549. end
  1550.  
  1551. function MouseUp(Mouse)
  1552. HOLD = false
  1553. end
  1554.  
  1555. function Fireball()
  1556. ATTACK = true
  1557. Rooted = true
  1558. local GYRO = IT("BodyGyro",RootPart)
  1559. GYRO.D = 20
  1560. GYRO.P = 4000
  1561. GYRO.MaxTorque = VT(40000,40000,40000)
  1562. local POSITION = IT("BodyPosition",RootPart)
  1563. POSITION.Position = RootPart.Position+VT(0,2,0)
  1564. POSITION.D = 450
  1565. POSITION.P = 40000
  1566. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1567. local FIRE = Particles("FistFire",RightArm,true)
  1568. CreateSound(CHARGE,RightArm,6,1,false)
  1569. coroutine.resume(coroutine.create(function()
  1570. repeat
  1571. Swait()
  1572. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1573. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  1574. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  1575. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1576. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1577. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1578. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1579. until ATTACK == false
  1580. FIRE.LockedToPart = false
  1581. FIRE.Enabled = false
  1582. Debris:AddItem(FIRE,5)
  1583. GYRO:remove()
  1584. POSITION:remove()
  1585. end))
  1586. wait(1)
  1587. repeat
  1588. Particles("ExplosionFire1",RightArm,70)
  1589. coroutine.resume(coroutine.create(function()
  1590. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5,5,5))
  1591. FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p)
  1592. CreateSound(FIREBALLSOUND,FIREBALL,6,1,false)
  1593. local FLAME = Particles("FireballFire1",FIREBALL,true)
  1594. local FLAME2 = Particles("FireballFire2",FIREBALL,true)
  1595. for i = 1, 250 do
  1596. Swait()
  1597. local HIT,HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 10, Character)
  1598. FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-5)
  1599. if HIT then
  1600. Particles("ExplosionFire1",FIREBALL,600)
  1601. ApplyAoE(FIREBALL.Position,40,15,25,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
  1602. for i = 1, 3 do
  1603. WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Bright blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1604. end
  1605. for i = 1, 3 do
  1606. WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1607. end
  1608. for i = 1, 5 do
  1609. WACKYEFFECT({Time = 80+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1610. end
  1611. break
  1612. end
  1613. end
  1614. FLAME.Enabled = false
  1615. FLAME2.Enabled = false
  1616. Debris:AddItem(FIREBALL,7)
  1617. end))
  1618. wait(0.1)
  1619. until KEYHOLD == false
  1620. wait(0.2)
  1621. ATTACK = false
  1622. Rooted = false
  1623. end
  1624.  
  1625. function FireField()
  1626. ATTACK = true
  1627. Rooted = true
  1628. local A = false
  1629. local POSITION = IT("BodyPosition",RootPart)
  1630. POSITION.Position = RootPart.Position+VT(0,2,0)
  1631. POSITION.D = 450
  1632. POSITION.P = 40000
  1633. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1634. coroutine.resume(coroutine.create(function()
  1635. repeat
  1636. Swait()
  1637. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  1638. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1639. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.85, -0.35) * ANGLES(RAD(120), RAD(0), RAD(-70)) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1640. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.35) * ANGLES(RAD(120), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1641. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1642. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1643. until A == true
  1644. repeat
  1645. Swait()
  1646. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1647. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1648. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4, -0.3) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1649. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.4, -0.3) * ANGLES(RAD(170), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1650. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1651. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1652. until ATTACK == false
  1653. POSITION:remove()
  1654. end))
  1655. local RANGE = 50
  1656. local REGENING = script.Regen2:Clone()
  1657. REGENING.Parent = Torso
  1658. REGENING.Enabled = true
  1659. REGENING.Rate = 900
  1660. REGENING.Speed = NumberRange.new(RANGE)
  1661. wait()
  1662. for i = 1, 75 do
  1663. wait()
  1664. ApplyAoE(Torso.Position,6,1,1,0,false)
  1665. REGENING.Speed = NumberRange.new(RANGE)
  1666. RANGE = RANGE - (75/(math.ceil(REGENRATE*75)))
  1667. end
  1668. REGENING.Enabled = false
  1669. wait(0.5)
  1670. for i = 1, 6 do
  1671. WACKYEFFECT({Time = 10+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1672. end
  1673. CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false)
  1674. A = true
  1675. local FLAME = Particles("Field",Torso,true)
  1676. FLAME.Size = NumberSequence.new(0,25)
  1677. FIREFIELD = true
  1678. local SOUND = CreateSound(BURNSOUND,Torso,10,1,true)
  1679. coroutine.resume(coroutine.create(function()
  1680. for i = 1, 20 do
  1681. wait(1)
  1682. SOUND.Parent = Torso
  1683. SOUND.Playing = true
  1684. ApplyAoE(Torso.Position,100,5,10,0,false,{SHAKE = 2, TIMER = 25, DOESFADE = true})
  1685. for i = 1, 2 do
  1686. WACKYEFFECT({Time = 20+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(30,30,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1687. end
  1688. if SEARING == true then
  1689. break
  1690. end
  1691. end
  1692. FIREFIELD = false
  1693. FLAME.Enabled = false
  1694. Debris:AddItem(FLAME,5)
  1695. SOUND:remove()
  1696. end))
  1697. wait(1)
  1698. ATTACK = false
  1699. Rooted = false
  1700. end
  1701. --//////////////////
  1702. function ShootBeam()
  1703. ATTACK = true
  1704. Rooted = false
  1705. for i=0, 0.05, 0.1 / Animation_Speed do
  1706. Swait()
  1707. turnto(Mouse2.Hit.p)
  1708. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1709. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1710. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1711. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1712. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1713. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1714. end
  1715. repeat
  1716. for i=0, 0.05, 0.1 / Animation_Speed do
  1717. Swait()
  1718. turnto(Mouse2.Hit.p)
  1719. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1720. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1721. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1722. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1723. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1724. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1725. end
  1726. local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
  1727. SpawnTrail(Hole2.Position,POS)
  1728. if HIT ~= nil then
  1729. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1730. Banish(HIT.Parent)
  1731. end
  1732. end
  1733. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,7.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0.7,0.3), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1734. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0.7,0.3), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1735. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0.7,0.3), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1736. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0.7,0.3), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1737. for i=0, 0.05, 0.1 / Animation_Speed do
  1738. Swait()
  1739. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1740. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1741. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1742. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1743. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1744. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1745. end
  1746. until KEYHOLD == false
  1747. ATTACK = false
  1748. Rooted = false
  1749. end
  1750. --/////////////////
  1751. function SearingForm()
  1752. ATTACK = true
  1753. Rooted = true
  1754. local POSITION = IT("BodyPosition",RootPart)
  1755. POSITION.Position = RootPart.Position+VT(0,2,0)
  1756. POSITION.D = 450
  1757. POSITION.P = 40000
  1758. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1759. coroutine.resume(coroutine.create(function()
  1760. repeat
  1761. Swait()
  1762. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  1763. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1764. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.8, -0.35) * ANGLES(RAD(120), RAD(0), RAD(-70)) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1765. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.35) * ANGLES(RAD(120), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1766. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1767. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1768. until ATTACK == false
  1769. end))
  1770. local FIRES = {}
  1771. local RANGE = 40
  1772. local REGENING = script.Regen2:Clone()
  1773. REGENING.Parent = Torso
  1774. REGENING.Enabled = true
  1775. REGENING.Rate = 900
  1776. REGENING.Speed = NumberRange.new(RANGE)
  1777. wait()
  1778. for i = 1, 75 do
  1779. wait()
  1780. ApplyAoE(Torso.Position,6,1,1,0,false)
  1781. REGENING.Speed = NumberRange.new(RANGE)
  1782. RANGE = RANGE - (75/(math.ceil(REGENRATE*75)))
  1783. end
  1784. REGENING.Enabled = false
  1785. wait(0.5)
  1786. for i = 1, 6 do
  1787. WACKYEFFECT({Time = 10+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1788. end
  1789. local BUSY = true
  1790. Particles("ExplosionFire1",Torso,100)
  1791. SEARING = true
  1792. local WING1 = Particles("WingFire1",BACKATTACHMENT1,true)
  1793. local WING2 = Particles("WingFire1",BACKATTACHMENT2,true)
  1794. coroutine.resume(coroutine.create(function()
  1795. coroutine.resume(coroutine.create(function()
  1796. repeat
  1797. wait(1)
  1798. ApplyAoE(Torso.Position,20,5,10,0,false,{SHAKE = 2, TIMER = 25, DOESFADE = true})
  1799. until SEARING == false
  1800. end))
  1801. repeat
  1802. Swait()
  1803. local ACCEL1 = VT(10,2-(6*COS(SINE / 24)),-6-(2*COS(SINE / 24)))
  1804. local ACCEL2 = VT(-10,2-(6*COS(SINE / 24)),-6-(2*COS(SINE / 24)))
  1805. WING1.Acceleration = ACCEL1
  1806. WING2.Acceleration = ACCEL2
  1807. local HIT,HITPOS = Raycast(RootPart.Position, RootPart.CFrame.lookVector, 4, Character)
  1808. if HIT then
  1809. ApplyAoE(Torso.Position,200,45,80,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
  1810. CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false)
  1811. CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false)
  1812. for i = 1, 3 do
  1813. WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Bright blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1814. end
  1815. for i = 1, 3 do
  1816. WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1817. end
  1818. Particles("ExplosionFire1",Torso,600)
  1819. BUSY = false
  1820. break
  1821. end
  1822. until SEARING == false
  1823. end))
  1824. for _, c in pairs(Character:GetChildren()) do
  1825. if c:IsA("BasePart") then
  1826. local FLAME = Particles("BodyFire",c,true)
  1827. table.insert(FIRES,FLAME)
  1828. end
  1829. end
  1830. POSITION:remove()
  1831. wait()
  1832. ApplyAoE(Torso.Position,120,45,80,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
  1833. CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false)
  1834. ATTACK = false
  1835. Rooted = false
  1836. GYRO = IT("BodyGyro",RootPart)
  1837. GYRO.D = 20
  1838. GYRO.P = 4000
  1839. GYRO.MaxTorque = VT(0,40000,0)
  1840. BODYPOS = IT("BodyPosition",RootPart)
  1841. BODYPOS.Position = RootPart.Position+VT(0,2,0)
  1842. BODYPOS.D = 450
  1843. BODYPOS.P = 40000
  1844. BODYPOS.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1845. local KEYDOWN = Mouse.KeyDown:connect(function(NEWKEY)
  1846. if NEWKEY == "c" and ATTACK == false then
  1847. BUSY = false
  1848. end
  1849. end)
  1850. local HUM = Humanoid.Died:Connect(function()
  1851. BUSY = false
  1852. ApplyAoE(Torso.Position,200,45,80,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
  1853. CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false)
  1854. CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false)
  1855. for i = 1, 3 do
  1856. WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Bright blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1857. end
  1858. for i = 1, 3 do
  1859. WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1860. end
  1861. Particles("ExplosionFire1",Torso,600)
  1862. end)
  1863. repeat wait() until BUSY == false
  1864. for i = 1, #FIRES do
  1865. FIRES[i].Enabled = false
  1866. Debris:AddItem(FIRES[i],5)
  1867. end
  1868. HUM:disconnect()
  1869. WING1.Enabled = false
  1870. WING2.Enabled = false
  1871. WING1.LockedToPart = false
  1872. WING2.LockedToPart = false
  1873. Debris:AddItem(WING1,5)
  1874. Debris:AddItem(WING2,5)
  1875. KEYDOWN:disconnect()
  1876. SEARING = false
  1877. GYRO:remove()
  1878. BODYPOS:remove()
  1879. FullBodyRegen()
  1880. end
  1881.  
  1882. function SearingOrb()
  1883. ATTACK = true
  1884. Rooted = true
  1885. local POSITION = IT("BodyPosition",RootPart)
  1886. POSITION.Position = RootPart.Position+VT(0,2,0)
  1887. POSITION.D = 450
  1888. POSITION.P = 40000
  1889. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1890. local FIRE = Particles("FistFire",RightArm,true)
  1891. local FIRE2 = Particles("FistFire",LeftArm,true)
  1892. CreateSound(CHARGE,Torso,6,1,false)
  1893. local NEWANIM = false
  1894. coroutine.resume(coroutine.create(function()
  1895. repeat
  1896. Swait()
  1897. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1898. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1899. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1900. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1901. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1902. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1903. until ATTACK == false or NEWANIM == true
  1904. if NEWANIM == true then
  1905. local GYRO = IT("BodyGyro",RootPart)
  1906. GYRO.D = 20
  1907. GYRO.P = 4000
  1908. GYRO.MaxTorque = VT(40000,40000,40000)
  1909. repeat
  1910. Swait()
  1911. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1912. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  1913. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  1914. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1915. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1916. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1917. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1918. until ATTACK == false
  1919. GYRO:remove()
  1920. end
  1921. POSITION:remove()
  1922. FIRE.LockedToPart = false
  1923. FIRE.Enabled = false
  1924. Debris:AddItem(FIRE,5)
  1925. FIRE2.LockedToPart = false
  1926. FIRE2.Enabled = false
  1927. Debris:AddItem(FIRE2,5)
  1928. end))
  1929. local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Steel blue"), "Orb", VT(0,0,0), true)
  1930. MakeForm(ORB,"Ball")
  1931. ORB.CFrame = CF(RootPart.Position+VT(0,8,0))
  1932. local A = IT("Attachment",ORB)
  1933. local FIRES = Particles("FireballFire1",A,true)
  1934. FIRES.Size = NumberSequence.new(0)
  1935. FIRES.LockedToPart = true
  1936. local LOOP = 0
  1937. for i = 1, 500 do
  1938. Swait()
  1939. LOOP = LOOP + 1
  1940. if LOOP >= 30 then
  1941. LOOP = 0
  1942. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1943. end
  1944. ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
  1945. ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
  1946. FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5)
  1947. FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2)
  1948. FIRES.Enabled = true
  1949. end
  1950. wait(1)
  1951. if KEYHOLD == false then
  1952. coroutine.resume(coroutine.create(function()
  1953. ORB.Transparency = 1
  1954. FIRES.Enabled = false
  1955. Debris:AddItem(ORB,10)
  1956. ApplyAoE(ORB.Position,400,75,90,175,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
  1957. CreateSound(EXPLOSIONLARGESOUND,ORB,10,1,false)
  1958. CreateSound(EXPLOSIONSMALLSOUND,ORB,10,1,false)
  1959. for i = 1, 3 do
  1960. WACKYEFFECT({Time = 40, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1961. end
  1962. for i = 1, 3 do
  1963. WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  1964. end
  1965. Particles("ExplosionFire1",ORB,1200)
  1966. for i = 1, 15 do
  1967. WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(70,70,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1968. end
  1969. end))
  1970. else
  1971. for i = 1, 100 do
  1972. Swait()
  1973. ORB.Size = ORB.Size - VT(0.2,0.2,0.2)*5
  1974. ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
  1975. FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5)
  1976. FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2)
  1977. end
  1978. ORB.Transparency = 1
  1979. FIRES.Enabled = false
  1980. Debris:AddItem(ORB,10)
  1981. CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false)
  1982. for _, c in pairs(Character:GetChildren()) do
  1983. if c:IsA("BasePart") then
  1984. Particles("ExplosionFire2",c,25)
  1985. end
  1986. end
  1987. NEWANIM = true
  1988. wait(0.5)
  1989. for i = 1, 15 do
  1990. wait(0.1)
  1991. coroutine.resume(coroutine.create(function()
  1992. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(2,2,2))
  1993. FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p)
  1994. CreateSound(FIREBALLSOUND,FIREBALL,6,1,false)
  1995. local FLAME = Particles("FireballFire3",FIREBALL,true)
  1996. for i = 1, 250 do
  1997. Swait()
  1998. local HIT,HITPOS,NORMAL = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2, Character)
  1999. FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-2)
  2000. if HIT then
  2001. CreateSound(EXPLOSIONSMALLSOUND,FIREBALL,10,1,false)
  2002. local FIELD = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Institutional white"), "Fire", VT(75,0,75), true)
  2003. local FIELD2 = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Institutional white"), "Fire", VT(75,0,75), true)
  2004. FIELD.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
  2005. FIELD2.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(45), RAD(0))
  2006. coroutine.resume(coroutine.create(function()
  2007. local FLAMES = Particles("DebrisFire",FIELD,true)
  2008. local FLAMES2 = Particles("DebrisFire",FIELD2,true)
  2009. for i = 1, 15 do
  2010. wait(1)
  2011. ApplyAoE(FIELD.Position,FIELD.Size.X/2,5,15,0,false,{SHAKE = 4, TIMER = 65, DOESFADE = true})
  2012. end
  2013. FLAMES.Enabled = false
  2014. FLAMES2.Enabled = false
  2015. Debris:AddItem(FIELD,5)
  2016. Debris:AddItem(FIELD2,5)
  2017. end))
  2018. Particles("ExplosionFire2",FIREBALL,600)
  2019. break
  2020. end
  2021. end
  2022. FLAME.Enabled = false
  2023. Debris:AddItem(FIREBALL,7)
  2024. end))
  2025. end
  2026. end
  2027. wait(0.3)
  2028. ATTACK = false
  2029. Rooted = false
  2030. end
  2031. --///////////////////////////////////////////////
  2032. --//////////////////////////////////////////////
  2033. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  2034. if WhichPose == "Cast1" then
  2035. for i=0, Time, 0.1 / Animation_Speed do
  2036. Swait()
  2037. if Magic == true then
  2038. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2039. end
  2040. if Gyro ~= nil and Gyro ~= false then
  2041. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2042. end
  2043. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  2044. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  2045. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2046. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2047. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2048. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2049. end
  2050. elseif WhichPose == "Cast2" then
  2051. for i=0, Time, 0.1 / Animation_Speed do
  2052. Swait()
  2053. if Magic == true then
  2054. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2055. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2056. end
  2057. if Gyro ~= nil and Gyro ~= false then
  2058. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2059. end
  2060. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2061. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  2062. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2063. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2064. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2065. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2066. end
  2067. elseif WhichPose == "RightArmUp" then
  2068. for i=0, Time, 0.1 / Animation_Speed do
  2069. Swait()
  2070. if Magic == true then
  2071. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2072. end
  2073. if Gyro ~= nil and Gyro ~= false then
  2074. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2075. end
  2076. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  2077. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2078. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2079. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2080. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2081. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2082. end
  2083. elseif WhichPose == "Taunt" then
  2084. for i=0, Time, 0.1 / Animation_Speed do
  2085. Swait()
  2086. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2087. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  2088. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2089. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2090. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2091. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2092. end
  2093. HATWELD.Part0 = RightArm
  2094. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  2095. CreateSound(221057812,Torso,10,1,false)
  2096. for i=0, Time*2, 0.1 / Animation_Speed do
  2097. Swait()
  2098. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2099. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  2100. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2101. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2102. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2103. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2104. end
  2105. for i=0, Time, 0.1 / Animation_Speed do
  2106. Swait()
  2107. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2108. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  2109. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2110. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2111. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2112. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2113. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  2114. end
  2115. elseif WhichPose == "Prepare key" then
  2116. for i=0, Time, 0.1 / Animation_Speed do
  2117. Swait()
  2118. if Gyro ~= nil and Gyro ~= false then
  2119. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  2120. end
  2121. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  2122. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  2123. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2124. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2125. LeftHip.C0 = Clerp(LeftHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2126. RightHip.C0 = Clerp(RightHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2127. end
  2128. elseif WhichPose == "Turn key" then
  2129. for i=0, Time, 0.1 / Animation_Speed do
  2130. Swait()
  2131. if Gyro ~= nil and Gyro ~= false then
  2132. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  2133. end
  2134. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  2135. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  2136. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2137. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2138. LeftHip.C0 = Clerp(LeftHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2139. RightHip.C0 = Clerp(RightHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2140. end
  2141. end
  2142. PLAYMAINANIM = true
  2143. end
  2144. --/////////////////////////////////////////////////////
  2145. function Prison_Key()
  2146. if Mouse.Target ~= nil then
  2147. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2148. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2149. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2150. local GYRO = IT("BodyGyro",RootPart)
  2151. GYRO.D = 750
  2152. GYRO.P = 20000
  2153. GYRO.MaxTorque = VT(0,40000000,0)
  2154. local grav = Instance.new("BodyPosition",TORSO)
  2155. grav.D = 15
  2156. grav.P = 20000
  2157. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2158. grav.position = TORSO.Position
  2159. local GYRO2 = IT("BodyGyro",TORSO)
  2160. GYRO2.D = 750
  2161. GYRO2.P = 20000
  2162. GYRO2.MaxTorque = VT(0,40000000,0)
  2163. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2164. grav.Name = "Jail"
  2165. local LOCKPARTS = {}
  2166. ATTACK = true
  2167. Rooted = false
  2168. local LOCK = IT("Model",Effects)
  2169. LOCK.Name = "Lock"
  2170. local LOCK2 = IT("Model",LOCK)
  2171. LOCK2.Name = "Metal"
  2172. --CREATE LOCK--
  2173. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  2174. LOCK.PrimaryPart = BASE
  2175. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  2176. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  2177. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  2178. MakeForm(PRT,"Cyl")
  2179. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  2180. PRT.Color = C3(0,0,0)
  2181. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  2182. MakeForm(PRT,"Cyl")
  2183. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  2184. PRT.Color = C3(0,0,0)
  2185. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  2186. for i = 1, 45 do
  2187. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2188. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  2189. end
  2190. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2191. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  2192. LOCK2.PrimaryPart = PRT
  2193. ---------------
  2194. local CHILDREN = LOCK:GetDescendants()
  2195. for index, CHILD in pairs(CHILDREN) do
  2196. if CHILD:IsA("BasePart") then
  2197. CHILD.Transparency = 1
  2198. end
  2199. end
  2200. for i = 1, 75 do
  2201. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  2202. Swait()
  2203. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2204. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2205. local CHILDREN = LOCK:GetDescendants()
  2206. for index, CHILD in pairs(CHILDREN) do
  2207. if CHILD:IsA("BasePart") then
  2208. CHILD.Transparency = CHILD.Transparency - 1/75
  2209. end
  2210. end
  2211. end
  2212. HUM.DisplayDistanceType = "None"
  2213. local KEY = IT("Model",Effects)
  2214. KEY.Name = "Key"
  2215. --CREATE KEY--
  2216. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Bright blue", "KeyBase", VT(0.1, 1, 0.1),false)
  2217. KEY.PrimaryPart = KBASE
  2218. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  2219. local WLD = weldBetween(LeftArm,KBASE)
  2220. for i = 1, 45 do
  2221. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Bright blue", "Key", VT(0.1, 0.1, 0.1),false)
  2222. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  2223. weldBetween(KBASE,PRT)
  2224. end
  2225. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Bright blue", "Key", VT(0.3, 0.1, 0.1),false)
  2226. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  2227. weldBetween(KBASE,PRT)
  2228. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Bright blue", "Key", VT(0.3, 0.1, 0.1),false)
  2229. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  2230. weldBetween(KBASE,PRT)
  2231. --------------
  2232. Rooted = true
  2233. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  2234. coroutine.resume(coroutine.create(function()
  2235. for i = 1, 10 do
  2236. Swait()
  2237. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2238. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2239. end
  2240. CreateSound(1149318312,BASE,5,1,false)
  2241. CreateSound(160772554,BASE,3,1,false)
  2242. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  2243. for i = 1, 4 do
  2244. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Bright blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2245. end
  2246. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  2247. wait(1)
  2248. TORSO.Parent.Parent = LOCK
  2249. for i = 1, 75 do
  2250. Swait()
  2251. local CHILDREN = KEY:GetDescendants()
  2252. for index, CHILD in pairs(CHILDREN) do
  2253. if CHILD:IsA("BasePart") then
  2254. CHILD.Transparency = i/25
  2255. end
  2256. end
  2257. local CHILDREN = LOCK:GetDescendants()
  2258. for index, CHILD in pairs(CHILDREN) do
  2259. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  2260. CHILD.Transparency = CHILD.Transparency + 1/75
  2261. elseif CHILD.ClassName == "Decal" then
  2262. CHILD.Transparency = CHILD.Transparency + 1/75
  2263. elseif CHILD.ClassName == "Accessory" then
  2264. CHILD:Destroy()
  2265. end
  2266. end
  2267. for index, CHILD in pairs(CHILDREN) do
  2268. if CHILD.ClassName == "Hat" then
  2269. CHILD:Destroy()
  2270. end
  2271. end
  2272. TORSO.Parent:ClearAllChildren()
  2273. KEY:remove()
  2274. LOCK:remove()
  2275. end
  2276. end))
  2277. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  2278. GYRO:remove()
  2279. ATTACK = false
  2280. Rooted = false
  2281. end
  2282. end
  2283. end
  2284.  
  2285. if Key == "n" then
  2286. ShootBeam()
  2287. end
  2288.  
  2289. function Shroud()
  2290. if Mouse.Target ~= nil then
  2291. if Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2292. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid")
  2293. local TORSO = HUM.Parent:FindFirstChild("HumanoidRootPart") or HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2294. if TORSO and HUM.Health > 0 then
  2295. local DISTANCE = (RootPart.Position-TORSO.Position).Magnitude
  2296. if DISTANCE < 100 then
  2297. ATTACK = true
  2298. POSEIDON = false
  2299. Rooted = true
  2300. local GYRO = IT("BodyGyro",RootPart)
  2301. GYRO.D = 20
  2302. GYRO.P = 4000
  2303. GYRO.MaxTorque = VT(40000,40000,40000)
  2304. local POSITION = IT("BodyPosition",RootPart)
  2305. POSITION.Position = RootPart.Position+VT(0,2,0)
  2306. POSITION.D = 450
  2307. POSITION.P = 40000
  2308. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2309. local TARGETTING = true
  2310. local HIT = false
  2311. local FIRES = {}
  2312. for _, c in pairs(Character:GetChildren()) do
  2313. if c:IsA("BasePart") then
  2314. local FLAME = Particles("BodyFire",c,true)
  2315. FLAME.Rate = 15
  2316. table.insert(FIRES,FLAME)
  2317. end
  2318. end
  2319. CreateSound(CHARGE,Torso,6,1,false)
  2320. coroutine.resume(coroutine.create(function()
  2321. repeat
  2322. GYRO.CFrame = CF(RootPart.Position,TORSO.Position)
  2323. Swait()
  2324. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2325. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2326. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2327. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2328. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2329. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2330. until TARGETTING == false
  2331. repeat
  2332. GYRO.CFrame = CF(RootPart.Position,TORSO.Position)
  2333. POSITION.Position = CF(RootPart.Position,TORSO.Position)*CF(0,0,-5).p
  2334. DISTANCE = (RootPart.Position-TORSO.Position).Magnitude
  2335. Swait()
  2336. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2337. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2338. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2339. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2340. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2341. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2342. until HIT == true
  2343. POSITION:remove()
  2344. GYRO:remove()
  2345. end))
  2346. wait(0.5)
  2347. repeat wait() until HOLD == true
  2348. for _, c in pairs(Character:GetChildren()) do
  2349. if c:IsA("BasePart") then
  2350. local FLAME = Particles("BodyFire",c,true)
  2351. table.insert(FIRES,FLAME)
  2352. end
  2353. end
  2354. for _, c in pairs(Character:GetChildren()) do
  2355. if c:IsA("BasePart") then
  2356. c.Transparency = 1
  2357. end
  2358. end
  2359. TARGETTING = false
  2360. for i = 1, 100 do
  2361. wait()
  2362. if DISTANCE < 5 or DISTANCE >= 200 then
  2363. break
  2364. end
  2365. end
  2366. HIT = true
  2367. if DISTANCE < 5 then
  2368. for i = 1, #FIRES do
  2369. FIRES[i].Enabled = false
  2370. end
  2371. for _, c in pairs(HUM.Parent:GetChildren()) do
  2372. if c:IsA("BasePart") then
  2373. local FLAME = Particles("BodyFire",c,true)
  2374. table.insert(FIRES,FLAME)
  2375. end
  2376. end
  2377. CreateSound(FIREBALLSOUND,Torso,6,1,false)
  2378. RootPart.CFrame = TORSO.CFrame
  2379. local WELD = weldBetween(RootPart,TORSO)
  2380. repeat wait() until HOLD == true
  2381. CreateSound(416328540,Torso,6,1,false)
  2382. WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  2383. local bv = Instance.new("BodyVelocity")
  2384. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2385. bv.velocity = CF(TORSO.Position,TORSO.Position+VT(0,15,0)).lookVector*125
  2386. bv.Parent = TORSO
  2387. for i = 1, 70 do
  2388. wait(0.1)
  2389. if TORSO.Parent == nil then
  2390. break
  2391. end
  2392. WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  2393. end
  2394. UNANCHOR = false
  2395. bv:remove()
  2396. wait(1)
  2397. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2398. CreateSound(FIREBALLSOUND,Torso,6,1,false)
  2399. UNANCHOR = true
  2400. local bv = Instance.new("BodyVelocity")
  2401. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2402. bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450
  2403. bv.Parent = TORSO
  2404. local LANDED = false
  2405. for i = 1, 500 do
  2406. wait()
  2407. Ignore = {Character,HUM.Parent}
  2408. WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  2409. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  2410. local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore)
  2411. if HITFLOOR or FULLREGEN == true then
  2412. LANDED = true
  2413. break
  2414. end
  2415. if TORSO.Parent == nil then
  2416. break
  2417. end
  2418. end
  2419. if TORSO.Parent ~= nil then
  2420. UNANCHOR = false
  2421. bv:remove()
  2422. wait(1)
  2423. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Medium blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2424. CreateSound(FIREBALLSOUND,Torso,6,1,false)
  2425. UNANCHOR = true
  2426. local bv = Instance.new("BodyVelocity")
  2427. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2428. bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450
  2429. bv.Parent = TORSO
  2430. local LANDED = false
  2431. for i = 1, 500 do
  2432. wait()
  2433. Ignore = {Character,HUM.Parent}
  2434. WACKYEFFECT({Time = 15, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.9, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  2435. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  2436. local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore)
  2437. if HITFLOOR or FULLREGEN == true then
  2438. LANDED = true
  2439. break
  2440. end
  2441. if TORSO.Parent == nil then
  2442. break
  2443. end
  2444. end
  2445. bv:remove()
  2446. if LANDED == true then
  2447. UNANCHOR = false
  2448. for i = 1, 10 do
  2449. ApplyAoE(TORSO.Position+VT(0,1,0),10+(2*i),15,15,45,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
  2450. end
  2451. CreateSound(EXPLOSIONLARGESOUND,TORSO,10,1,false)
  2452. CreateSound(EXPLOSIONSMALLSOUND,TORSO,10,1,false)
  2453. Particles("ExplosionFire1",TORSO,120)
  2454. for i = 1, 15 do
  2455. WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(70,70,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2456. end
  2457. WELD:remove()
  2458. wait(0.3)
  2459. UNANCHOR = true
  2460. else
  2461. WELD:remove()
  2462. end
  2463. end
  2464. end
  2465. for i = 1, #FIRES do
  2466. FIRES[i].Enabled = false
  2467. Debris:AddItem(FIRES[i],5)
  2468. end
  2469. for _, c in pairs(Character:GetChildren()) do
  2470. if c:IsA("BasePart") and c ~= RootPart then
  2471. c.Transparency = 0
  2472. end
  2473. end
  2474. RootPart.Velocity = VT(0,0,0)
  2475. ATTACK = false
  2476. Rooted = false
  2477. end
  2478. end
  2479. end
  2480. end
  2481. end
  2482.  
  2483. function Spitter()
  2484. ATTACK = true
  2485. Rooted = true
  2486. local GYRO = IT("BodyGyro",RootPart)
  2487. GYRO.D = 20
  2488. GYRO.P = 4000
  2489. GYRO.MaxTorque = VT(40000,40000,40000)
  2490. local POSITION = IT("BodyPosition",RootPart)
  2491. POSITION.Position = RootPart.Position+VT(0,2,0)
  2492. POSITION.D = 450
  2493. POSITION.P = 40000
  2494. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2495. local FIRE = Particles("FistFire",RightArm,true)
  2496. CreateSound(CHARGE,RightArm,6,0.8,false)
  2497. coroutine.resume(coroutine.create(function()
  2498. repeat
  2499. Swait()
  2500. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  2501. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  2502. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  2503. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2504. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2505. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2506. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2507. until ATTACK == false
  2508. FIRE.LockedToPart = false
  2509. FIRE.Enabled = false
  2510. Debris:AddItem(FIRE,5)
  2511. GYRO:remove()
  2512. POSITION:remove()
  2513. end))
  2514. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Steel blue"), "Orb", VT(0,0,0), true)
  2515. MakeForm(FIREBALL,"Ball")
  2516. FIREBALL.CFrame = RightArm.CFrame*CF(0,-1,0)
  2517. local CORE = IT("Attachment",FIREBALL)
  2518. local FIRES = Particles("FireballFire1",CORE,true)
  2519. FIRES.Size = NumberSequence.new(0)
  2520. FIRES.LockedToPart = true
  2521. local LOOP = 0
  2522. repeat
  2523. Swait()
  2524. LOOP = LOOP + 1
  2525. if LOOP == 20 then
  2526. LOOP = 0
  2527. WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X,FIREBALL.Size.X/2,FIREBALL.Size.X)*3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = FIREBALL.Position-VT(0,FIREBALL.Size.Y/4,0), RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  2528. end
  2529. if FIREBALL.Size.X < 20 then
  2530. FIREBALL.Size = FIREBALL.Size + VT(0.1,0.1,0.1)
  2531. FIRES.Size = NumberSequence.new(FIREBALL.Size.Y/1.5)
  2532. FIRES.Speed = NumberRange.new(0,FIREBALL.Size.Y/2)
  2533. end
  2534. FIRES.Enabled = true
  2535. FIREBALL.CFrame = RightArm.CFrame*CF(0,-1-FIREBALL.Size.Z/2,0)
  2536. until KEYHOLD == false and FIREBALL.Size.X >= 10
  2537. CreateSound(FIREBALLSOUND,FIREBALL,10,0.8,false)
  2538. coroutine.resume(coroutine.create(function()
  2539. FIREBALL.CFrame = CF(FIREBALL.Position,Mouse.Hit.p)
  2540. local RANGE = 50
  2541. local FLAME = Particles("Field",CORE,true)
  2542. FLAME.Speed = NumberRange.new(0,FIREBALL.Size.X*5)
  2543. FLAME.Size = NumberSequence.new(0,25)
  2544. for i = 1, 600 do
  2545. LOOP = LOOP + 1
  2546. if LOOP == 20 then
  2547. LOOP = 0
  2548. ApplyAoE(FIREBALL.Position,FIREBALL.Size.X*5,5,25,0,false)
  2549. WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X,FIREBALL.Size.X/2,FIREBALL.Size.X)*3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = FIREBALL.Position-VT(0,FIREBALL.Size.Y/4,0), RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  2550. end
  2551. Swait()
  2552. FIREBALL.CFrame = CF(FIREBALL.Position,FIREBALL.CFrame*CF(0,-0.001,-1).p)*CF(0,0,-0.2)
  2553. local HIT,HITPOS,NORMAL = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, FIREBALL.Size.X/2.5, Character)
  2554. if HIT then
  2555. ApplyAoE(FIREBALL.Position,FIREBALL.Size.X*12,75,90,375,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
  2556. CreateSound(EXPLOSIONLARGESOUND,FIREBALL,10,1,false)
  2557. CreateSound(EXPLOSIONSMALLSOUND,FIREBALL,10,1,false)
  2558. for i = 1, 3 do
  2559. WACKYEFFECT({Time = 40, EffectType = "Sphere", Size = VT(0,0,0), Size2 = FIREBALL.Size*MRANDOM(18,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  2560. end
  2561. for i = 1, 3 do
  2562. WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(0,0,0), Size2 = FIREBALL.Size*MRANDOM(18,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  2563. end
  2564. Particles("ExplosionFire1",FIREBALL,1200)
  2565. for i = 1, 15 do
  2566. WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X*10,FIREBALL.Size.X*10,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2567. end
  2568. break
  2569. end
  2570. end
  2571. FLAME.Enabled = false
  2572. FIRES.Enabled = false
  2573. for i = 1, 10 do
  2574. Swait()
  2575. FIREBALL.Mesh.Scale = FIREBALL.Mesh.Scale - VT(0.1,0.1,0.1)
  2576. end
  2577. Debris:AddItem(FIREBALL,5)
  2578. end))
  2579. wait(0.5)
  2580. ATTACK = false
  2581. Rooted = false
  2582. end
  2583.  
  2584. function Devastor()
  2585. ATTACK = true
  2586. Rooted = true
  2587. local POSITION = IT("BodyPosition",RootPart)
  2588. POSITION.Position = RootPart.Position+VT(0,2,0)
  2589. POSITION.D = 450
  2590. POSITION.P = 40000
  2591. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2592. local FIRE = Particles("FistFire",RightArm,true)
  2593. local FIRE2 = Particles("FistFire",LeftArm,true)
  2594. CreateSound(CHARGE,Torso,6,1,false)
  2595. local NEWANIM = false
  2596. coroutine.resume(coroutine.create(function()
  2597. repeat
  2598. Swait()
  2599. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2600. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2601. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2602. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2603. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2604. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2605. until ATTACK == false or NEWANIM == true
  2606. if NEWANIM == true then
  2607. local GYRO = IT("BodyGyro",RootPart)
  2608. GYRO.D = 20
  2609. GYRO.P = 4000
  2610. GYRO.MaxTorque = VT(40000,40000,40000)
  2611. repeat
  2612. Swait()
  2613. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  2614. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  2615. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  2616. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2617. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2618. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2619. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2620. until ATTACK == false
  2621. GYRO:remove()
  2622. end
  2623. POSITION:remove()
  2624. FIRE.LockedToPart = false
  2625. FIRE.Enabled = false
  2626. Debris:AddItem(FIRE,5)
  2627. FIRE2.LockedToPart = false
  2628. FIRE2.Enabled = false
  2629. Debris:AddItem(FIRE2,5)
  2630. end))
  2631. local FIRETABLE = {}
  2632. local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Steel blue"), "Orb", VT(0,0,0), true)
  2633. MakeForm(ORB,"Ball")
  2634. ORB.CFrame = CF(RootPart.Position+VT(0,8,0))
  2635. local A = IT("Attachment",ORB)
  2636. local FIRES = Particles("FireballFire1",A,true)
  2637. FIRES.Size = NumberSequence.new(0)
  2638. FIRES.LockedToPart = true
  2639. local LOOP = 0
  2640. for i = 1, 200 do
  2641. Swait()
  2642. LOOP = LOOP + 1
  2643. if LOOP >= 30 then
  2644. LOOP = 0
  2645. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2646. end
  2647. ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
  2648. ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
  2649. FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5)
  2650. FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2)
  2651. FIRES.Enabled = true
  2652. end
  2653. RightArm.Transparency = 1
  2654. LeftArm.Transparency = 1
  2655. FIRE.Enabled = false
  2656. FIRE2.Enabled = false
  2657. for _, c in pairs(Character:GetChildren()) do
  2658. if c:IsA("BasePart") then
  2659. local FLAME = Particles("BodyFire",c,true)
  2660. table.insert(FIRETABLE,FLAME)
  2661. end
  2662. end
  2663. CreateSound(CHARGE,Torso,6,0.5,false)
  2664. for i = 1, 200 do
  2665. Swait()
  2666. LOOP = LOOP + 1
  2667. if LOOP >= 30 then
  2668. LOOP = 0
  2669. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2670. end
  2671. ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
  2672. ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
  2673. FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5)
  2674. FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2)
  2675. FIRES.Enabled = true
  2676. end
  2677. for _, c in pairs(Character:GetChildren()) do
  2678. if c:IsA("BasePart") then
  2679. c.Transparency = 1
  2680. end
  2681. end
  2682. for i = 1, #FIRETABLE do
  2683. FIRETABLE[i].Enabled = false
  2684. Debris:AddItem(FIRETABLE[i],5)
  2685. end
  2686. for i = 1, 400 do
  2687. Swait()
  2688. LOOP = LOOP + 1
  2689. if LOOP >= 30 then
  2690. LOOP = 0
  2691. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2692. end
  2693. ORB.Size = ORB.Size + VT(0.2,0.2,0.2)
  2694. ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0))
  2695. FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5)
  2696. FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2)
  2697. FIRES.Enabled = true
  2698. end
  2699. wait(0.5)
  2700. FIRES.Lifetime = NumberRange.new(2,5)
  2701. FIRES.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,ORB.Size.Y/1.5),NumberSequenceKeypoint.new(0.5,ORB.Size.Y/2),NumberSequenceKeypoint.new(1,0)})
  2702. FIRES.LockedToPart = false
  2703. CreateSound(FIREBALLSOUND,Effects,4,1,false)
  2704. coroutine.resume(coroutine.create(function()
  2705. ORB.CFrame = CF(ORB.Position,Mouse.Hit.p)
  2706. for i = 1, 1200 do
  2707. Swait()
  2708. ORB.CFrame = ORB.CFrame*CF(0,0,-1)
  2709. local HIT,HITPOS = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2.5, Character)
  2710. if HIT then
  2711. break
  2712. end
  2713. end
  2714. for i = 1, 6 do
  2715. ApplyAoE(ORB.Position,ORB.Size.X*10,50,40,99,false,{SHAKE = 4, TIMER = 65, DOESFADE = true})
  2716. CreateSound(EXPLOSIONLARGESOUND,Effects,2,1,false)
  2717. CreateSound(EXPLOSIONSMALLSOUND,Effects,4,1,false)
  2718. for i = 1, 3 do
  2719. WACKYEFFECT({Time = 160, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  2720. end
  2721. for i = 1, 3 do
  2722. WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
  2723. end
  2724. for i = 1, 15 do
  2725. WACKYEFFECT({Time = 120+(i*5), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(ORB.Size.X*30,15,ORB.Size.X*30), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2726. end
  2727. wait(1)
  2728. end
  2729. FIRES.Enabled = false
  2730. for i = 1, 10 do
  2731. Swait()
  2732. ORB.Mesh.Scale = ORB.Mesh.Scale - VT(0.1,0.1,0.1)
  2733. end
  2734. Debris:AddItem(ORB,5)
  2735. end))
  2736. wait(1)
  2737. FullBodyRegen()
  2738. ATTACK = false
  2739. Rooted = false
  2740. end
  2741.  
  2742. function KeyUp(Key)
  2743. KEYHOLD = false
  2744. end
  2745.  
  2746. Mouse.Button1Down:connect(function(NEWKEY)
  2747. MouseDown(NEWKEY)
  2748. end)
  2749. Mouse.Button1Up:connect(function(NEWKEY)
  2750. MouseUp(NEWKEY)
  2751. end)
  2752. Mouse.KeyDown:connect(function(NEWKEY)
  2753. KeyDown(NEWKEY)
  2754. end)
  2755. Mouse.KeyUp:connect(function(NEWKEY)
  2756. KeyUp(NEWKEY)
  2757. end)
  2758.  
  2759.  
  2760.  
  2761. --//=================================\\
  2762. --|| MISC
  2763. --\\=================================//
  2764.  
  2765. function Lock()
  2766. ATTACK = true
  2767. Rooted = true
  2768. local GYRO = IT("BodyGyro",RootPart)
  2769. GYRO.D = 50
  2770. GYRO.P = 4000
  2771. GYRO.MaxTorque = VT(40000,40000,40000)
  2772. local POSITION = IT("BodyPosition",RootPart)
  2773. POSITION.Position = RootPart.Position+VT(0,1,0)
  2774. POSITION.D = 450
  2775. POSITION.P = 40000
  2776. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2777. local FLINT = FLINTLOCK:Clone()
  2778. FLINTLOCK.Transparency = 1
  2779. FLINT.Parent = Character
  2780. local SHOT = false
  2781. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, FLINT, CF(-0.05,1.65,0) * ANGLES(RAD(180),RAD(0),RAD(0)), CF(0, 0, 0))
  2782. coroutine.resume(coroutine.create(function()
  2783. repeat
  2784. Swait()
  2785. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  2786. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2787. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2788. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2789. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2790. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2791. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2792. until SHOT == true
  2793. CreateSound(180204650,RightArm,10,1,false)
  2794. local FROM = FLINT.CFrame*CF(0,1.043,0.231).p
  2795. local Ignore = Character
  2796. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  2797. local TO = Mouse.Hit.p
  2798. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Ignore)
  2799. if AIMHIT ~= nil then
  2800. if AIMHIT.Parent ~= Character then
  2801. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2802. local HUM = AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
  2803. if HUM then
  2804. ApplyDamage(HUM,MRANDOM(98,99))
  2805. end
  2806. end
  2807. end
  2808. end
  2809. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really blue", "Arrow", VT(1,1,1))
  2810. MakeForm(TRAIL,"Cyl")
  2811. local DIST = (FLINT.CFrame*CF(0,1.043,0.231).p - AIMPOS).Magnitude
  2812. TRAIL.Size = VT(0.1,DIST,0.1)
  2813. TRAIL.CFrame = CF(FLINT.CFrame*CF(0,1.043,0.231).p, AIMPOS) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  2814. coroutine.resume(coroutine.create(function()
  2815. for i = 1, 5 do
  2816. Swait()
  2817. TRAIL.Transparency = TRAIL.Transparency + 0.1
  2818. end
  2819. TRAIL:remove()
  2820. end))
  2821. repeat
  2822. Swait()
  2823. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2824. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2825. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2826. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2827. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2828. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2829. until ATTACK == false
  2830. GYRO:remove()
  2831. POSITION:remove()
  2832. FLINT:remove()
  2833. FLINTLOCK.Transparency = 0
  2834. end))
  2835. wait(0.3)
  2836. SHOT = true
  2837. wait(0.5)
  2838. ATTACK = false
  2839. Rooted = false
  2840. end
  2841.  
  2842. function Jupiter()
  2843. ATTACK = true
  2844. Rooted = true
  2845. local POSITION = IT("BodyPosition",RootPart)
  2846. POSITION.Position = RootPart.Position+VT(0,0.2,0)
  2847. POSITION.D = 450
  2848. POSITION.P = 40000
  2849. POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2850. coroutine.resume(coroutine.create(function()
  2851. repeat
  2852. Swait()
  2853. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed)
  2854. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  2855. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.55 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2856. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2857. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.25) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  2858. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.4) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 2 / Animation_Speed)
  2859. until ATTACK == false
  2860. end))
  2861. wait(0.5)
  2862. repeat wait() until KEYHOLD == false
  2863. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35,4,35), Transparency = 0.3, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Medium blue".Color, SoundID = 431105970, SoundPitch = 1, SoundVolume = 10})
  2864. POSITION:remove()
  2865. RootPart.Velocity = VT(0,150,0)
  2866. ATTACK = false
  2867. Rooted = false
  2868. end
  2869.  
  2870. function Taunt()
  2871. ATTACK = true
  2872. Rooted = true
  2873. local TAUNT = CreateSound(2033655189,Torso,10,1,false)
  2874. coroutine.resume(coroutine.create(function()
  2875. repeat
  2876. Swait()
  2877. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2878. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2879. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2880. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2881. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2882. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2883. until ATTACK == false
  2884. end))
  2885. repeat wait() until TAUNT.Playing == false
  2886. ATTACK = false
  2887. Rooted = false
  2888. end
  2889.  
  2890. --//=================================\\
  2891. --|| ASSIGN THINGS TO KEYS
  2892. --\\=================================//
  2893.  
  2894. function MouseDown(Mouse)
  2895. HOLD = true
  2896. if ATTACK == false then
  2897. end
  2898. end
  2899.  
  2900. function MouseUp(Mouse)
  2901. HOLD = false
  2902. end
  2903.  
  2904. local MUSIC = CreateSound(285883918,Character,3,1,true)
  2905.  
  2906. function KeyDown(Key)
  2907. KEYHOLD = true
  2908. if ATTACK == false and FULLREGEN == false then
  2909. if Key == "z" then
  2910. Fireball()
  2911. end
  2912.  
  2913. if Key == "b" and FIREFIELD == false and SEARING == false then
  2914. FireField()
  2915. end
  2916.  
  2917. if Key == "c" and SEARING == false then
  2918. SearingForm()
  2919. end
  2920.  
  2921. if Key == "v" and SEARING == false then
  2922. SearingOrb()
  2923. end
  2924.  
  2925. if Key == "q" and SEARING == false then
  2926. Shroud()
  2927. end
  2928.  
  2929. if Key == "x" and SEARING == false then
  2930. Jupiter()
  2931. wait(2)
  2932. Devastor()
  2933. end
  2934.  
  2935.  
  2936. if Key == "u" then
  2937. Prison_Key()
  2938. end
  2939.  
  2940. if Key == "e" then
  2941. Spitter()
  2942. end
  2943.  
  2944. if Key == "g" then
  2945. Lock()
  2946. end
  2947.  
  2948. if Key == "j" then
  2949. Jupiter()
  2950. end
  2951.  
  2952. if Key == "t" and SEARING == false then
  2953. Taunt()
  2954. end
  2955.  
  2956. if Key == "h" then
  2957. if POSEIDON == false then
  2958. POSEIDON = true
  2959. CreateSound(POSEIDONSOUND,Torso,5,MRANDOM(8,12)/10,false)
  2960. else
  2961. POSEIDON = false
  2962. end
  2963. end
  2964. end
  2965.  
  2966. if Key == "w" and ATTACK == false and SEARING == true and VALUE2 == false then
  2967. repeat
  2968. VALUE2 = true
  2969. Swait()
  2970. BODYPOS.Position = RootPart.CFrame*CF(0,0,-5).p
  2971. until KEYHOLD == false
  2972. VALUE2 = false
  2973. end
  2974.  
  2975. if string.byte(Key) == 50 and ATTACK == false then
  2976. if Speed == 16 then
  2977. Speed = 45
  2978. elseif Speed == 45 then
  2979. Speed = 16
  2980. end
  2981. end
  2982.  
  2983. if Key == "1" then
  2984. MUSIC:Play()
  2985. CHOSENSONG = CHOSENSONG + 1
  2986. if CHOSENSONG > #SONGS then
  2987. CHOSENSONG = 1
  2988. end
  2989. end
  2990. end
  2991.  
  2992. function KeyUp(Key)
  2993. KEYHOLD = false
  2994. end
  2995.  
  2996. Mouse.Button1Down:connect(function(NEWKEY)
  2997. MouseDown(NEWKEY)
  2998. end)
  2999. Mouse.Button1Up:connect(function(NEWKEY)
  3000. MouseUp(NEWKEY)
  3001. end)
  3002. Mouse.KeyDown:connect(function(NEWKEY)
  3003. KeyDown(NEWKEY)
  3004. end)
  3005. Mouse.KeyUp:connect(function(NEWKEY)
  3006. KeyUp(NEWKEY)
  3007. end)
  3008. --//=================================\\
  3009. --\\=================================//
  3010.  
  3011. function unanchor()
  3012. if UNANCHOR == true then
  3013. for _, c in pairs(Character:GetChildren()) do
  3014. if c:IsA("BasePart") then
  3015. c.Anchored = false
  3016. end
  3017. end
  3018. else
  3019. for _, c in pairs(Character:GetChildren()) do
  3020. if c:IsA("BasePart") then
  3021. c.Anchored = true
  3022. end
  3023. end
  3024. end
  3025. end
  3026.  
  3027. --//=================================\\
  3028. --|| WRAP THE WHOLE SCRIPT UP
  3029. --\\=================================//
  3030.  
  3031. Humanoid.Changed:connect(function(Jump)
  3032. if Jump == "Jump" and (Disable_Jump == true) then
  3033. Humanoid.Jump = false
  3034. end
  3035. end)
  3036.  
  3037. local LOOP = 0
  3038.  
  3039. while true do
  3040. Swait()
  3041. if Character:FindFirstChildOfClass("Humanoid") == nil then
  3042. Humanoid = IT("Humanoid",Character)
  3043. end
  3044. Effects.Parent = Character
  3045. script.Parent = WEAPON2GUI
  3046. ANIMATE.Parent = nil
  3047. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  3048. v:Stop();
  3049. end
  3050. SINE = SINE + CHANGE
  3051. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3052. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3053. Ignore = {Torso,RootPart,RightLeg,LeftLeg,RightLeg,Head,RightArm,LeftArm,Effects}
  3054. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  3055. local HITFLOOR,HITPOS = CastProperRay(RootPart.Position, RootPart.Position-VT(0,15,0), 4, Ignore)
  3056. local WALKSPEEDVALUE = 5
  3057. if SEARING == false then
  3058. if ANIM == "Walk" and TORSOVELOCITY > 1 and SEARING == false and Rooted == false then
  3059. if Humanoid.WalkSpeed <= 20 then
  3060. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
  3061. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3062. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  3063. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 +0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  3064. elseif SEARING == false and Humanoid.WalkSpeed > 20 and Rooted == false then
  3065. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
  3066. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / (2*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3067. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
  3068. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
  3069. end
  3070. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or SEARING == true or Rooted == true then
  3071. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3072. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3073. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3074. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3075. end
  3076. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3077. ANIM = "Jump"
  3078. if ATTACK == false then
  3079. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3080. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  3081. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3082. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3083. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3084. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3085. end
  3086. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3087. ANIM = "Fall"
  3088. if ATTACK == false then
  3089. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(8*COS(SINE / 6))), 1 / Animation_Speed)
  3090. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-8*COS(SINE / 6))), 1 / Animation_Speed)
  3091. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(110)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3092. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3093. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  3094. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  3095. end
  3096. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3097. ANIM = "Idle"
  3098. if ATTACK == false then
  3099. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  3100. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
  3101. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 2 * COS(SINE / 12)), RAD(-25), RAD(-10 - 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3102. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 1 * COS(SINE / 12)), RAD(25), RAD(20 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3103. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3104. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3105. end
  3106. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3107. ANIM = "Walk"
  3108. if ATTACK == false then
  3109. if Humanoid.WalkSpeed <= 20 then
  3110. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3111. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3112. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed)
  3113. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.85 / Animation_Speed)
  3114. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  3115. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  3116. elseif Humanoid.WalkSpeed > 20 then
  3117. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3118. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3119. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  3120. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(35), RAD(-35), RAD(0)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  3121. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(6)), 2 / Animation_Speed)
  3122. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
  3123. end
  3124. end
  3125. end
  3126. elseif SEARING == true then
  3127. if APPLYGYRO == true then
  3128. if VALUE2 == false and DIRECTTURN == false then
  3129. if GYRO ~= nil then
  3130. GYRO.MaxTorque = VT(0,40000,0)
  3131. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  3132. end
  3133. else
  3134. if GYRO ~= nil then
  3135. GYRO.MaxTorque = VT(80000,40000,80000)
  3136. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  3137. end
  3138. end
  3139. end
  3140. if VALUE2 == false and ATTACK == false then
  3141. ANIM = "IdleFlight"
  3142. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  3143. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  3144. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3145. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3146. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3147. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3148. elseif VALUE2 == true and ATTACK == false then
  3149. ANIM = "Flight"
  3150. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(65), RAD(0), RAD(0)), 1 / Animation_Speed)
  3151. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  3152. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0,1 / Animation_Speed)
  3153. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3154. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3155. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3156. end
  3157. end
  3158. unanchor()
  3159. Humanoid.MaxHealth = "inf"
  3160. Humanoid.Health = "inf"
  3161. if Rooted == false then
  3162. Disable_Jump = false
  3163. Humanoid.WalkSpeed = Speed
  3164. elseif Rooted == true then
  3165. Disable_Jump = true
  3166. Humanoid.WalkSpeed = 0
  3167. end
  3168. Regen()
  3169. if Head:FindFirstChild("face") then
  3170. Head.face.Texture = "rbxassetid://608798717"
  3171. Head.face.Transparency = Head.Transparency
  3172. end
  3173. for _, c in pairs(Character:GetDescendants()) do
  3174. if c.ClassName == "Attachment" and c ~= BACKATTACHMENT1 and c ~= BACKATTACHMENT2 and c.Parent.Parent ~= Effects then
  3175. c:remove()
  3176. end
  3177. if c.ClassName == "ParticleEmitter" then
  3178. if c.Name ~= "Regen" and c.Name ~= "Regen2" and c.Name ~= "CurseParticles" and c.Parent.Parent == Character then
  3179. c:remove()
  3180. end
  3181. end
  3182. if c and c.Parent then
  3183. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  3184. local ACCESSORY = c.Parent
  3185. c.Parent = Character
  3186. local REGENVALUE = IT("BoolValue",c)
  3187. REGENVALUE.Name = "IsRegening"
  3188. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name,REGENVALUE})
  3189. if c then
  3190. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  3191. local WELD = weldBetween(Head,c)
  3192. table.insert(BODY,{WELD,c,nil,nil,nil,nil,nil,nil})
  3193. else
  3194. local WELD = weldBetween(Torso,c)
  3195. table.insert(BODY,{WELD,c,nil,nil,nil,nil,nil,nil})
  3196. end
  3197. end
  3198. ACCESSORY:remove()
  3199. end
  3200. end
  3201. end
  3202. for _, c in pairs(Character:GetChildren()) do
  3203. if SEARING == true and c:IsA("BasePart") then
  3204. c.Transparency = 1
  3205. end
  3206. end
  3207. MUSIC.Parent = Character
  3208. MUSIC.SoundId = "rbxassetid://"..SONGS[CHOSENSONG]
  3209. MUSIC.Pitch = 1
  3210. if CHOSENSONG ~= 5 then
  3211. MUSIC.Volume = 2
  3212. else
  3213. MUSIC.Volume = 4
  3214. end
  3215. MUSIC.Playing = true
  3216. if POSEIDON == true and FULLREGEN == false then
  3217. LOOP = LOOP + 1
  3218. local FLOOR = CreatePart(3, SpecialEffects, "Neon", 0, 1, BRICKC("Institutional white"), "Floor", VT(15,0,15), true)
  3219. FLOOR.CFrame = CF(HITPOS-VT(0,0.025,0))
  3220. FLOOR.CanCollide = true
  3221. Debris:AddItem(FLOOR,0.2)
  3222. local FLOOR = CreatePart(3, SpecialEffects, "Neon", 0, 1, BRICKC("Institutional white"), "Floor", VT(15,0,15), true)
  3223. FLOOR.CFrame = CF(HITPOS-VT(0,0.025,0))*ANGLES(RAD(0),RAD(45),RAD(0))
  3224. FLOOR.CanCollide = true
  3225. Debris:AddItem(FLOOR,0.2)
  3226. if LOOP >= 5 then
  3227. LOOP = 0
  3228. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(15,1,15), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = HITPOS+VT(0,0.45,0), RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Deep blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3229. end
  3230. end
  3231. RootJoint.Parent = RootPart
  3232. Humanoid.DisplayDistanceType = "None"
  3233. Humanoid.Name = "Phantom"
  3234. end
  3235. end))
  3236. ParticleEmitter1.Name = "Regen"
  3237. ParticleEmitter1.Parent = LocalScript0
  3238. ParticleEmitter1.Speed = NumberRange.new(1, 1)
  3239. ParticleEmitter1.Rotation = NumberRange.new(0, 360)
  3240. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3241. ParticleEmitter1.Enabled = false
  3242. ParticleEmitter1.LightEmission = 0.89999997615814
  3243. ParticleEmitter1.Texture = "rbxassetid://296874871"
  3244. ParticleEmitter1.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3245. ParticleEmitter1.ZOffset = 1
  3246. ParticleEmitter1.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0)
  3247. ParticleEmitter1.Acceleration = Vector3.new(0, 3, 0)
  3248. ParticleEmitter1.Drag = 3
  3249. ParticleEmitter1.EmissionDirection = Enum.NormalId.Right
  3250. ParticleEmitter1.Lifetime = NumberRange.new(1, 1)
  3251. ParticleEmitter1.Rate = 300
  3252. ParticleEmitter1.RotSpeed = NumberRange.new(-56, 56)
  3253. ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  3254. ParticleEmitter1.VelocitySpread = 360
  3255. ParticleEmitter2.Name = "Regen2"
  3256. ParticleEmitter2.Parent = LocalScript0
  3257. ParticleEmitter2.Speed = NumberRange.new(1, 1)
  3258. ParticleEmitter2.Rotation = NumberRange.new(0, 360)
  3259. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3260. ParticleEmitter2.Enabled = false
  3261. ParticleEmitter2.LightEmission = 0.89999997615814
  3262. ParticleEmitter2.Texture = "rbxassetid://296874871"
  3263. ParticleEmitter2.Transparency = NumberSequence.new(1,1,0.7704918384552,0.29508197307587,0.24590164422989,0.37704920768738,0.62841534614563,0.90710383653641,1)
  3264. ParticleEmitter2.ZOffset = 1
  3265. ParticleEmitter2.Size = NumberSequence.new(0,0.81967234611511,0.7103830575943,0.49180328845978,0)
  3266. ParticleEmitter2.Drag = 5
  3267. ParticleEmitter2.EmissionDirection = Enum.NormalId.Right
  3268. ParticleEmitter2.Lifetime = NumberRange.new(1, 1)
  3269. ParticleEmitter2.Rate = 70
  3270. ParticleEmitter2.RotSpeed = NumberRange.new(-56, 56)
  3271. ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  3272. ParticleEmitter2.VelocitySpread = 360
  3273. BillboardGui3.Name = "NameGui"
  3274. BillboardGui3.Parent = LocalScript0
  3275. BillboardGui3.Enabled = false
  3276. BillboardGui3.Size = UDim2.new(7.5, 0, 1.5, 0)
  3277. BillboardGui3.AlwaysOnTop = true
  3278. BillboardGui3.MaxDistance = 70
  3279. BillboardGui3.SizeOffset = Vector2.new(0, 4)
  3280. TextLabel4.Name = "PlayerName"
  3281. TextLabel4.Parent = BillboardGui3
  3282. TextLabel4.Transparency = 1
  3283. TextLabel4.Size = UDim2.new(1, 0, 1, 0)
  3284. TextLabel4.BackgroundColor = BrickColor.new("Institutional white")
  3285. TextLabel4.BackgroundColor3 = Color3.new(1, 1, 1)
  3286. TextLabel4.BackgroundTransparency = 1
  3287. TextLabel4.BorderColor = BrickColor.new("Institutional white")
  3288. TextLabel4.BorderColor3 = Color3.new(1, 1, 1)
  3289. TextLabel4.BorderSizePixel = 0
  3290. TextLabel4.Font = Enum.Font.Antique
  3291. TextLabel4.FontSize = Enum.FontSize.Size14
  3292. TextLabel4.Text = "Phantom"
  3293. TextLabel4.TextColor = BrickColor.new("Silver")
  3294. TextLabel4.TextColor3 = Color3.new(0,0.3,0.7)
  3295. TextLabel4.TextScaled = true
  3296. TextLabel4.TextSize = 0
  3297. TextLabel4.TextStrokeColor3 = Color3.new(0,0.3,0.7)
  3298. TextLabel4.TextStrokeTransparency = 0
  3299. TextLabel4.TextWrap = true
  3300. TextLabel4.TextWrapped = true
  3301. TextLabel5.Name = "Title"
  3302. TextLabel5.Parent = BillboardGui3
  3303. TextLabel5.Position = UDim2.new(-0.75, 0, 0.899999976, 0)
  3304. TextLabel5.Transparency = 1
  3305. TextLabel5.Size = UDim2.new(2.5, 0, 1.5, 0)
  3306. TextLabel5.BackgroundColor = BrickColor.new("Institutional white")
  3307. TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
  3308. TextLabel5.BackgroundTransparency = 1
  3309. TextLabel5.BorderColor = BrickColor.new("Institutional white")
  3310. TextLabel5.BorderColor3 = Color3.new(1, 1, 1)
  3311. TextLabel5.BorderSizePixel = 0
  3312. TextLabel5.Font = Enum.Font.Antique
  3313. TextLabel5.FontSize = Enum.FontSize.Size14
  3314. TextLabel5.Text = "The Searing Emperor"
  3315. TextLabel5.TextColor = BrickColor.new("Steel blue")
  3316. TextLabel5.TextColor3 = Color3.new(0,0.3,0.7)
  3317. TextLabel5.TextScaled = true
  3318. TextLabel5.TextSize = 14
  3319. TextLabel5.TextStrokeColor3 = Color3.new(0,0.3,0.7)
  3320. TextLabel5.TextStrokeTransparency = 0
  3321. TextLabel5.TextWrap = true
  3322. TextLabel5.TextWrapped = true
  3323. ParticleEmitter6.Name = "FistFire"
  3324. ParticleEmitter6.Parent = LocalScript0
  3325. ParticleEmitter6.Speed = NumberRange.new(3, 3)
  3326. ParticleEmitter6.Rotation = NumberRange.new(0, 360)
  3327. ParticleEmitter6.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3328. ParticleEmitter6.Enabled = false
  3329. ParticleEmitter6.LightEmission = 0.89999997615814
  3330. ParticleEmitter6.Texture = "rbxassetid://296874871"
  3331. ParticleEmitter6.Transparency = NumberSequence.new(0.47540986537933,0.2896174788475,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3332. ParticleEmitter6.ZOffset = 1
  3333. ParticleEmitter6.Size = NumberSequence.new(0,0,0.7103830575943,0.49180328845978,0)
  3334. ParticleEmitter6.Acceleration = Vector3.new(0, 3, 0)
  3335. ParticleEmitter6.Drag = 1
  3336. ParticleEmitter6.EmissionDirection = Enum.NormalId.Bottom
  3337. ParticleEmitter6.Lifetime = NumberRange.new(2, 2)
  3338. ParticleEmitter6.LockedToPart = true
  3339. ParticleEmitter6.Rate = 300
  3340. ParticleEmitter6.RotSpeed = NumberRange.new(-56, 56)
  3341. ParticleEmitter6.SpreadAngle = Vector2.new(45, 45)
  3342. ParticleEmitter6.VelocitySpread = 45
  3343. LocalScript7.Name = "CamShake"
  3344. LocalScript7.Parent = LocalScript0
  3345. table.insert(cors,sandbox(LocalScript7,function()
  3346. wait()
  3347. VT = Vector3.new
  3348. MRANDOM = math.random
  3349. local A = nil
  3350. local B = nil
  3351. local C = nil
  3352. local HUMANOID = script.Parent:FindFirstChildOfClass("Humanoid")
  3353. for _, c in pairs(script:GetChildren()) do
  3354. if c.Name == "Timer" then
  3355. A = c.Value
  3356. elseif c.Name == "Shake" then
  3357. B = c.Value*5
  3358. elseif c.Name == "DoesFade" then
  3359. C = c.Value
  3360. end
  3361. end
  3362. local TIMER = A or 35
  3363. local SHAKE = B or 5
  3364. local FADE = C or true
  3365. if HUMANOID and game.Players:FindFirstChild(script.Parent.Name) then
  3366. if FADE == true then
  3367. local FADER = SHAKE/TIMER
  3368. for i = 1, TIMER do
  3369. wait()
  3370. HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10)
  3371. end
  3372. HUMANOID.CameraOffset = VT(0,0,0)
  3373. else
  3374. for i = 1, TIMER do
  3375. wait()
  3376. HUMANOID.CameraOffset = VT(MRANDOM(-SHAKE,SHAKE)/10,MRANDOM(-SHAKE,SHAKE)/10,MRANDOM(-SHAKE,SHAKE)/10)
  3377. end
  3378. HUMANOID.CameraOffset = VT(0,0,0)
  3379. end
  3380. end
  3381. script:remove()
  3382. end))
  3383. LocalScript7.Disabled = true
  3384. NumberValue8.Name = "Timer"
  3385. NumberValue8.Parent = LocalScript7
  3386. NumberValue8.Value = 35
  3387. NumberValue9.Name = "Shake"
  3388. NumberValue9.Parent = LocalScript7
  3389. NumberValue9.Value = 5
  3390. BoolValue10.Name = "DoesFade"
  3391. BoolValue10.Parent = LocalScript7
  3392. ParticleEmitter11.Name = "FireballFire2"
  3393. ParticleEmitter11.Parent = LocalScript0
  3394. ParticleEmitter11.Rotation = NumberRange.new(0, 360)
  3395. ParticleEmitter11.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3396. ParticleEmitter11.Enabled = false
  3397. ParticleEmitter11.LightEmission = 0.89999997615814
  3398. ParticleEmitter11.Texture = "rbxassetid://296874871"
  3399. ParticleEmitter11.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3400. ParticleEmitter11.ZOffset = 2
  3401. ParticleEmitter11.Size = NumberSequence.new(5,5,1.8032789230347,0)
  3402. ParticleEmitter11.Drag = 1
  3403. ParticleEmitter11.EmissionDirection = Enum.NormalId.Right
  3404. ParticleEmitter11.Lifetime = NumberRange.new(0, 1.5)
  3405. ParticleEmitter11.Rate = 9999
  3406. ParticleEmitter11.RotSpeed = NumberRange.new(-56, 56)
  3407. ParticleEmitter11.SpreadAngle = Vector2.new(360, 360)
  3408. ParticleEmitter11.VelocitySpread = 360
  3409. ParticleEmitter12.Name = "ExplosionFire2"
  3410. ParticleEmitter12.Parent = LocalScript0
  3411. ParticleEmitter12.Speed = NumberRange.new(7, 270)
  3412. ParticleEmitter12.Rotation = NumberRange.new(0, 360)
  3413. ParticleEmitter12.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3414. ParticleEmitter12.Enabled = false
  3415. ParticleEmitter12.LightEmission = 0.89999997615814
  3416. ParticleEmitter12.Texture = "rbxassetid://296874871"
  3417. ParticleEmitter12.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3418. ParticleEmitter12.ZOffset = 1
  3419. ParticleEmitter12.Size = NumberSequence.new(0,0.98360657691956,1.530054807663,0)
  3420. ParticleEmitter12.Drag = 8
  3421. ParticleEmitter12.EmissionDirection = Enum.NormalId.Right
  3422. ParticleEmitter12.Lifetime = NumberRange.new(2, 4)
  3423. ParticleEmitter12.Rate = 300
  3424. ParticleEmitter12.RotSpeed = NumberRange.new(-56, 56)
  3425. ParticleEmitter12.SpreadAngle = Vector2.new(360, 360)
  3426. ParticleEmitter12.VelocitySpread = 360
  3427. ParticleEmitter13.Name = "Field"
  3428. ParticleEmitter13.Parent = LocalScript0
  3429. ParticleEmitter13.Speed = NumberRange.new(20, 50)
  3430. ParticleEmitter13.Rotation = NumberRange.new(0, 360)
  3431. ParticleEmitter13.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3432. ParticleEmitter13.Enabled = false
  3433. ParticleEmitter13.LightEmission = 0.89999997615814
  3434. ParticleEmitter13.Texture = "rbxassetid://296874871"
  3435. ParticleEmitter13.Transparency = NumberSequence.new(1,0.92349725961685,0.87978142499924,0.92349725961685,1)
  3436. ParticleEmitter13.ZOffset = 1
  3437. ParticleEmitter13.Size = NumberSequence.new(0,10)
  3438. ParticleEmitter13.EmissionDirection = Enum.NormalId.Right
  3439. ParticleEmitter13.Lifetime = NumberRange.new(2, 4)
  3440. ParticleEmitter13.Rate = 999
  3441. ParticleEmitter13.RotSpeed = NumberRange.new(-56, 56)
  3442. ParticleEmitter13.SpreadAngle = Vector2.new(360, 360)
  3443. ParticleEmitter13.VelocitySpread = 360
  3444. ParticleEmitter14.Name = "BodyFire"
  3445. ParticleEmitter14.Parent = LocalScript0
  3446. ParticleEmitter14.Speed = NumberRange.new(1, 1)
  3447. ParticleEmitter14.Rotation = NumberRange.new(0, 360)
  3448. ParticleEmitter14.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3449. ParticleEmitter14.Enabled = false
  3450. ParticleEmitter14.LightEmission = 0.89999997615814
  3451. ParticleEmitter14.Texture = "rbxassetid://296874871"
  3452. ParticleEmitter14.Transparency = NumberSequence.new(0,0.14207655191422,0.4426229596138,0.62841534614563,1)
  3453. ParticleEmitter14.ZOffset = 1
  3454. ParticleEmitter14.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0)
  3455. ParticleEmitter14.Acceleration = Vector3.new(0, 3, 0)
  3456. ParticleEmitter14.Drag = 3
  3457. ParticleEmitter14.EmissionDirection = Enum.NormalId.Right
  3458. ParticleEmitter14.Lifetime = NumberRange.new(1, 1)
  3459. ParticleEmitter14.Rate = 300
  3460. ParticleEmitter14.RotSpeed = NumberRange.new(-56, 56)
  3461. ParticleEmitter14.SpreadAngle = Vector2.new(360, 360)
  3462. ParticleEmitter14.VelocitySpread = 360
  3463. ParticleEmitter15.Name = "WingFire1"
  3464. ParticleEmitter15.Parent = LocalScript0
  3465. ParticleEmitter15.Speed = NumberRange.new(8, 8)
  3466. ParticleEmitter15.Rotation = NumberRange.new(0, 360)
  3467. ParticleEmitter15.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3468. ParticleEmitter15.Enabled = false
  3469. ParticleEmitter15.LightEmission = 0.89999997615814
  3470. ParticleEmitter15.Texture = "rbxassetid://296874871"
  3471. ParticleEmitter15.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3472. ParticleEmitter15.ZOffset = 1
  3473. ParticleEmitter15.Size = NumberSequence.new(0,4.0437164306641,5.7377052307129,6.1748638153076)
  3474. ParticleEmitter15.Acceleration = Vector3.new(8, 5, -7)
  3475. ParticleEmitter15.EmissionDirection = Enum.NormalId.Back
  3476. ParticleEmitter15.Lifetime = NumberRange.new(2.5, 2.5)
  3477. ParticleEmitter15.LockedToPart = true
  3478. ParticleEmitter15.Rate = 300
  3479. ParticleEmitter15.RotSpeed = NumberRange.new(-56, 56)
  3480. ParticleEmitter15.SpreadAngle = Vector2.new(15, 5)
  3481. ParticleEmitter15.VelocitySpread = 15
  3482. ParticleEmitter16.Name = "WingFire2"
  3483. ParticleEmitter16.Parent = LocalScript0
  3484. ParticleEmitter16.Speed = NumberRange.new(8, 8)
  3485. ParticleEmitter16.Rotation = NumberRange.new(0, 360)
  3486. ParticleEmitter16.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3487. ParticleEmitter16.Enabled = false
  3488. ParticleEmitter16.LightEmission = 0.89999997615814
  3489. ParticleEmitter16.Texture = "rbxassetid://296874871"
  3490. ParticleEmitter16.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3491. ParticleEmitter16.ZOffset = 1
  3492. ParticleEmitter16.Size = NumberSequence.new(0,4.0437164306641,5.7377052307129,6.1748638153076)
  3493. ParticleEmitter16.Acceleration = Vector3.new(-8, 5, -7)
  3494. ParticleEmitter16.EmissionDirection = Enum.NormalId.Back
  3495. ParticleEmitter16.Lifetime = NumberRange.new(2.5, 2.5)
  3496. ParticleEmitter16.LockedToPart = true
  3497. ParticleEmitter16.Rate = 300
  3498. ParticleEmitter16.RotSpeed = NumberRange.new(-56, 56)
  3499. ParticleEmitter16.SpreadAngle = Vector2.new(15, 5)
  3500. ParticleEmitter16.VelocitySpread = 15
  3501. ParticleEmitter17.Name = "ExplosionFire1"
  3502. ParticleEmitter17.Parent = LocalScript0
  3503. ParticleEmitter17.Speed = NumberRange.new(7, 670)
  3504. ParticleEmitter17.Rotation = NumberRange.new(0, 360)
  3505. ParticleEmitter17.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3506. ParticleEmitter17.Enabled = false
  3507. ParticleEmitter17.LightEmission = 0.89999997615814
  3508. ParticleEmitter17.Texture = "rbxassetid://296874871"
  3509. ParticleEmitter17.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3510. ParticleEmitter17.ZOffset = 1
  3511. ParticleEmitter17.Size = NumberSequence.new(10,10,7.0491800308228,0)
  3512. ParticleEmitter17.Drag = 5
  3513. ParticleEmitter17.EmissionDirection = Enum.NormalId.Right
  3514. ParticleEmitter17.Lifetime = NumberRange.new(2, 4)
  3515. ParticleEmitter17.Rate = 300
  3516. ParticleEmitter17.RotSpeed = NumberRange.new(-56, 56)
  3517. ParticleEmitter17.SpreadAngle = Vector2.new(360, 360)
  3518. ParticleEmitter17.VelocitySpread = 360
  3519. ParticleEmitter18.Name = "FireballFire1"
  3520. ParticleEmitter18.Parent = LocalScript0
  3521. ParticleEmitter18.Rotation = NumberRange.new(0, 360)
  3522. ParticleEmitter18.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3523. ParticleEmitter18.Enabled = false
  3524. ParticleEmitter18.LightEmission = 0.89999997615814
  3525. ParticleEmitter18.Texture = "rbxassetid://296874871"
  3526. ParticleEmitter18.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3527. ParticleEmitter18.ZOffset = 1
  3528. ParticleEmitter18.Size = NumberSequence.new(10,10,7.0491800308228,0)
  3529. ParticleEmitter18.Drag = 1
  3530. ParticleEmitter18.EmissionDirection = Enum.NormalId.Right
  3531. ParticleEmitter18.Lifetime = NumberRange.new(0, 1.5)
  3532. ParticleEmitter18.Rate = 9999
  3533. ParticleEmitter18.RotSpeed = NumberRange.new(-56, 56)
  3534. ParticleEmitter18.SpreadAngle = Vector2.new(360, 360)
  3535. ParticleEmitter18.VelocitySpread = 360
  3536. ParticleEmitter19.Name = "FireballFire3"
  3537. ParticleEmitter19.Parent = LocalScript0
  3538. ParticleEmitter19.Rotation = NumberRange.new(0, 360)
  3539. ParticleEmitter19.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3540. ParticleEmitter19.Enabled = false
  3541. ParticleEmitter19.LightEmission = 0.89999997615814
  3542. ParticleEmitter19.Texture = "rbxassetid://296874871"
  3543. ParticleEmitter19.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3544. ParticleEmitter19.ZOffset = 1
  3545. ParticleEmitter19.Size = NumberSequence.new(2.7868854999542,4.4808745384216,4.5901637077332,0)
  3546. ParticleEmitter19.Drag = 1
  3547. ParticleEmitter19.EmissionDirection = Enum.NormalId.Right
  3548. ParticleEmitter19.Lifetime = NumberRange.new(0, 1.5)
  3549. ParticleEmitter19.Rate = 9999
  3550. ParticleEmitter19.RotSpeed = NumberRange.new(-56, 56)
  3551. ParticleEmitter19.SpreadAngle = Vector2.new(360, 360)
  3552. ParticleEmitter19.VelocitySpread = 360
  3553. ParticleEmitter20.Name = "DebrisFire"
  3554. ParticleEmitter20.Parent = LocalScript0
  3555. ParticleEmitter20.Speed = NumberRange.new(2, 2)
  3556. ParticleEmitter20.Rotation = NumberRange.new(0, 360)
  3557. ParticleEmitter20.Color = ColorSequence.new(Color3.new(0,0.3,0.7),Color3.new(0.2,0.5,1),Color3.new(0.1,0.4,0.9))
  3558. ParticleEmitter20.Enabled = false
  3559. ParticleEmitter20.LightEmission = 0.89999997615814
  3560. ParticleEmitter20.Texture = "rbxassetid://296874871"
  3561. ParticleEmitter20.Transparency = NumberSequence.new(0,0.14207655191422,0.4426229596138,0.62841534614563,1)
  3562. ParticleEmitter20.ZOffset = 1
  3563. ParticleEmitter20.Size = NumberSequence.new(2.677595615387,3.9890713691711,4.6448087692261,3.8251371383667,0)
  3564. ParticleEmitter20.Acceleration = Vector3.new(0, 25, 0)
  3565. ParticleEmitter20.Drag = 3
  3566. ParticleEmitter20.EmissionDirection = Enum.NormalId.Right
  3567. ParticleEmitter20.Lifetime = NumberRange.new(0, 3)
  3568. ParticleEmitter20.Rate = 300
  3569. ParticleEmitter20.RotSpeed = NumberRange.new(-56, 56)
  3570. ParticleEmitter20.SpreadAngle = Vector2.new(360, 360)
  3571. ParticleEmitter20.VelocitySpread = 360
  3572. Part21.Name = "Pauldrons"
  3573. Part21.Parent = LocalScript0
  3574. Part21.CFrame = CFrame.new(47.1000023, 30.5235691, 58.9999733, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  3575. Part21.Orientation = Vector3.new(0, 180, 0)
  3576. Part21.Position = Vector3.new(47.1000023, 45.5235691, 58.9999733)
  3577. Part21.Rotation = Vector3.new(-180, 0, -180)
  3578. Part21.Transparency = 1
  3579. Part21.Size = Vector3.new(0.75,0.75,0.75)
  3580. Part21.Anchored = true
  3581. Part21.BottomSurface = Enum.SurfaceType.Smooth
  3582. Part21.CanCollide = false
  3583. Part21.Locked = true
  3584. Part21.TopSurface = Enum.SurfaceType.Smooth
  3585. Part21.FormFactor = Enum.FormFactor.Custom
  3586. Part21.formFactor = Enum.FormFactor.Custom
  3587. SpecialMesh22.Parent = Part21
  3588. SpecialMesh22.MeshId = "http://www.roblox.com/asset/?id=483785066"
  3589. SpecialMesh22.TextureId = "rbxassetid://482556764"
  3590. SpecialMesh22.Offset = Vector3.new(0,0.5,0)
  3591. SpecialMesh22.Scale = Vector3.new(.81,.81,.81)
  3592. SpecialMesh22.MeshType = Enum.MeshType.FileMesh
  3593. Folder23.Name = "Package"
  3594. Folder23.Parent = LocalScript0
  3595. CharacterMesh24.Parent = Folder23
  3596. CharacterMesh24.BodyPart = Enum.BodyPart.Torso
  3597. CharacterMesh24.MeshId = 27111894
  3598. CharacterMesh25.Parent = Folder23
  3599. CharacterMesh25.BodyPart = Enum.BodyPart.LeftLeg
  3600. CharacterMesh25.MeshId = 27111857
  3601. CharacterMesh26.Parent = Folder23
  3602. CharacterMesh26.BodyPart = Enum.BodyPart.RightLeg
  3603. CharacterMesh26.MeshId = 27111882
  3604. CharacterMesh27.Name = "Superhero Left Arm"
  3605. CharacterMesh27.Parent = Folder23
  3606. CharacterMesh27.BodyPart = Enum.BodyPart.LeftArm
  3607. CharacterMesh27.MeshId = 32328397
  3608. CharacterMesh28.Name = "Superhero Right Arm"
  3609. CharacterMesh28.Parent = Folder23
  3610. CharacterMesh28.BodyPart = Enum.BodyPart.RightArm
  3611. CharacterMesh28.MeshId = 32328563
  3612. Part29.Name = "Flintlock"
  3613. Part29.Parent = LocalScript0
  3614. Part29.CFrame = CFrame.new(-11.2999983, -4.42351913, 92.0999756, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  3615. Part29.Orientation = Vector3.new(0, 180, 0)
  3616. Part29.Position = Vector3.new(-11.2999983, 4.42351913, 92.0999756)
  3617. Part29.Rotation = Vector3.new(0, 0, 0)
  3618. Part29.Color = Color3.new(0.105882, 0.164706, 0.207843)
  3619. Part29.Size = Vector3.new(0.05,0.1,0.05)
  3620. Part29.Anchored = true
  3621. Part29.Transparency = 1
  3622. Part29.BottomSurface = Enum.SurfaceType.Smooth
  3623. Part29.BrickColor = BrickColor.new("Black")
  3624. Part29.CanCollide = false
  3625. Part29.Locked = true
  3626. Part29.TopSurface = Enum.SurfaceType.Smooth
  3627. Part29.brickColor = BrickColor.new("Black")
  3628. Part29.FormFactor = Enum.FormFactor.Plate
  3629. Part29.formFactor = Enum.FormFactor.Plate
  3630. SpecialMesh30.Parent = Part29
  3631. SpecialMesh30.MeshId = "http://www.roblox.com/asset/?id="
  3632. SpecialMesh30.Scale = Vector3.new(.5, .5, .5)
  3633. SpecialMesh30.TextureId = "http://www.roblox.com/asset/?id="
  3634. SpecialMesh30.MeshType = Enum.MeshType.FileMesh
  3635. for i,v in pairs(mas:GetChildren()) do
  3636. v.Parent = workspace
  3637. pcall(function() v:MakeJoints() end)
  3638. end
  3639. mas:Destroy()
  3640. for i,v in pairs(cors) do
  3641. spawn(function()
  3642. pcall(v)
  3643. end)
  3644. end
  3645. local CONNECT = nil
  3646.  
  3647. while true do
  3648. Swait()
  3649. ANIMATE.Parent = nil
  3650. if Character:FindFirstChildOfClass("Humanoid") == nil then
  3651. Humanoid = IT("Humanoid",Character)
  3652. end
  3653. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  3654. v:Stop();
  3655. end
  3656. SINE = SINE + CHANGE
  3657. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3658. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3659. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  3660. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 29)
  3661. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  3662. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / 3)
  3663. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / 3)
  3664. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / 3)
  3665. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / 3)
  3666. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  3667. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / 3)
  3668. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / 3)
  3669. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / 3)
  3670. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / 3)
  3671. end
  3672. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3673. ANIM = "Jump"
  3674. if ATTACK == false then
  3675. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3676. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3677. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3678. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3679. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  3680. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  3681. end
  3682. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3683. ANIM = "Fall"
  3684. if ATTACK == false then
  3685. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3686. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3687. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3688. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3689. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  3690. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  3691. end
  3692. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3693. ANIM = "Idle"
  3694. if ATTACK == false then
  3695. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / 3)
  3696. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 4.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / 3)
  3697. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45 + 2 * SIN(SINE / 12)), RAD(-25))* RIGHTSHOULDERC0, 0.15 / 3)
  3698. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / 3)
  3699. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1.1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / 3)
  3700. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / 3)
  3701. end
  3702. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3703. ANIM = "Walk"
  3704. if ATTACK == false then
  3705. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / 3)
  3706. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / 3)
  3707. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / 3)
  3708. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / 3)
  3709. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / 3)
  3710. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / 3)
  3711. end
  3712. end
  3713. unanchor()
  3714. Humanoid.MaxHealth = "inf"
  3715. Humanoid.Health = "inf"
  3716. if Rooted == false then
  3717. Disable_Jump = false
  3718. Humanoid.WalkSpeed = Speed
  3719. elseif Rooted == true then
  3720. Disable_Jump = true
  3721. Humanoid.WalkSpeed = 0
  3722. end
  3723. end
Advertisement
Add Comment
Please, Sign In to add comment