kaualima12

editing

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