Advertisement
Fullgamer309

Untitled

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