Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.08 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86.  
  87.  
  88.  
  89.  
  90. --//====================================================\\--
  91. --|| CREATED BY SHACKLUSTER
  92. --\\====================================================//--
  93.  
  94.  
  95.  
  96. wait(0.2)
  97.  
  98.  
  99.  
  100. Player = game:GetService("Players").Owner
  101. PlayerGui = Player.PlayerGui
  102. Cam = workspace.CurrentCamera
  103. Backpack = Player.Backpack
  104. Character = Player.Character
  105. Humanoid = Character.Humanoid
  106. RootPart = Character["HumanoidRootPart"]
  107. Torso = Character["Torso"]
  108. Head = Character["Head"]
  109. RightArm = Character["Right Arm"]
  110. LeftArm = Character["Left Arm"]
  111. RightLeg = Character["Right Leg"]
  112. LeftLeg = Character["Left Leg"]
  113. RootJoint = RootPart["RootJoint"]
  114. Neck = Torso["Neck"]
  115. RightShoulder = Torso["Right Shoulder"]
  116. LeftShoulder = Torso["Left Shoulder"]
  117. RightHip = Torso["Right Hip"]
  118. LeftHip = Torso["Left Hip"]
  119. local sick = Instance.new("Sound",Character)
  120. sick.SoundId = "rbxassetid://1167151479"
  121. sick.Looped = true
  122. sick.Pitch = 1
  123. sick.Volume = 1
  124. sick:Play()
  125.  
  126. local naeeym2 = Instance.new("BillboardGui",Character)
  127. naeeym2.AlwaysOnTop = true
  128. naeeym2.Size = UDim2.new(5,35,2,35)
  129. naeeym2.StudsOffset = Vector3.new(0,3,0)
  130. naeeym2.Adornee = Character.Head
  131. naeeym2.Name = "Name"
  132. --naeeym2.PlayerToHideFrom = Player
  133. naeeym2.MaxDistance = 200
  134. local tecks2 = Instance.new("TextLabel",naeeym2)
  135. tecks2.BackgroundTransparency = 1
  136. tecks2.TextScaled = true
  137. tecks2.BorderSizePixel = 0
  138. tecks2.Text = "₱Ɽł₴₥"
  139. tecks2.Font = "SciFi"
  140. tecks2.TextSize = 30
  141. tecks2.TextStrokeTransparency = 1
  142. tecks2.TextColor3 = Color3.new(255,255,255)
  143. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  144. tecks2.Size = UDim2.new(1,0,0.5,0)
  145. tecks2.Parent = naeeym2
  146.  
  147. IT = Instance.new
  148. CF = CFrame.new
  149. VT = Vector3.new
  150. RAD = math.rad
  151. C3 = Color3.new
  152. UD2 = UDim2.new
  153. BRICKC = BrickColor.new
  154. ANGLES = CFrame.Angles
  155. EULER = CFrame.fromEulerAnglesXYZ
  156. COS = math.cos
  157. ACOS = math.acos
  158. SIN = math.sin
  159. ASIN = math.asin
  160. ABS = math.abs
  161. MRANDOM = math.random
  162. FLOOR = math.floor
  163.  
  164. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  165. local NEWMESH = IT(MESH)
  166. if MESH == "SpecialMesh" then
  167. NEWMESH.MeshType = MESHTYPE
  168. if MESHID ~= "nil" and MESHID ~= "" then
  169. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  170. end
  171. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  172. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  173. end
  174. end
  175. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  176. NEWMESH.Scale = SCALE
  177. NEWMESH.Parent = PARENT
  178. return NEWMESH
  179. end
  180.  
  181. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  182. local NEWPART = IT("Part")
  183. NEWPART.formFactor = FORMFACTOR
  184. NEWPART.Reflectance = REFLECTANCE
  185. NEWPART.Transparency = TRANSPARENCY
  186. NEWPART.CanCollide = false
  187. NEWPART.Locked = true
  188. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  189. NEWPART.Name = NAME
  190. NEWPART.Size = SIZE
  191. NEWPART.Position = Torso.Position
  192. NEWPART.Material = MATERIAL
  193. NEWPART:BreakJoints()
  194. NEWPART.Parent = PARENT
  195. return NEWPART
  196. end
  197.  
  198.  
  199. --//=================================\\
  200. --|| CUSTOMIZATION
  201. --\\=================================//
  202.  
  203. Class_Name = "₱Ɽł₴₥.exe"
  204. Weapon_Name = "Add-ons"
  205.  
  206. Custom_Colors = {
  207. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  208. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  209.  
  210. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  211. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  212. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  213. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  214. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  215.  
  216. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  217. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  218. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  219. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  220. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  221. }
  222.  
  223.  
  224. Player_Size = 1 --Size of the player.
  225. Animation_Speed = 3
  226. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  227.  
  228. local Speed = 16
  229. local Effects2 = {}
  230.  
  231. --//=================================\\
  232. --|| END OF CUSTOMIZATION
  233. --\\=================================//
  234.  
  235. local function weldBetween(a, b)
  236. local weldd = Instance.new("ManualWeld")
  237. weldd.Part0 = a
  238. weldd.Part1 = b
  239. weldd.C0 = CFrame.new()
  240. weldd.C1 = b.CFrame:inverse() * a.CFrame
  241. weldd.Parent = a
  242. return weldd
  243. end
  244.  
  245. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  246. local acs = Instance.new("Part")
  247. acs.CanCollide = false
  248. acs.Anchored = false
  249. acs.Size = Vector3.new(0,0,0)
  250. acs.CFrame = attachmentpart.CFrame
  251. acs.Parent = Character
  252. acs.BrickColor = color
  253. local meshs = Instance.new("SpecialMesh")
  254. meshs.MeshId = mesh
  255. meshs.TextureId = texture
  256. meshs.Parent = acs
  257. meshs.Scale = scale
  258. meshs.Offset = offset
  259. weldBetween(attachmentpart,acs)
  260. end
  261.  
  262. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  263. if TYPE == "Gem" then
  264. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  265. acs.Anchored = false
  266. acs.CanCollide = false
  267. acs.CFrame = PART.CFrame
  268. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  269. weldBetween(PART,acs)
  270. elseif TYPE == "Skull" then
  271. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  272. acs.Anchored = false
  273. acs.CanCollide = false
  274. acs.CFrame = PART.CFrame
  275. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  276. weldBetween(PART,acs)
  277. elseif TYPE == "Eye" then
  278. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  279. acs.Anchored = false
  280. acs.CanCollide = false
  281. acs.CFrame = PART.CFrame
  282. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  283. weldBetween(PART,acs)
  284. end
  285. end
  286.  
  287. --//=================================\\
  288. --|| USEFUL VALUES
  289. --\\=================================//
  290.  
  291. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  292. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  293. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  294. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  295. local CO1 = 0
  296. local CO2 = 0
  297. local CO3 = 0
  298. local CO4 = 0
  299. local CHANGEDEFENSE = 0
  300. local CHANGEDAMAGE = 0
  301. local CHANGEMOVEMENT = 0
  302. local ANIM = "Idle"
  303. local ATTACK = false
  304. local EQUIPPED = false
  305. local HOLD = false
  306. local COMBO = 1
  307. local LASTPOINT = nil
  308. local BLCF = nil
  309. local SCFR = nil
  310. local STAGGERHITANIM = false
  311. local STAGGERANIM = false
  312. local STUNANIM = false
  313. local CRITCHANCENUMBER = 0
  314. local IDLENUMBER = 0
  315. local DONUMBER = 0
  316. local HANDIDLE = false
  317. local SINE = 0
  318. local CHANGE = 2 / Animation_Speed
  319. local WALKINGANIM = false
  320. local WALK = 0
  321. local KEYHOLD = false
  322. local DISABLEJUMPING = false
  323. local HASBEENBLOCKED = false
  324. local STUNDELAYNUMBER = 0
  325. local MANADELAYNUMBER = 0
  326. local SECONDARYMANADELAYNUMBER = 0
  327. local ROBLOXIDLEANIMATION = IT("Animation")
  328. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  329. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  330. --ROBLOXIDLEANIMATION.Parent = Humanoid
  331. local WEAPONGUI = IT("ScreenGui", nil)
  332. WEAPONGUI.Name = "Weapon GUI"
  333. local WEAPONTOOL = IT("HopperBin", nil)
  334. WEAPONTOOL.Name = Weapon_Name
  335. local Weapon = IT("Model")
  336. Weapon.Name = Weapon_Name
  337. local Effects = IT("Folder", Weapon)
  338. Effects.Name = "Effects"
  339. local ANIMATOR = Humanoid.Animator
  340. local ANIMATE = Character.Animate
  341. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  342. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  343. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  344. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  345. local CUTSOUNDS = {"645750958","645747150"}
  346. local VICIOUSWOOSH = "658941933"
  347. local RELEASESOUND = "565538688"
  348. local CHARGESOUND = "565538601"
  349. local UNANCHOR = true
  350. local MAGICPARTICLE = "1229782954"
  351.  
  352. --//=================================\\
  353. --\\=================================//
  354.  
  355. --//=================================\\
  356. --|| STATS
  357. --\\=================================//
  358.  
  359. if Character:FindFirstChild("Stats") ~= nil then
  360. Character:FindFirstChild("Stats").Parent = nil
  361. end
  362.  
  363. local Stats = IT("Folder", nil)
  364. Stats.Name = "Stats"
  365. local ChangeStat = IT("Folder", Stats)
  366. ChangeStat.Name = "ChangeStat"
  367. local Defense = IT("NumberValue", Stats)
  368. Defense.Name = "Defense"
  369. Defense.Value = 1
  370. local Movement = IT("NumberValue", Stats)
  371. Movement.Name = "Movement"
  372. Movement.Value = 1
  373. local Damage = IT("NumberValue", Stats)
  374. Damage.Name = "Damage"
  375. Damage.Value = 1
  376. local Mana = IT("NumberValue", Stats)
  377. Mana.Name = "Mana"
  378. Mana.Value = 0
  379. local SecondaryMana = IT("NumberValue", Stats)
  380. SecondaryMana.Name = "SecondaryMana"
  381. SecondaryMana.Value = 0
  382. local CanCrit = IT("BoolValue", Stats)
  383. CanCrit.Name = "CanCrit"
  384. CanCrit.Value = false
  385. local CritChance = IT("NumberValue", Stats)
  386. CritChance.Name = "CritChance"
  387. CritChance.Value = 20
  388. local CanPenetrateArmor = IT("BoolValue", Stats)
  389. CanPenetrateArmor.Name = "CanPenetrateArmor"
  390. CanPenetrateArmor.Value = false
  391. local AntiTeamKill = IT("BoolValue", Stats)
  392. AntiTeamKill.Name = "AntiTeamKill"
  393. AntiTeamKill.Value = false
  394. local Rooted = IT("BoolValue", Stats)
  395. Rooted.Name = "Rooted"
  396. Rooted.Value = false
  397. local Block = IT("BoolValue", Stats)
  398. Block.Name = "Block"
  399. Block.Value = false
  400. local RecentEnemy = IT("ObjectValue", Stats)
  401. RecentEnemy.Name = "RecentEnemy"
  402. RecentEnemy.Value = nil
  403. local StaggerHit = IT("BoolValue", Stats)
  404. StaggerHit.Name = "StaggerHit"
  405. StaggerHit.Value = false
  406. local Stagger = IT("BoolValue", Stats)
  407. Stagger.Name = "Stagger"
  408. Stagger.Value = false
  409. local Stun = IT("BoolValue", Stats)
  410. Stun.Name = "Stun"
  411. Stun.Value = false
  412. local StunValue = IT("NumberValue", Stats)
  413. StunValue.Name = "StunValue"
  414. StunValue.Value = 0
  415.  
  416.  
  417. --//=================================\\
  418. --\\=================================//
  419.  
  420.  
  421.  
  422.  
  423.  
  424. --//=================================\\
  425. --|| DEBUFFS / BUFFS
  426. --\\=================================//
  427.  
  428. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  429. DEFENSECHANGE1.Name = "ChangeDefense"
  430. DEFENSECHANGE1.Value = 0
  431.  
  432. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  433. MOVEMENTCHANGE1.Name = "ChangeMovement"
  434. MOVEMENTCHANGE1.Value = 0
  435.  
  436. --//=================================\\
  437. --\\=================================//
  438.  
  439.  
  440.  
  441.  
  442.  
  443. --//=================================\\
  444. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  445. --\\=================================//
  446.  
  447. ArtificialHB = Instance.new("BindableEvent", script)
  448. ArtificialHB.Name = "ArtificialHB"
  449.  
  450. script:WaitForChild("ArtificialHB")
  451.  
  452. frame = Frame_Speed
  453. tf = 0
  454. allowframeloss = false
  455. tossremainder = false
  456. lastframe = tick()
  457. script.ArtificialHB:Fire()
  458.  
  459. game:GetService("RunService").Heartbeat:connect(function(s, p)
  460. tf = tf + s
  461. if tf >= frame then
  462. if allowframeloss then
  463. script.ArtificialHB:Fire()
  464. lastframe = tick()
  465. else
  466. for i = 1, math.floor(tf / frame) do
  467. script.ArtificialHB:Fire()
  468. end
  469. lastframe = tick()
  470. end
  471. if tossremainder then
  472. tf = 0
  473. else
  474. tf = tf - frame * math.floor(tf / frame)
  475. end
  476. end
  477. end)
  478.  
  479. --//=================================\\
  480. --\\=================================//
  481.  
  482.  
  483.  
  484.  
  485.  
  486. --//=================================\\
  487. --|| SOME FUNCTIONS
  488. --\\=================================//
  489.  
  490. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  491. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  492. end
  493.  
  494. function PositiveAngle(NUMBER)
  495. if NUMBER >= 0 then
  496. NUMBER = 0
  497. end
  498. return NUMBER
  499. end
  500.  
  501. function NegativeAngle(NUMBER)
  502. if NUMBER <= 0 then
  503. NUMBER = 0
  504. end
  505. return NUMBER
  506. end
  507.  
  508. function Swait(NUMBER)
  509. if NUMBER == 0 or NUMBER == nil then
  510. ArtificialHB.Event:wait()
  511. else
  512. for i = 1, NUMBER do
  513. ArtificialHB.Event:wait()
  514. end
  515. end
  516. end
  517.  
  518. function QuaternionFromCFrame(cf)
  519. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  520. local trace = m00 + m11 + m22
  521. if trace > 0 then
  522. local s = math.sqrt(1 + trace)
  523. local recip = 0.5 / s
  524. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  525. else
  526. local i = 0
  527. if m11 > m00 then
  528. i = 1
  529. end
  530. if m22 > (i == 0 and m00 or m11) then
  531. i = 2
  532. end
  533. if i == 0 then
  534. local s = math.sqrt(m00 - m11 - m22 + 1)
  535. local recip = 0.5 / s
  536. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  537. elseif i == 1 then
  538. local s = math.sqrt(m11 - m22 - m00 + 1)
  539. local recip = 0.5 / s
  540. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  541. elseif i == 2 then
  542. local s = math.sqrt(m22 - m00 - m11 + 1)
  543. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  544. end
  545. end
  546. end
  547.  
  548. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  549. local xs, ys, zs = x + x, y + y, z + z
  550. local wx, wy, wz = w * xs, w * ys, w * zs
  551. local xx = x * xs
  552. local xy = x * ys
  553. local xz = x * zs
  554. local yy = y * ys
  555. local yz = y * zs
  556. local zz = z * zs
  557. 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))
  558. end
  559.  
  560. function QuaternionSlerp(a, b, t)
  561. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  562. local startInterp, finishInterp;
  563. if cosTheta >= 0.0001 then
  564. if (1 - cosTheta) > 0.0001 then
  565. local theta = ACOS(cosTheta)
  566. local invSinTheta = 1 / SIN(theta)
  567. startInterp = SIN((1 - t) * theta) * invSinTheta
  568. finishInterp = SIN(t * theta) * invSinTheta
  569. else
  570. startInterp = 1 - t
  571. finishInterp = t
  572. end
  573. else
  574. if (1 + cosTheta) > 0.0001 then
  575. local theta = ACOS(-cosTheta)
  576. local invSinTheta = 1 / SIN(theta)
  577. startInterp = SIN((t - 1) * theta) * invSinTheta
  578. finishInterp = SIN(t * theta) * invSinTheta
  579. else
  580. startInterp = t - 1
  581. finishInterp = t
  582. end
  583. end
  584. 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
  585. end
  586.  
  587. function Clerp(a, b, t)
  588. local qa = {QuaternionFromCFrame(a)}
  589. local qb = {QuaternionFromCFrame(b)}
  590. local ax, ay, az = a.x, a.y, a.z
  591. local bx, by, bz = b.x, b.y, b.z
  592. local _t = 1 - t
  593. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  594. end
  595.  
  596. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  597. local frame = IT("Frame")
  598. frame.BackgroundTransparency = TRANSPARENCY
  599. frame.BorderSizePixel = BORDERSIZEPIXEL
  600. frame.Position = POSITION
  601. frame.Size = SIZE
  602. frame.BackgroundColor3 = COLOR
  603. frame.BorderColor3 = BORDERCOLOR
  604. frame.Name = NAME
  605. frame.Parent = PARENT
  606. return frame
  607. end
  608.  
  609. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  610. local label = IT("TextLabel")
  611. label.BackgroundTransparency = 1
  612. label.Size = UD2(1, 0, 1, 0)
  613. label.Position = UD2(0, 0, 0, 0)
  614. label.TextColor3 = C3(255, 255, 255)
  615. label.TextStrokeTransparency = STROKETRANSPARENCY
  616. label.TextTransparency = TRANSPARENCY
  617. label.FontSize = TEXTFONTSIZE
  618. label.Font = TEXTFONT
  619. label.BorderSizePixel = BORDERSIZEPIXEL
  620. label.TextScaled = true
  621. label.Text = TEXT
  622. label.Name = NAME
  623. label.Parent = PARENT
  624. return label
  625. end
  626.  
  627. function NoOutlines(PART)
  628. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  629. end
  630.  
  631.  
  632. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  633. local NEWWELD = IT(TYPE)
  634. NEWWELD.Part0 = PART0
  635. NEWWELD.Part1 = PART1
  636. NEWWELD.C0 = C0
  637. NEWWELD.C1 = C1
  638. NEWWELD.Parent = PARENT
  639. return NEWWELD
  640. end
  641.  
  642. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  643. local NEWSOUND = nil
  644. coroutine.resume(coroutine.create(function()
  645. NEWSOUND = IT("Sound", PARENT)
  646. NEWSOUND.Volume = VOLUME
  647. NEWSOUND.Pitch = PITCH
  648. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  649. --Swait()
  650. NEWSOUND:play()
  651. if DOESLOOP == false then
  652. repeat Swait() until NEWSOUND.Playing == false
  653. NEWSOUND:remove()
  654. elseif DOESLOOP == true then
  655. NEWSOUND.Looped = true
  656. end
  657. end))
  658. return NEWSOUND
  659. end
  660.  
  661. function CFrameFromTopBack(at, top, back)
  662. local right = top:Cross(back)
  663. 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)
  664. end
  665.  
  666. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  667. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  668. local mesh = IT("SpecialMesh",wave)
  669. mesh.MeshType = "FileMesh"
  670. wave.Anchored = true
  671. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  672. mesh.Scale = VT(size,size,size)
  673. mesh.Offset = VT(0,0,-size/8)
  674. wave.CFrame = CF(part.p) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  675. coroutine.resume(coroutine.create(function(PART)
  676. for i = 1, waitt do
  677. Swait()
  678. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  679. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  680. if doesrotate == true then
  681. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  682. end
  683. wave.Transparency = wave.Transparency + (0.5/waitt)
  684. if wave.Transparency > 0.99 then
  685. wave:remove()
  686. end
  687. end
  688. end))
  689. end
  690.  
  691. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  692. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  693. local mesh = IT("SpecialMesh",wave)
  694. mesh.MeshType = "FileMesh"
  695. wave.Anchored = true
  696. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  697. mesh.Scale = VT(size,size,size)
  698. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  699. coroutine.resume(coroutine.create(function(PART)
  700. for i = 1, waitt do
  701. Swait()
  702. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  703. if doesrotate == true then
  704. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  705. end
  706. wave.Transparency = wave.Transparency + (0.5/waitt)
  707. if wave.Transparency > 0.99 then
  708. wave:remove()
  709. end
  710. end
  711. end))
  712. end
  713.  
  714. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  715. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  716. local mesh = IT("SpecialMesh",wave)
  717. mesh.MeshType = "FileMesh"
  718. wave.Anchored = true
  719. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  720. mesh.Scale = VT(size,size,size)
  721. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  722. coroutine.resume(coroutine.create(function(PART)
  723. for i = 1, waitt do
  724. Swait()
  725. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  726. if doesrotate == true then
  727. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  728. end
  729. wave.Transparency = wave.Transparency + (0.5/waitt)
  730. if wave.Transparency > 0.99 then
  731. wave:remove()
  732. end
  733. end
  734. end))
  735. end
  736.  
  737. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2,color)
  738. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  739. local mesh = IT("SpecialMesh",wave)
  740. mesh.MeshType = "FileMesh"
  741. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  742. mesh.Scale = VT(size,size,size)
  743. wave.Anchored = true
  744. mesh.Offset = VT(0,0,0)
  745. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  746. coroutine.resume(coroutine.create(function(PART)
  747. for i = 1, waitt do
  748. Swait()
  749. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  750. if doesrotate == true then
  751. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  752. end
  753. wave.Transparency = wave.Transparency + (0.5/waitt)
  754. if wave.Transparency > 0.99 then
  755. wave:remove()
  756. end
  757. end
  758. end))
  759. end
  760.  
  761. function MagicSphere(size,waitt,part,color)
  762. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(0,0,0))
  763. local mesh = IT("SpecialMesh",wave)
  764. mesh.MeshType = "Sphere"
  765. wave.Anchored = true
  766. mesh.Scale = VT(size,size,size)
  767. mesh.Offset = VT(0,0,0)
  768. wave.CFrame = part * ANGLES(RAD(0),RAD(0),RAD(0))
  769. coroutine.resume(coroutine.create(function(PART)
  770. for i = 1, waitt do
  771. Swait()
  772. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  773. wave.Transparency = wave.Transparency + (1/waitt)
  774. if wave.Transparency > 0.99 then
  775. wave:remove()
  776. end
  777. end
  778. end))
  779. end
  780.  
  781. function MagicBlock(size,waitt,part,offset,color)
  782. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  783. local mesh = IT("BlockMesh",wave)
  784. wave.Anchored = true
  785. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  786. coroutine.resume(coroutine.create(function(PART)
  787. for i = 1, waitt do
  788. Swait()
  789. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  790. wave.CFrame = CF(wave.Position) * ANGLES(RAD(math(-360,360)),RAD(math(-360,360)),RAD(math(-360,360)))
  791. wave.Transparency = wave.Transparency + (1/waitt)
  792. if wave.Transparency > 0.99 then
  793. wave:remove()
  794. end
  795. end
  796. end))
  797. end
  798.  
  799. local EyeSizes={
  800. NumberSequenceKeypoint.new(0,0.5,0),
  801. NumberSequenceKeypoint.new(1,0.2,0)
  802. }
  803. local EyeTrans={
  804. NumberSequenceKeypoint.new(0,0,0),
  805. NumberSequenceKeypoint.new(1,1,0)
  806. }
  807. local PE=Instance.new("ParticleEmitter")
  808. PE.LightEmission=0.3
  809. PE.Size=NumberSequence.new(EyeSizes)
  810. PE.Transparency=NumberSequence.new(EyeTrans)
  811. PE.Rotation=NumberRange.new(0,360)
  812. PE.LockedToPart = false
  813. PE.Speed = NumberRange.new(0,0,0)
  814. PE.ZOffset = 0.3
  815. PE.Rate = 999
  816. PE.Name = "Particles"
  817.  
  818. function CreateParticles(art,text,accel,drag,lifetime,type,isenabledbydefault,locked)
  819. local particle = nil
  820. coroutine.resume(coroutine.create(function(PART)
  821. particle = PE:Clone()
  822. Swait()
  823. particle.Rate = 999
  824. particle.Parent = art
  825. particle.Acceleration = accel
  826. if type == "Fire" then
  827. local EyeSizes={
  828. NumberSequenceKeypoint.new(0,0.5,0.3),
  829. NumberSequenceKeypoint.new(1,0.2,0.2)
  830. }
  831. particle.Size = NumberSequence.new(EyeSizes)
  832. elseif type == "Smoke" then
  833. local EyeSizes={
  834. NumberSequenceKeypoint.new(0,0.5,0),
  835. NumberSequenceKeypoint.new(1,5,0.5)
  836. }
  837. particle.Size = NumberSequence.new(EyeSizes)
  838. elseif type == "Solid" then
  839. local EyeSizes={
  840. NumberSequenceKeypoint.new(0,0.5,0),
  841. NumberSequenceKeypoint.new(1,0.5,0)
  842. }
  843. particle.Size = NumberSequence.new(EyeSizes)
  844. end
  845. particle.Lifetime=NumberRange.new(lifetime)
  846. particle.Drag = drag
  847. if locked == true then
  848. particle.LockedToPart = true
  849. end
  850. particle.Texture = "http://www.roblox.com/asset/?id="..text
  851. particle.Enabled = isenabledbydefault
  852. end))
  853. return particle
  854. end
  855.  
  856. local EyeSizes={
  857. NumberSequenceKeypoint.new(0,0.5,0),
  858. NumberSequenceKeypoint.new(1,0.2,0)
  859. }
  860. local EyeTrans={
  861. NumberSequenceKeypoint.new(0,0,0),
  862. NumberSequenceKeypoint.new(1,1,0)
  863. }
  864. local PE2=Instance.new("ParticleEmitter")
  865. PE2.LightEmission=0.8
  866. PE2.Size=NumberSequence.new(EyeSizes)
  867. PE2.Transparency=NumberSequence.new(EyeTrans)
  868. PE2.Rotation=NumberRange.new(0,360)
  869. PE2.LockedToPart = false
  870. PE2.Speed = NumberRange.new(0,0,0)
  871. PE2.ZOffset = 0.3
  872. PE2.Rate = 999
  873. PE2.VelocitySpread = 90000
  874. PE2.Name = "Particles"
  875.  
  876. function CreateParticles2(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed)
  877. local particle = nil
  878. coroutine.resume(coroutine.create(function(PART)
  879. particle = PE2:Clone()
  880. Swait()
  881. particle.Rate = 999
  882. particle.Parent = art
  883. particle.Acceleration = accel
  884. if type == "Fire" then
  885. local EyeSizes={
  886. NumberSequenceKeypoint.new(0,size,size/2),
  887. NumberSequenceKeypoint.new(1,size/4,size/8)
  888. }
  889. particle.Size = NumberSequence.new(EyeSizes)
  890. elseif type == "Smoke" then
  891. local EyeSizes={
  892. NumberSequenceKeypoint.new(0,0.5,0),
  893. NumberSequenceKeypoint.new(1,5,0.5)
  894. }
  895. particle.Size = NumberSequence.new(EyeSizes)
  896. elseif type == "Solid" then
  897. local EyeSizes={
  898. NumberSequenceKeypoint.new(0,0.5,0),
  899. NumberSequenceKeypoint.new(1,0.5,0)
  900. }
  901. particle.Size = NumberSequence.new(EyeSizes)
  902. end
  903. particle.Lifetime=NumberRange.new(lifetime)
  904. particle.Drag = drag
  905. if locked == true then
  906. particle.LockedToPart = true
  907. end
  908. particle.Speed = NumberRange.new(speed,speed,speed)
  909. particle.Texture = "http://www.roblox.com/asset/?id="..MAGICPARTICLE
  910. particle.Enabled = isenabledbydefault
  911. --particle.Color = ColorSequence.new(Color3.new(255, 255, 255))
  912. end))
  913. return particle
  914. end
  915.  
  916. local Decal = IT("Decal")
  917.  
  918. function CreateMagicCircle(size,doesrotate,rotatedirection,waitt,cframe,alwaysfade)
  919. local sinkhole = IT("Part")
  920. sinkhole.Size = VT(size,0,size)
  921. sinkhole.CFrame = cframe
  922. --sinkhole.Orientation = VT(0,0,0)
  923. sinkhole.Parent = Effects
  924. sinkhole.Material = "Neon"
  925. sinkhole.Color = C3(255, 255, 255)
  926. sinkhole.Anchored = true
  927. sinkhole.CanCollide = false
  928. sinkhole.Transparency = 1
  929. local decal = Decal:Clone()
  930. decal.Parent = sinkhole
  931. decal.Face = "Top"
  932. decal.Texture = "http://www.roblox.com/asset/?id=1226241606"
  933. local decal2 = Decal:Clone()
  934. decal2.Parent = sinkhole
  935. decal2.Face = "Bottom"
  936. decal2.Texture = "http://www.roblox.com/asset/?id=1226241606"
  937. coroutine.resume(coroutine.create(function(PART)
  938. for i = 1, waitt do
  939. Swait()
  940. if doesrotate == true then
  941. sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  942. end
  943. if alwaysfade == true then
  944. decal.Transparency = decal.Transparency + (1/waitt)
  945. decal2.Transparency = decal.Transparency + (1/waitt)
  946. end
  947. if i > waitt-11 and (alwaysfade ~= true) then
  948. decal.Transparency = decal.Transparency + 0.1
  949. decal2.Transparency = decal.Transparency + 0.1
  950. end
  951. end
  952. sinkhole.Parent = nil
  953. end))
  954. return sinkhole
  955. end
  956.  
  957. --//=================================\\
  958. --\\=================================//
  959.  
  960.  
  961. --//=================================\\
  962. --|| WEAPON CREATION
  963. --\\=================================//
  964.  
  965. if Player_Size ~= 1 then
  966. for _, v in pairs (Weapon:GetChildren()) do
  967. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  968. local p1 = v.Part1
  969. v.Part1 = nil
  970. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  971. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  972. v.Part1 = p1
  973. elseif v.ClassName == "Part" then
  974. for _, b in pairs (v:GetChildren()) do
  975. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  976. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  977. end
  978. end
  979. end
  980. end
  981. end
  982.  
  983. Swait()
  984.  
  985. local Plate = IT("Part",Weapon)
  986. Plate.Size = VT(1,0.1,1)
  987. Plate.Transparency = 1
  988. Plate.CanCollide = false
  989. Plate.CFrame = LeftLeg.CFrame * CF(0,-1.1,0)
  990. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  991. weldBetween(LeftLeg,Plate)
  992.  
  993. local Plate = IT("Part",Weapon)
  994. Plate.Size = VT(1,0.1,1)
  995. Plate.Transparency = 1
  996. Plate.CanCollide = false
  997. Plate.CFrame = RightLeg.CFrame * CF(0,-1.1,0)
  998. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  999. weldBetween(RightLeg,Plate)
  1000.  
  1001. local Plate = IT("Part",Weapon)
  1002. Plate.Size = VT(1,0.1,1)
  1003. Plate.Transparency = 1
  1004. Plate.CanCollide = false
  1005. Plate.CFrame = RightArm.CFrame * CF(0,-1.1,0)
  1006. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  1007. weldBetween(RightArm,Plate)
  1008.  
  1009. local Plate = IT("Part",Weapon)
  1010. Plate.Size = VT(1,0.1,1)
  1011. Plate.Transparency = 1
  1012. Plate.CanCollide = false
  1013. Plate.CFrame = LeftArm.CFrame * CF(0,-1.1,0)
  1014. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  1015. weldBetween(LeftArm,Plate)
  1016.  
  1017. local eye = IT("Part",Weapon)
  1018. eye.Size = VT(0.2,0.2,0.2)
  1019. eye.Shape = "Ball"
  1020. eye.CFrame = Head.CFrame * CF(0.125,0.2,-0.55)
  1021. eye.Material = "Neon"
  1022. eye.BrickColor = BRICKC("Institutional white")
  1023. weldBetween(Head,eye)
  1024.  
  1025.  
  1026.  
  1027. for _, c in pairs(Weapon:GetChildren()) do
  1028. if c.ClassName == "Part" then
  1029. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1030. end
  1031. end
  1032.  
  1033. Weapon.Parent = Character
  1034.  
  1035. Humanoid.Died:connect(function()
  1036. ATTACK = true
  1037. end)
  1038.  
  1039. print(Class_Name.." loaded.")
  1040.  
  1041. --//=================================\\
  1042. --\\=================================//
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048. --//=================================\\
  1049. --|| DAMAGE FUNCTIONS
  1050. --\\=================================//
  1051.  
  1052. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1053. local STATPART = CreatePart(3, Effects, "Neon", 0, 1, "Institutional white", "Effect", VT())
  1054. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1055. local BODYGYRO = IT("BodyGyro", STATPART)
  1056. local BODYPOSITION = IT("BodyPosition", STATPART)
  1057. BODYPOSITION.P = 2000
  1058. BODYPOSITION.D = 100
  1059. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1060. if LABELTYPE == "Normal" then
  1061. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1062. elseif LABELTYPE == "Debuff" then
  1063. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  1064. elseif LABELTYPE == "Interruption" then
  1065. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  1066. end
  1067. game:GetService("Debris"):AddItem(STATPART ,5)
  1068. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1069. BILLBOARDGUI.Adornee = STATPART
  1070. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1071. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1072. BILLBOARDGUI.AlwaysOnTop = false
  1073. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1074. TEXTLABEL.BackgroundTransparency = 1
  1075. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1076. TEXTLABEL.Text = TEXT
  1077. TEXTLABEL.Font = "SciFi"
  1078. TEXTLABEL.FontSize="Size42"
  1079. TEXTLABEL.TextColor3 = COLOR
  1080. TEXTLABEL.TextStrokeTransparency = 1
  1081. TEXTLABEL.TextScaled = true
  1082. TEXTLABEL.TextWrapped = true
  1083. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1084. wait(0.2)
  1085. for i=1, 5 do
  1086. wait()
  1087. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1088. end
  1089. wait(1.2)
  1090. for i=1, 5 do
  1091. wait()
  1092. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1093. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1094. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1095. end
  1096. THEPART.Parent = nil
  1097. end),STATPART, BODYPOSITION, TEXTLABEL)
  1098. end
  1099.  
  1100.  
  1101. --//=================================\\
  1102. --|| DAMAGING
  1103. --\\=================================//
  1104.  
  1105. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  1106. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  1107. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1108. local dmg = math.random(min,max)
  1109. if humanoid.Health > 0 then
  1110. if beserk == true then
  1111. humanoid.Health = 0
  1112. else
  1113. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  1114. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  1115. if math.random(1,100) < critrate+1 then
  1116. humanoid.Health = humanoid.Health - dmg*critmultiplier
  1117. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1118. else
  1119. humanoid.Health = humanoid.Health - dmg
  1120. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  1121. end
  1122. local defence = Instance.new("BoolValue",hit.Parent)
  1123. defence.Name = ("HitBy"..Player.Name)
  1124. game:GetService("Debris"):AddItem(defence, 0.5)
  1125. end
  1126. end
  1127. end
  1128. end
  1129.  
  1130. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  1131. local dmg = math.random(min,max)
  1132. for i,v in ipairs(workspace:GetChildren()) do
  1133. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1134. local body = v:GetChildren()
  1135. for part = 1, #body do
  1136. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1137. if(body[part].Position - position).Magnitude < radius then
  1138. if v.ClassName == "Model" then
  1139. if v:FindFirstChild("Humanoid") then
  1140. if v.Humanoid.Health ~= 0 then
  1141. if CanBeDodgedByJumping == true then
  1142. if body[part].Position.Y < position.Y+5 then
  1143. if math.random(1,100) < critrate+1 then
  1144. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1145. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1146. else
  1147. v.Humanoid.Health = v.Humanoid.Health - dmg
  1148. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1149. end
  1150. local defence = Instance.new("BoolValue",v)
  1151. defence.Name = ("HitBy"..Player.Name)
  1152. game:GetService("Debris"):AddItem(defence, 0.5)
  1153. end
  1154. else
  1155. if beserk == true then
  1156. v.Humanoid.Health = 0
  1157. end
  1158. if math.random(1,100) < critrate+1 then
  1159. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1160. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1161. else
  1162. v.Humanoid.Health = v.Humanoid.Health - dmg
  1163. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1164. end
  1165. local defence = Instance.new("BoolValue",v)
  1166. defence.Name = ("HitBy"..Player.Name)
  1167. game:GetService("Debris"):AddItem(defence, 0.5)
  1168. end
  1169. end
  1170. end
  1171. end
  1172. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1173. end
  1174. end
  1175. end
  1176. if v.ClassName == "Part" then
  1177. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1178. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1179. end
  1180. end
  1181. end
  1182. end
  1183. end
  1184.  
  1185. function attractnearest(postype,position,range,maxstrength,last)
  1186. if postype == "Vector" then
  1187. for i,v in ipairs(workspace:GetChildren()) do
  1188. local body = v:GetChildren()
  1189. for part = 1, #body do
  1190. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1191. if(body[part].Position - position).Magnitude < range then
  1192. if body[part]:FindFirstChild("ATTRACT") == nil then
  1193. local bv = Instance.new("BodyVelocity")
  1194. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1195. bv.velocity = CF(body[part].Position,position).lookVector*maxstrength
  1196. bv.Parent = body[part]
  1197. bv.Name = "ATTRACT"
  1198. else
  1199. coroutine.resume(coroutine.create(function()
  1200. for i = 1, last/5 do
  1201. Swait(5)
  1202. body[part].ATTRACT.velocity = CF(body[part].Position,position).lookVector*maxstrength
  1203. end
  1204. body[part].ATTRACT:remove()
  1205. end))
  1206. end
  1207. end
  1208. end
  1209. end
  1210. if v.ClassName == "Part" then
  1211. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1212. if v:FindFirstChild("ATTRACT") == nil then
  1213. local bv = Instance.new("BodyVelocity")
  1214. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1215. bv.velocity = CF(v.Position,position).lookVector*maxstrength
  1216. bv.Parent = v
  1217. bv.Name = "ATTRACT"
  1218. else
  1219. coroutine.resume(coroutine.create(function()
  1220. for i = 1, last/5 do
  1221. Swait(5)
  1222. v.ATTRACT.velocity = CF(v.Position,position).lookVector*maxstrength
  1223. end
  1224. v.ATTRACT:remove()
  1225. end))
  1226. end
  1227. end
  1228. end
  1229. end
  1230. elseif postype == "Part" then
  1231. for i,v in ipairs(workspace:GetChildren()) do
  1232. local body = v:GetChildren()
  1233. for part = 1, #body do
  1234. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1235. if(body[part].Position - position.Position).Magnitude < range then
  1236. if body[part]:FindFirstChild("ATTRACT") == nil then
  1237. local bv = Instance.new("BodyVelocity")
  1238. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1239. bv.velocity = CF(body[part].Position,position.Position).lookVector*maxstrength
  1240. bv.Parent = body[part]
  1241. bv.Name = "ATTRACT"
  1242. else
  1243. coroutine.resume(coroutine.create(function()
  1244. for i = 1, last/5 do
  1245. Swait(5)
  1246. body[part].ATTRACT.velocity = CF(body[part].Position,position.Position).lookVector*maxstrength
  1247. end
  1248. body[part].ATTRACT:remove()
  1249. end))
  1250. end
  1251. end
  1252. end
  1253. end
  1254. if v.ClassName == "Part" then
  1255. if v.Anchored == false and (v.Position - position.Position).Magnitude < range then
  1256. if v:FindFirstChild("ATTRACT") == nil then
  1257. local bv = Instance.new("BodyVelocity")
  1258. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1259. bv.velocity = CF(v.Position,position.Position).lookVector*maxstrength
  1260. bv.Parent = v
  1261. bv.Name = "ATTRACT"
  1262. else
  1263. coroutine.resume(coroutine.create(function()
  1264. for i = 1, last/5 do
  1265. Swait(5)
  1266. v.ATTRACT.velocity = CF(v.Position,position.Position).lookVector*maxstrength
  1267. end
  1268. v.ATTRACT:remove()
  1269. end))
  1270. end
  1271. end
  1272. end
  1273. end
  1274. end
  1275. end
  1276.  
  1277. function killnearest(position,range,maxstrength,candestroy)
  1278. for i,v in ipairs(workspace:GetChildren()) do
  1279. local body = v:GetChildren()
  1280. for part = 1, #body do
  1281. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1282. if(body[part].Position - position).Magnitude < range then
  1283. if v.ClassName == "Model" then
  1284. v:BreakJoints()
  1285. end
  1286. if candestroy == true then
  1287. table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1288. end
  1289. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1290. end
  1291. end
  1292. end
  1293. if v.ClassName == "Part" then
  1294. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1295. if candestroy == true then
  1296. table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1297. end
  1298. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1299. end
  1300. end
  1301. end
  1302. end
  1303.  
  1304. --//=================================\\
  1305. --|| ATTACK FUNCTIONS AND STUFF
  1306. --\\=================================//
  1307.  
  1308. function CheckTableForString(Table, String)
  1309. for i, v in pairs(Table) do
  1310. if string.find(string.lower(String), string.lower(v)) then
  1311. return true
  1312. end
  1313. end
  1314. return false
  1315. end
  1316.  
  1317. function CheckIntangible(Hit)
  1318. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  1319. if Hit and Hit.Parent then
  1320. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  1321. return true
  1322. end
  1323. end
  1324. return false
  1325. end
  1326.  
  1327. Debris = game:GetService("Debris")
  1328.  
  1329. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1330. local Direction = CFrame.new(StartPos, Vec).lookVector
  1331. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1332. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1333. if RayHit and CheckIntangible(RayHit) then
  1334. if DelayIfHit then
  1335. wait()
  1336. end
  1337. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1338. end
  1339. return RayHit, RayPos, RayNormal
  1340. end
  1341.  
  1342. function turnto(pos)
  1343. RootPart.CFrame = CF(RootPart.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
  1344. end
  1345.  
  1346. function GraviBomb()
  1347. ATTACK = true
  1348. for i=0, 1, 0.1 / Animation_Speed do
  1349. Swait()
  1350. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  1351. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1352. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1353. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1354. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1355. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1356. end
  1357. MagicSphere(25,25,LeftArm.CFrame*CF(0,-1,0),"Institutional white")
  1358. MagicSphere(20,25,LeftArm.CFrame*CF(0,-1,0),"Institutional white")
  1359. coroutine.resume(coroutine.create(function()
  1360. local cframe = CF(Mouse.Hit.p)
  1361. local circle = CreateMagicCircle(75,true,0.05,120,cframe,false)
  1362. for i = 1, 5 do
  1363. CreateSound(CUTSOUNDS[MRANDOM(1, #CUTSOUNDS)], Effects, 2, 1)
  1364. local sphere = IT("Part",Effects)
  1365. sphere.Shape = "Ball"
  1366. sphere.Size = VT(50,50,50)
  1367. sphere.Anchored = true
  1368. sphere.CanCollide = false
  1369. sphere.Material = "Neon"
  1370. sphere.BrickColor = BRICKC("Institutional white")
  1371. sphere.Transparency = 0
  1372. sphere.CFrame = cframe
  1373. for i = 1, 10 do
  1374. Swait(2)
  1375. attractnearest("Vector",cframe.p,75,50,10)
  1376. sphere.CFrame = cframe
  1377. sphere.Size = sphere.Size - VT(5,5,5)
  1378. sphere.CFrame = cframe
  1379. end
  1380. sphere:remove()
  1381. end
  1382. local scale = 5
  1383. coroutine.resume(coroutine.create(function()
  1384. CreateSound(RELEASESOUND, Effects, 2, 1)
  1385. MagicSphere(100,125,cframe,"Institutional white")
  1386. MagicSphere(75,125,cframe,"Institutional white")
  1387. CreateSwirl(180,6,true,0.3,225,circle,0,"Institutional white")
  1388. CreateSwirl(180,4,true,0.3,225,circle,0,"Institutional white")
  1389. CreateSwirl(180,2,true,0.3,225,circle,0,"Institutional white")
  1390. for i = 1, 15 do
  1391. Swait()
  1392. killnearest(cframe.p,25,150)
  1393. end
  1394. end))
  1395. end))
  1396. for i=0, 1, 0.1 / Animation_Speed do
  1397. Swait()
  1398. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  1399. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1400. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1401. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1402. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1403. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1404. end
  1405. ATTACK = false
  1406. end
  1407.  
  1408. function GraviSpear()
  1409. ATTACK = true
  1410. for i=0, 1.5, 0.1 / Animation_Speed do
  1411. Swait()
  1412. turnto(Mouse.Hit.p)
  1413. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.4 / Animation_Speed)
  1414. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1415. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1416. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1417. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1418. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1419. end
  1420. local spear = IT("Part",Effects)
  1421. spear.Anchored = true
  1422. spear.CanCollide = false
  1423. spear.Shape = "Ball"
  1424. spear.Size = VT(0,0,0)
  1425. spear.Material = "Neon"
  1426. spear.Transparency = 0.2
  1427. spear.BrickColor = BRICKC("Institutional white")
  1428. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  1429. local inner = spear:Clone()
  1430. inner.Parent = spear
  1431. inner.Size = VT(0,0,0)
  1432. inner.BrickColor = BRICKC("Institutional white")
  1433. inner.CFrame = spear.CFrame
  1434. for i = 1, 10 do
  1435. Swait()
  1436. turnto(Mouse.Hit.p)
  1437. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  1438. inner.CFrame = spear.CFrame
  1439. spear.Size = spear.Size + VT(0.4,0.4,0.4)
  1440. inner.Size = inner.Size + VT(0.35,0.35,0.35)
  1441. end
  1442. CreateParticles2(inner,VT(0,0,0),5,1,"Smoke",true,true,1,8)
  1443. MagicSphere(25,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  1444. MagicSphere(20,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  1445. CreateSound(CUTSOUNDS[MRANDOM(1, #CUTSOUNDS)], RightArm, 6, 1)
  1446. local bv = Instance.new("BodyVelocity")
  1447. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1448. bv.velocity = CF(spear.Position,Mouse.Hit.p).lookVector*65
  1449. bv.Parent = spear
  1450. bv.Name = "MOVE"
  1451. weldBetween(spear,inner)
  1452. spear.Anchored = false
  1453. inner.Anchored = false
  1454. local harm = spear.Touched:Connect(function(hit)
  1455. if hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  1456. local cframe = spear.CFrame
  1457. coroutine.resume(coroutine.create(function()
  1458. spear.Parent = nil
  1459. coroutine.resume(coroutine.create(function()
  1460. CreateSound(RELEASESOUND, Effects, 2, 1)
  1461. MagicSphere(60,125,cframe,"Institutional white")
  1462. MagicSphere(50,125,cframe,"Institutional white")
  1463. CreateSwirl(0,6,true,0.3,125,spear,0,"Institutional white")
  1464. CreateSwirl(0,4,true,0.3,125,spear,0,"Institutional white")
  1465. CreateSwirl(0,2,true,0.3,125,spear,0,"Institutional white")
  1466. for i = 1, 15 do
  1467. Swait()
  1468. killnearest(cframe.p,15,150)
  1469. end
  1470. end))
  1471. end))
  1472. end
  1473. end)
  1474. coroutine.resume(coroutine.create(function()
  1475. repeat
  1476. Swait()
  1477. CreateSwirl(0,2,true,0.3,25,spear,0,"Institutional white")
  1478. attractnearest("Part",spear,65,70,5)
  1479. until spear.Parent == nil
  1480. end))
  1481. ATTACK = false
  1482. end
  1483.  
  1484. function WarpSpear()
  1485. ATTACK = true
  1486. for i=0, 1.5, 0.1 / Animation_Speed do
  1487. Swait()
  1488. turnto(Mouse.Hit.p)
  1489. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.4 / Animation_Speed)
  1490. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1491. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1492. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1493. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1494. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1495. end
  1496. local spear = IT("Part",Effects)
  1497. spear.Anchored = true
  1498. spear.CanCollide = false
  1499. spear.Shape = "Ball"
  1500. spear.Size = VT(0,0,0)
  1501. spear.Material = "Neon"
  1502. spear.Transparency = 0.2
  1503. spear.BrickColor = BRICKC("Institutional white")
  1504. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  1505. local inner = spear:Clone()
  1506. inner.Parent = spear
  1507. inner.Size = VT(0,0,0)
  1508. inner.BrickColor = BRICKC("Institutional white")
  1509. inner.CFrame = spear.CFrame
  1510. for i = 1, 5 do
  1511. Swait()
  1512. turnto(Mouse.Hit.p)
  1513. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  1514. inner.CFrame = spear.CFrame
  1515. spear.Size = spear.Size + VT(0.4,0.4,0.4)
  1516. inner.Size = inner.Size + VT(0.35,0.35,0.35)
  1517. end
  1518. MagicSphere(25,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  1519. MagicSphere(20,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  1520. CreateSound(CUTSOUNDS[MRANDOM(1, #CUTSOUNDS)], RightArm, 6, 1)
  1521. local bv = Instance.new("BodyVelocity")
  1522. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1523. bv.velocity = CF(spear.Position,Mouse.Hit.p).lookVector*100
  1524. bv.Parent = spear
  1525. bv.Name = "MOVE"
  1526. weldBetween(spear,inner)
  1527. spear.Anchored = false
  1528. inner.Anchored = false
  1529. local HIT = false
  1530. local harm = spear.Touched:Connect(function(hit)
  1531. if HIT == false and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  1532. local cframe = spear.CFrame
  1533. HIT = true
  1534. coroutine.resume(coroutine.create(function()
  1535. spear.Parent = nil
  1536. RootPart.CFrame = CF(spear.Position,Mouse.Hit.p)
  1537. coroutine.resume(coroutine.create(function()
  1538. CreateSound(RELEASESOUND, Effects, 2, 1.5)
  1539. MagicSphere(30,105,cframe,"Institutional white")
  1540. MagicSphere(25,105,cframe,"Institutional white")
  1541. for i = 1, 15 do
  1542. Swait()
  1543. killnearest(cframe.p,7.5,150)
  1544. end
  1545. end))
  1546. end))
  1547. end
  1548. end)
  1549. coroutine.resume(coroutine.create(function()
  1550. Swait(75)
  1551. if HIT == false then
  1552. local cframe = spear.CFrame
  1553. HIT = true
  1554. coroutine.resume(coroutine.create(function()
  1555. spear.Parent = nil
  1556. RootPart.CFrame = CF(spear.Position,Mouse.Hit.p)
  1557. coroutine.resume(coroutine.create(function()
  1558. CreateSound(RELEASESOUND, Effects, 2, 1.5)
  1559. MagicSphere(30,105,cframe,"Institutional white")
  1560. MagicSphere(25,105,cframe,"Institutional white")
  1561. for i = 1, 15 do
  1562. Swait()
  1563. killnearest(cframe.p,7.5,150)
  1564. end
  1565. end))
  1566. end))
  1567. end
  1568. end))
  1569. coroutine.resume(coroutine.create(function()
  1570. local loop = 0
  1571. repeat
  1572. Swait()
  1573. loop = loop + 1
  1574. if loop == 4 then
  1575. MagicSphere(25,15,spear.CFrame,"Institutional white")
  1576. end
  1577. if loop == 7 then
  1578. loop = 0
  1579. MagicSphere(25,15,spear.CFrame,"Institutional white")
  1580. end
  1581. attractnearest("Part",spear,12.5,50,5)
  1582. until spear.Parent == nil
  1583. end))
  1584. ATTACK = false
  1585. end
  1586.  
  1587. function GravityGlobe()
  1588. ATTACK = true
  1589. Rooted = true
  1590. for i=0, 1, 0.1 / Animation_Speed do
  1591. Swait()
  1592. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  1593. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1594. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1595. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1596. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1597. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1598. end
  1599. coroutine.resume(coroutine.create(function()
  1600. CreateMagicCircle(100,true,0.02,50,CF(RootPart.Position) * CF(0,-2.8,0),true)
  1601. local cframe = RootPart.CFrame
  1602. CreateSound(RELEASESOUND, Effects, 2, 1)
  1603. local sphere = IT("Part",Effects)
  1604. sphere.Shape = "Ball"
  1605. sphere.Size = VT(0,0,0)
  1606. sphere.Anchored = true
  1607. sphere.CanCollide = false
  1608. sphere.Material = "Neon"
  1609. sphere.Transparency = 0.5
  1610. sphere.BrickColor = BRICKC("Institutional white")
  1611. sphere.CFrame = cframe
  1612. local sphere2 = IT("Part",Effects)
  1613. sphere2.Shape = "Ball"
  1614. sphere2.Size = VT(0,0,0)
  1615. sphere2.Anchored = true
  1616. sphere2.CanCollide = false
  1617. sphere2.Material = "Neon"
  1618. sphere2.Transparency = 0.3
  1619. sphere2.BrickColor = BRICKC("Institutional white")
  1620. sphere2.CFrame = cframe
  1621. for i = 1, 10 do
  1622. Swait(2)
  1623. attractnearest("Vector",cframe.p,50,50,10)
  1624. sphere.CFrame = cframe
  1625. sphere.Size = sphere.Size + VT(4,4,4)
  1626. sphere2.CFrame = cframe
  1627. sphere2.Size = sphere2.Size + VT(3.5,3.5,3.5)
  1628. killnearest(cframe.p,15,0)
  1629. end
  1630. local scale = 0.2
  1631. local mode = "shrink"
  1632. for i = 1, 350 do
  1633. Swait()
  1634. if mode == "shrink" then
  1635. scale = scale + scale
  1636. if scale >= - 65 then
  1637. mode = "grow"
  1638. end
  1639. elseif mode == "grow" then
  1640. scale = scale + -scale*2
  1641. if scale <= - 65 then
  1642. mode = "shrink"
  1643. end
  1644. end
  1645. CreateRing(180,5,true,0,50,sphere,0,scale,scale,"Institutional white")
  1646. sphere.Size = sphere.Size + VT(scale,scale,scale)
  1647. attractnearest("Vector",cframe.p,50,50,5)
  1648. killnearest(cframe.p,15,0)
  1649. end
  1650. for i = 1, 10 do
  1651. Swait(2)
  1652. sphere.CFrame = cframe
  1653. sphere.Size = sphere.Size - VT(5,5,5)
  1654. sphere.CFrame = cframe
  1655. sphere2.CFrame = cframe
  1656. sphere2.Size = sphere2.Size - VT(3.5,3.5,3.5)
  1657. end
  1658. sphere:remove()
  1659. sphere2:remove()
  1660. end))
  1661. for i=0, 1, 0.1 / Animation_Speed do
  1662. Swait()
  1663. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  1664. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1665. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1666. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1667. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1668. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1669. end
  1670. Rooted = false
  1671. ATTACK = false
  1672. end
  1673.  
  1674. function GravityBeam()
  1675. ATTACK = true
  1676. Rooted = true
  1677. for i=0, 1.5, 0.1 / Animation_Speed do
  1678. Swait()
  1679. turnto(Mouse.Hit.p)
  1680. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.4 / Animation_Speed)
  1681. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  1682. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1683. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1684. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1685. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1686. end
  1687. local startpos = RightArm.CFrame*CF(0,-1.5,0).p
  1688. local loop = 0
  1689. local loopsound = CreateSound(CHARGESOUND, RightArm, 10, 1, true)
  1690. local loopsound2 = CreateSound("487214658", Effects, 1, 0, true)
  1691. local pos = nil
  1692. repeat
  1693. if loop < 150 then
  1694. Swait()
  1695. loop = loop + 1
  1696. turnto(Mouse.Hit.p)
  1697. MagicSphere(15,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  1698. MagicSphere(12,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  1699. else
  1700. loopsound2.Pitch = 1
  1701. loopsound:Stop()
  1702. startpos = RightArm.CFrame*CF(0,-1.5,0).p
  1703. turnto(Mouse.Hit.p)
  1704. MagicSphere(35,25,CF(startpos),"Institutional white")
  1705. MagicSphere(32,25,CF(startpos),"Institutional white")
  1706. local RayHit, RayPos, RayNormal = CastZapRay(startpos, Mouse.Hit.p, 150, Character, false)
  1707. local distance = (startpos - RayPos).magnitude
  1708. local laser = Instance.new("Part",Effects)
  1709. laser.Transparency = 0.5
  1710. laser.CanCollide = false
  1711. laser.Anchored = true
  1712. laser.BrickColor = BrickColor.new("Institutional white")
  1713. laser.Material = "Neon"
  1714. laser.formFactor = Enum.FormFactor.Custom
  1715. laser.Size = Vector3.new(2.5, 2.5, distance)
  1716. laser.CFrame = CFrame.new(startpos, RayPos) * CFrame.new(0, 0, -distance/2)
  1717. local laser2 = Instance.new("Part",Effects)
  1718. laser2.Transparency = 0
  1719. laser2.CanCollide = false
  1720. laser2.Anchored = true
  1721. laser2.BrickColor = BrickColor.new("Institutional white")
  1722. laser2.Material = "Neon"
  1723. laser2.formFactor = Enum.FormFactor.Custom
  1724. laser2.Size = Vector3.new(2, 2, distance)
  1725. laser2.CFrame = CFrame.new(startpos, RayPos) * CFrame.new(0, 0, -distance/2)
  1726. killnearest(RayPos,5,150,true)
  1727. MagicSphere(350,2,CF(RayPos),"Institutional white")
  1728. MagicSphere(320,2,CF(RayPos),"Institutional white")
  1729. if RayHit ~= nil then
  1730. CreateWave(0,5,false,0,25,CF(RayPos),0,"Institutional white")
  1731. end
  1732. attractnearest("Vector",RayPos,40,50,10)
  1733. pos = RayPos
  1734. Swait()
  1735. laser2:remove()
  1736. laser:remove()
  1737. end
  1738. until KEYHOLD == false
  1739. if loop == 150 then
  1740. local cframe = CF(pos)
  1741. coroutine.resume(coroutine.create(function()
  1742. coroutine.resume(coroutine.create(function()
  1743. CreateSound(RELEASESOUND, Effects, 2, 1)
  1744. MagicSphere(500,55,cframe,"Institutional white")
  1745. MagicSphere(450,55,cframe,"Institutional white")
  1746. for i = 1, 15 do
  1747. Swait()
  1748. killnearest(cframe.p,75,150)
  1749. end
  1750. end))
  1751. end))
  1752. end
  1753. loopsound2:remove()
  1754. loopsound:remove()
  1755. Rooted = false
  1756. ATTACK = false
  1757. end
  1758.  
  1759. --//=================================\\
  1760. --|| ASSIGN THINGS TO KEYS
  1761. --\\=================================//
  1762.  
  1763. Humanoid.Changed:connect(function(Jump)
  1764. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1765. Humanoid.Jump = false
  1766. end
  1767. end)
  1768.  
  1769. function MouseDown(Mouse)
  1770. if ATTACK == false then
  1771. end
  1772. end
  1773.  
  1774. function MouseUp(Mouse)
  1775. HOLD = false
  1776. end
  1777.  
  1778. function KeyDown(Key)
  1779. KEYHOLD = true
  1780. if Key == "q" and ATTACK == false then
  1781. GraviBomb()
  1782. end
  1783.  
  1784. if Key == "e" and ATTACK == false then
  1785. GraviSpear()
  1786. end
  1787.  
  1788. if Key == "r" and ATTACK == false then
  1789. GravityGlobe()
  1790. end
  1791.  
  1792. if Key == "g" and ATTACK == false then
  1793. GravityBeam()
  1794. end
  1795.  
  1796. if Key == "x" and ATTACK == false then
  1797. end
  1798.  
  1799. if Key == "c" and ATTACK == false then
  1800. WarpSpear()
  1801. end
  1802.  
  1803. if Key == "t" and ATTACK == false then
  1804. CreateSound("305685800", Head, 10, 1 ,false)
  1805. end
  1806. end
  1807.  
  1808. function KeyUp(Key)
  1809. KEYHOLD = false
  1810. end
  1811.  
  1812. Mouse.Button1Down:connect(function(NEWKEY)
  1813. MouseDown(NEWKEY)
  1814. end)
  1815. Mouse.Button1Up:connect(function(NEWKEY)
  1816. MouseUp(NEWKEY)
  1817. end)
  1818. Mouse.KeyDown:connect(function(NEWKEY)
  1819. KeyDown(NEWKEY)
  1820. end)
  1821. Mouse.KeyUp:connect(function(NEWKEY)
  1822. KeyUp(NEWKEY)
  1823. end)
  1824.  
  1825. --//=================================\\
  1826. --\\=================================//
  1827.  
  1828.  
  1829. function unanchor()
  1830. if UNANCHOR == true then
  1831. g = Character:GetChildren()
  1832. for i = 1, #g do
  1833. if g[i].ClassName == "Part" then
  1834. g[i].Anchored = false
  1835. end
  1836. end
  1837. end
  1838. end
  1839.  
  1840.  
  1841. --//=================================\\
  1842. --|| WRAP THE WHOLE SCRIPT UP
  1843. --\\=================================//
  1844.  
  1845. Humanoid.Changed:connect(function(Jump)
  1846. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1847. Humanoid.Jump = false
  1848. end
  1849. end)
  1850.  
  1851. ANIMATE.Parent = nil
  1852. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1853. IDLEANIMATION:Play()
  1854.  
  1855. while true do
  1856. Swait()
  1857. SINE = SINE + CHANGE
  1858. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1859. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1860. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1861. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1862. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1863. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1864. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1865. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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)
  1866. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1867. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1868. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1869. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1870. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1871. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1872. ----LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1873. end
  1874. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1875. ANIM = "Jump"
  1876. if ATTACK == false then
  1877. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1878. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1879. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1880. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1881. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1882. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1883. end
  1884. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1885. ANIM = "Fall"
  1886. if ATTACK == false then
  1887. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1888. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1889. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1890. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1891. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1892. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1893. end
  1894. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1895. ANIM = "Idle"
  1896. if ATTACK == false then
  1897. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1898. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1899. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1900. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1901. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1902. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1903. end
  1904. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1905. ANIM = "Walk"
  1906. WALK = WALK + 1 / Animation_Speed
  1907. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1908. WALK = 0
  1909. if WALKINGANIM == true then
  1910. WALKINGANIM = false
  1911. elseif WALKINGANIM == false then
  1912. WALKINGANIM = true
  1913. end
  1914. end
  1915. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1916. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1917. if ATTACK == false then
  1918. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed*3)
  1919. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1920. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1921. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1922. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1923. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1924. end
  1925. end
  1926. if #Effects2>0 then
  1927. for e=1,#Effects2 do
  1928. if Effects2[e]~=nil then
  1929. local Thing=Effects2[e]
  1930. if Thing~=nil then
  1931. local Part=Thing[1]
  1932. local Mode=Thing[2]
  1933. local Delay=Thing[3]
  1934. local IncX=Thing[4]
  1935. local IncY=Thing[5]
  1936. local IncZ=Thing[6]
  1937. local Part2=Thing[8]
  1938. if Thing[1].Transparency<=1 then
  1939. if Thing[2]=="Block1" then
  1940. Thing[1].CFrame=Thing[1].CFrame
  1941. Mesh=Thing[1].Mesh
  1942. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1943. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1944. elseif Thing[2]=="Cylinder" then
  1945. Mesh=Thing[1].Mesh
  1946. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1947. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1948. elseif Thing[2]=="Blood" then
  1949. Mesh=Thing[7]
  1950. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1951. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1952. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1953. elseif Thing[2]=="Elec" then
  1954. Mesh=Thing[1].Mesh
  1955. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1956. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1957. elseif Thing[2]=="Disappear" then
  1958. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1959. end
  1960. else
  1961. Part.Parent=nil
  1962. table.remove(Effects2,e)
  1963. end
  1964. end
  1965. end
  1966. end
  1967. end
  1968. unanchor()
  1969. Humanoid.MaxHealth = "inf"
  1970. Humanoid.Health = "inf"
  1971. if Rooted == false then
  1972. Disable_Jump = false
  1973. Humanoid.WalkSpeed = Speed
  1974. elseif Rooted == true then
  1975. Disable_Jump = true
  1976. Humanoid.WalkSpeed = 0
  1977. end
  1978. --CreateMagicCircle(2 ,false,0,3,LeftLeg.CFrame * CF(0,-1.2,0),true)
  1979. end
  1980.  
  1981. --//=================================\\
  1982. --\\=================================//
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988. --//====================================================\\--
  1989. --|| END OF SCRIPT
  1990. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement