Phantom_Mods

se_blue

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