Advertisement
Guest User

Untitled

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