Advertisement
sneakydodge123

edit

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