Advertisement
Guest User

aaaaaaaaaaaaaaawwwddwxwws

a guest
Feb 18th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.17 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --//====================================================\\--
  88. --|| CREATED BY PSYCHO SHACKLUSTER
  89. --\\====================================================//--
  90.  
  91.  
  92.  
  93. wait(0.3)
  94.  
  95.  
  96.  
  97. Player = owner
  98. PlayerGui = Player.PlayerGui
  99. Cam = workspace.CurrentCamera
  100. Backpack = Player.Backpack
  101. Character = Player.Character
  102. Humanoid = Character.Humanoid
  103. RootPart = Character["HumanoidRootPart"]
  104. Torso = Character["Torso"]
  105. Head = Character["Head"]
  106. RightArm = Character["Right Arm"]
  107. LeftArm = Character["Left Arm"]
  108. RightLeg = Character["Right Leg"]
  109. LeftLeg = Character["Left Leg"]
  110. RootJoint = RootPart["RootJoint"]
  111. Neck = Torso["Neck"]
  112. RightShoulder = Torso["Right Shoulder"]
  113. LeftShoulder = Torso["Left Shoulder"]
  114. RightHip = Torso["Right Hip"]
  115. LeftHip = Torso["Left Hip"]
  116. hasdied = false
  117. demon = false
  118.  
  119. IT = Instance.new
  120. CF = CFrame.new
  121. VT = Vector3.new
  122. RAD = math.rad
  123. C3 = Color3.new
  124. UD2 = UDim2.new
  125. BRICKC = BrickColor.new
  126. ANGLES = CFrame.Angles
  127. EULER = CFrame.fromEulerAnglesXYZ
  128. COS = math.cos
  129. ACOS = math.acos
  130. SIN = math.sin
  131. ASIN = math.asin
  132. ABS = math.abs
  133. MRANDOM = math.random
  134. FLOOR = math.floor
  135.  
  136. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  137. local NEWMESH = IT(MESH)
  138. if MESH == "SpecialMesh" then
  139. NEWMESH.MeshType = MESHTYPE
  140. if MESHID ~= "nil" and MESHID ~= "" then
  141. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  142. end
  143. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  144. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  145. end
  146. end
  147. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  148. NEWMESH.Scale = SCALE
  149. NEWMESH.Parent = PARENT
  150. return NEWMESH
  151. end
  152.  
  153. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  154. local NEWPART = IT("Part")
  155. NEWPART.formFactor = FORMFACTOR
  156. NEWPART.Reflectance = REFLECTANCE
  157. NEWPART.Transparency = TRANSPARENCY
  158. NEWPART.CanCollide = false
  159. NEWPART.Locked = true
  160. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  161. NEWPART.Name = NAME
  162. NEWPART.Size = SIZE
  163. NEWPART.Position = Torso.Position
  164. NEWPART.Material = MATERIAL
  165. NEWPART:BreakJoints()
  166. NEWPART.Parent = PARENT
  167. return NEWPART
  168. end
  169.  
  170.  
  171. --//=================================\\
  172. --|| CUSTOMIZATION
  173. --\\=================================//
  174.  
  175. Class_Name = "Chainiac"
  176. Weapon_Name = "Chainiac"
  177.  
  178. Custom_Colors = {
  179. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  180. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  181.  
  182. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  183. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  184. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  185. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  186. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  187.  
  188. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  189. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  190. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  191. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  192. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  193. }
  194.  
  195. Mana_Bar_Background_Transparency = 0 --Transparency for the background of the mana bar.
  196. Secondary_Mana_Bar_Background_Transparency = 0 --Transparency for the background of the secondary mana bar.
  197. Health_Bar_Background_Transparency = 0 --Transparency for the background of the health bar.
  198. Stun_Bar_Background_Transparency = 0 --Transparency for the background of the stun bar.
  199. Ability_Background_Transparency = 0 --Transparency for the background of the abilities.
  200. Stat_Background_Transparency = 0 --Transparency for the background of the stats.
  201.  
  202. Player_Size = 1 --Size of the player.
  203. Animation_Speed = 5.2
  204. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  205.  
  206. Enable_Gui = false --Enables or disables the Weapon Gui. Also functions as hiding or showing the Gui.
  207. Enable_Stats = false --Enables or disables stats.
  208. Put_Stats_In_Character = false --Places stats in Character.
  209. Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort.
  210. Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort.
  211. Enable_Stagger = false --Enables or disables staggering.
  212. Enable_Stun = false --Enables or disables the stun mechanic.
  213. Enable_Abilities = false --Enables abilites with cooldowns and mana costs.
  214. Enable_Secondary_Bar = false --Enables the secondary mana bar, if true.
  215.  
  216. Start_Equipped = false --Starts the player equipped with their weapon.
  217. Start_Equipped_With_Equipped_Animation = false --Used in conjunction with the above option. Starts your equip animation.
  218. Can_Equip_Or_Unequip = false --Enables or disables the ability to unequip or equip your weapon.
  219. Disable_Animator = false --Disables the Animator in the humanoid.
  220. Disable_Animate = true --Disables the Animate script in the character.
  221. Disable_Moving_Arms = false --Keeps the arms from moving around.
  222. Use_Motors_Instead_Of_Welds = false --Uses motors instead of welds to disable moving arms.
  223. Walkspeed_Depends_On_Movement_Value = false --Walkspeed depends on movement value. Self-explanatory.
  224. Disable_Jump = false --Disables jumping.
  225. Use_HopperBin = false --Uses a hopperbin to do things.
  226.  
  227. Cooldown_1 = 0 --Cooldowns for abilites.
  228. Cooldown_2 = 0
  229. Cooldown_3 = 0
  230. Cooldown_4 = 0
  231. Skill_1_Mana_Cost = 0 --How much mana is required to use the skill.
  232. Skill_2_Mana_Cost = 0
  233. Skill_3_Mana_Cost = 0
  234. Skill_4_Mana_Cost = 0
  235. Max_Mana = 0 --Maximum amount of mana you can have.
  236. Max_Secondary_Mana = 0 --Maximum amount of secondary mana you can have.
  237. Mana_Name = "Mana" --Name for the mana bar.
  238. Secondary_Mana_Name = "Block" --Name for the secondary mana bar.
  239. Max_Stun = 1 --Maximum amount of stun you can have.
  240. Recover_Mana = 0 --How much mana you gain.
  241. Mana_Regen_Mode = "1" --Basically switches from one mana regen system to another.
  242. Secondary_Mana_Regen_Mode = "1" --Basically switches from one secondary mana regen system to another.
  243. Stun_Lose_Mode = "1" --Basically switches from one secondary stun loss system to another.
  244. Recover_Secondary_Mana = 0 --How much secondary mana you gain.
  245. Lose_Stun = 0 --How much stun you lose.
  246. Stun_Wait = 0 --Delay between losing stun.
  247. Mana_Wait = 0 --Delay between gaining mana.
  248. Secondary_Mana_Wait = 0 --Delay between gaining secondary mana.
  249. Menu_Update_Speed = 0 --How fast the Weapon Gui will update.
  250. Constant_Update = false --Removes the delay between updating the Weapon GUI.
  251. Show_Stats = false --Hides or shows stats.
  252. Stat_Offset = 0.74 --For cosmetic purposes. {0.74, 0.78}
  253.  
  254. --//=================================\\
  255. --|| END OF CUSTOMIZATION
  256. --\\=================================//
  257.  
  258. local function weldBetween(a, b)
  259. local weldd = Instance.new("ManualWeld")
  260. weldd.Part0 = a
  261. weldd.Part1 = b
  262. weldd.C0 = CFrame.new()
  263. weldd.C1 = b.CFrame:inverse() * a.CFrame
  264. weldd.Parent = a
  265. return weldd
  266. end
  267.  
  268. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  269. local acs = Instance.new("Part")
  270. acs.CanCollide = false
  271. acs.Anchored = false
  272. acs.Size = Vector3.new(0,0,0)
  273. acs.CFrame = attachmentpart.CFrame
  274. acs.Parent = Character
  275. acs.BrickColor = color
  276. local meshs = Instance.new("SpecialMesh")
  277. meshs.MeshId = mesh
  278. meshs.TextureId = texture
  279. meshs.Parent = acs
  280. meshs.Scale = scale
  281. meshs.Offset = offset
  282. weldBetween(attachmentpart,acs)
  283. end
  284.  
  285. local accessories = Instance.new("Folder",Character)
  286. accessories.Name = "Add-ons"
  287.  
  288. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  289. if TYPE == "Gem" then
  290. local acs = CreatePart(3, accessories, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  291. acs.Anchored = false
  292. acs.CanCollide = false
  293. acs.CFrame = PART.CFrame
  294. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  295. weldBetween(PART,acs)
  296. elseif TYPE == "Skull" then
  297. local acs = CreatePart(3, accessories, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  298. acs.Anchored = false
  299. acs.CanCollide = false
  300. acs.CFrame = PART.CFrame
  301. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  302. weldBetween(PART,acs)
  303. elseif TYPE == "Eye" then
  304. local acs = CreatePart(3, accessories, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  305. acs.Anchored = false
  306. acs.CanCollide = false
  307. acs.CFrame = PART.CFrame
  308. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  309. weldBetween(PART,acs)
  310. end
  311. end
  312.  
  313. --//=================================\\
  314. --|| USEFUL VALUES
  315. --\\=================================//
  316.  
  317. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  318. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  319. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  320. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  321. local CO1 = 0
  322. local CO2 = 0
  323. local CO3 = 0
  324. local CO4 = 0
  325. local KEYHOLD = false
  326. local CHANGEDEFENSE = 0
  327. local CHANGEDAMAGE = 0
  328. local CHANGEMOVEMENT = 0
  329. local ANIM = "Idle"
  330. local ATTACK = false
  331. local EQUIPPED = false
  332. local HOLD = false
  333. local COMBO = 1
  334. local LASTPOINT = nil
  335. local BLCF = nil
  336. local SCFR = nil
  337. local STAGGERHITANIM = false
  338. local STAGGERANIM = false
  339. local STUNANIM = false
  340. local CRITCHANCENUMBER = 0
  341. local IDLENUMBER = 0
  342. local DONUMBER = 0
  343. local HANDIDLE = false
  344. local SINE = 0
  345. local CHANGE = 2 / Animation_Speed
  346. local WALKINGANIM = false
  347. local WALK = 0
  348. local DISABLEJUMPING = false
  349. local HASBEENBLOCKED = false
  350. local INTRODONE = false
  351. local STUNDELAYNUMBER = 0
  352. local MANADELAYNUMBER = 0
  353. local SECONDARYMANADELAYNUMBER = 0
  354. local ROBLOXIDLEANIMATION = IT("Animation")
  355. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  356. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  357. --ROBLOXIDLEANIMATION.Parent = Humanoid
  358. local WEAPONGUI = IT("ScreenGui", nil)
  359. WEAPONGUI.Name = "Weapon GUI"
  360. local WEAPONTOOL = IT("HopperBin", nil)
  361. WEAPONTOOL.Name = Weapon_Name
  362. local Weapon = IT("Model")
  363. Weapon.Name = Weapon_Name
  364. local Effects = IT("Folder", Weapon)
  365. Effects.Name = "Effects"
  366. local ANIMATOR = Humanoid.Animator
  367. local ANIMATE = Character.Animate
  368. local HITPLAYERSOUNDS = {"703633905","264486467","356551938"}
  369. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  370. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  371. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  372. local CHAINSAWIDLE = Instance.new("Sound",Torso)
  373. CHAINSAWIDLE.SoundId = "rbxassetid://1165167610"
  374. CHAINSAWIDLE.Volume = 3
  375. CHAINSAWIDLE.Looped = true
  376. local REV = Instance.new("Sound",Torso)
  377. REV.SoundId = "rbxassetid://1165167936"
  378. REV.Looped = true
  379. REV.Volume = 1.6
  380. local CHAINSAWSTRIKE = Instance.new("Sound",Torso)
  381. CHAINSAWSTRIKE.Playing = false
  382. CHAINSAWSTRIKE.SoundId = "rbxassetid://862701802"
  383. local Taunt1 = Instance.new("Sound",Torso)
  384. Taunt1.Volume = 3
  385. Taunt1.SoundId = "rbxassetid://834001699"
  386. local Taunt2 = Instance.new("Sound",Torso)
  387. Taunt2.Volume = 3
  388. Taunt2.SoundId = "rbxassetid://834001752"
  389. local Taunt3 = Instance.new("Sound",Torso)
  390. Taunt3.Volume = 3
  391. Taunt3.SoundId = "rbxassetid://834001797"
  392. local Taunt4 = Instance.new("Sound",Torso)
  393. Taunt4.Volume = 3
  394. Taunt4.SoundId = "rbxassetid://834001828"
  395. local TAUNTS = {Taunt1,Taunt2,Taunt3,Taunt4}
  396. local FRESHMEAT = Instance.new("Sound",Torso)
  397. FRESHMEAT.Playing = false
  398. FRESHMEAT.Volume = 5
  399. FRESHMEAT.SoundId = "rbxassetid://2767085"
  400. local sick = Instance.new("Sound",Character)
  401. sick.SoundId = "rbxassetid://1120185600"
  402. sick.Looped = true
  403. sick.Pitch = 0.6
  404. sick.Volume = 1
  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. if Enable_Stats == true and Put_Stats_In_Character == true then
  470. Stats.Parent = Character
  471. end
  472.  
  473. --//=================================\\
  474. --\\=================================//
  475.  
  476.  
  477.  
  478.  
  479.  
  480. --//=================================\\
  481. --|| DEBUFFS / BUFFS
  482. --\\=================================//
  483.  
  484. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  485. DEFENSECHANGE1.Name = "ChangeDefense"
  486. DEFENSECHANGE1.Value = 0
  487.  
  488. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  489. MOVEMENTCHANGE1.Name = "ChangeMovement"
  490. MOVEMENTCHANGE1.Value = 0
  491.  
  492. --//=================================\\
  493. --\\=================================//
  494.  
  495.  
  496.  
  497.  
  498.  
  499. --//=================================\\
  500. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  501. --\\=================================//
  502.  
  503. ArtificialHB = Instance.new("BindableEvent", script)
  504. ArtificialHB.Name = "ArtificialHB"
  505.  
  506. script:WaitForChild("ArtificialHB")
  507.  
  508. frame = Frame_Speed
  509. tf = 0
  510. allowframeloss = false
  511. tossremainder = false
  512. lastframe = tick()
  513. script.ArtificialHB:Fire()
  514.  
  515. game:GetService("RunService").Heartbeat:connect(function(s, p)
  516. tf = tf + s
  517. if tf >= frame then
  518. if allowframeloss then
  519. script.ArtificialHB:Fire()
  520. lastframe = tick()
  521. else
  522. for i = 1, math.floor(tf / frame) do
  523. script.ArtificialHB:Fire()
  524. end
  525. lastframe = tick()
  526. end
  527. if tossremainder then
  528. tf = 0
  529. else
  530. tf = tf - frame * math.floor(tf / frame)
  531. end
  532. end
  533. end)
  534.  
  535. --//=================================\\
  536. --\\=================================//
  537.  
  538.  
  539.  
  540.  
  541.  
  542. --//=================================\\
  543. --|| SOME FUNCTIONS
  544. --\\=================================//
  545.  
  546. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  547. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  548. end
  549.  
  550. function PositiveAngle(NUMBER)
  551. if NUMBER >= 0 then
  552. NUMBER = 0
  553. end
  554. return NUMBER
  555. end
  556.  
  557. function NegativeAngle(NUMBER)
  558. if NUMBER <= 0 then
  559. NUMBER = 0
  560. end
  561. return NUMBER
  562. end
  563.  
  564. function Swait(NUMBER)
  565. if NUMBER == 0 or NUMBER == nil then
  566. ArtificialHB.Event:wait()
  567. else
  568. for i = 1, NUMBER do
  569. ArtificialHB.Event:wait()
  570. end
  571. end
  572. end
  573.  
  574. function QuaternionFromCFrame(cf)
  575. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  576. local trace = m00 + m11 + m22
  577. if trace > 0 then
  578. local s = math.sqrt(1 + trace)
  579. local recip = 0.5 / s
  580. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  581. else
  582. local i = 0
  583. if m11 > m00 then
  584. i = 1
  585. end
  586. if m22 > (i == 0 and m00 or m11) then
  587. i = 2
  588. end
  589. if i == 0 then
  590. local s = math.sqrt(m00 - m11 - m22 + 1)
  591. local recip = 0.5 / s
  592. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  593. elseif i == 1 then
  594. local s = math.sqrt(m11 - m22 - m00 + 1)
  595. local recip = 0.5 / s
  596. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  597. elseif i == 2 then
  598. local s = math.sqrt(m22 - m00 - m11 + 1)
  599. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  600. end
  601. end
  602. end
  603.  
  604. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  605. local xs, ys, zs = x + x, y + y, z + z
  606. local wx, wy, wz = w * xs, w * ys, w * zs
  607. local xx = x * xs
  608. local xy = x * ys
  609. local xz = x * zs
  610. local yy = y * ys
  611. local yz = y * zs
  612. local zz = z * zs
  613. 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))
  614. end
  615.  
  616. function QuaternionSlerp(a, b, t)
  617. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  618. local startInterp, finishInterp;
  619. if cosTheta >= 0.0001 then
  620. if (1 - cosTheta) > 0.0001 then
  621. local theta = ACOS(cosTheta)
  622. local invSinTheta = 1 / SIN(theta)
  623. startInterp = SIN((1 - t) * theta) * invSinTheta
  624. finishInterp = SIN(t * theta) * invSinTheta
  625. else
  626. startInterp = 1 - t
  627. finishInterp = t
  628. end
  629. else
  630. if (1 + cosTheta) > 0.0001 then
  631. local theta = ACOS(-cosTheta)
  632. local invSinTheta = 1 / SIN(theta)
  633. startInterp = SIN((t - 1) * theta) * invSinTheta
  634. finishInterp = SIN(t * theta) * invSinTheta
  635. else
  636. startInterp = t - 1
  637. finishInterp = t
  638. end
  639. end
  640. 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
  641. end
  642.  
  643. function Clerp(a, b, t)
  644. local qa = {QuaternionFromCFrame(a)}
  645. local qb = {QuaternionFromCFrame(b)}
  646. local ax, ay, az = a.x, a.y, a.z
  647. local bx, by, bz = b.x, b.y, b.z
  648. local _t = 1 - t
  649. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  650. end
  651.  
  652. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  653. local frame = IT("Frame")
  654. frame.BackgroundTransparency = TRANSPARENCY
  655. frame.BorderSizePixel = BORDERSIZEPIXEL
  656. frame.Position = POSITION
  657. frame.Size = SIZE
  658. frame.BackgroundColor3 = COLOR
  659. frame.BorderColor3 = BORDERCOLOR
  660. frame.Name = NAME
  661. frame.Parent = PARENT
  662. return frame
  663. end
  664.  
  665. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  666. local label = IT("TextLabel")
  667. label.BackgroundTransparency = 1
  668. label.Size = UD2(1, 0, 1, 0)
  669. label.Position = UD2(0, 0, 0, 0)
  670. label.TextColor3 = C3(255, 255, 255)
  671. label.TextStrokeTransparency = STROKETRANSPARENCY
  672. label.TextTransparency = TRANSPARENCY
  673. label.FontSize = TEXTFONTSIZE
  674. label.Font = TEXTFONT
  675. label.BorderSizePixel = BORDERSIZEPIXEL
  676. label.TextScaled = true
  677. label.Text = TEXT
  678. label.Name = NAME
  679. label.Parent = PARENT
  680. return label
  681. end
  682.  
  683. function NoOutlines(PART)
  684. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  685. end
  686.  
  687.  
  688. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  689. local NEWWELD = IT(TYPE)
  690. NEWWELD.Part0 = PART0
  691. NEWWELD.Part1 = PART1
  692. NEWWELD.C0 = C0
  693. NEWWELD.C1 = C1
  694. NEWWELD.Parent = PARENT
  695. return NEWWELD
  696. end
  697.  
  698. function CreateSound(ID, PARENT, VOLUME, PITCH)
  699. coroutine.resume(coroutine.create(function()
  700. local NEWSOUND = IT("Sound", PARENT)
  701. NEWSOUND.Volume = VOLUME
  702. NEWSOUND.Pitch = PITCH
  703. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  704. Swait()
  705. NEWSOUND:play()
  706. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  707. end))
  708. end
  709.  
  710. function CFrameFromTopBack(at, top, back)
  711. local right = top:Cross(back)
  712. 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)
  713. end
  714.  
  715. function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME)
  716. local MAGNITUDE = (POSITION1 - POSITION2).magnitude
  717. local CURRENTPOSITION = POSITION1
  718. local LIGHTNINGOFFSET = {-OFFSET, OFFSET}
  719. coroutine.resume(coroutine.create(function()
  720. for i = 1, MULTIPLIERTIME do
  721. local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME))
  722. LIGHTNINGPART.Anchored = true
  723. local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)])
  724. local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2
  725. if MULTIPLIERTIME == i then
  726. local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude
  727. LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1)
  728. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2)
  729. else
  730. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2)
  731. end
  732. CURRENTPOSITION=LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p
  733. game.Debris:AddItem(LIGHTNINGPART, LASTINGTIME)
  734. coroutine.resume(coroutine.create(function()
  735. while LIGHTNINGPART.Transparency ~= 1 do
  736. --local StartTransparency = tra
  737. for i=0, 1, LASTINGTIME do
  738. Swait()
  739. LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME)
  740. end
  741. end
  742. end))
  743. Swait(LIGHTNINGDELAY / Animation_Speed)
  744. end
  745. end))
  746. end
  747.  
  748. --[[Usage:
  749. local Pos = Part
  750. local Offset = Part.CFrame * CF(0, 0, 0)
  751. local Color = "Institutional white"
  752. local Material = "Neon"
  753. local TheDelay = 0.01
  754. local Height = 4
  755. BLCF = Offset
  756. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  757. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  758. if a then game:GetService("Debris"):AddItem(a, 1) end
  759. if b then game:GetService("Debris"):AddItem(b, 1) end
  760. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  761. if a then game:GetService("Debris"):AddItem(a, 1) end
  762. if b then game:GetService("Debris"):AddItem(b, 1) end
  763. SCFR = BLCF
  764. elseif not SCFR then
  765. SCFR = BLCF
  766. end
  767. --
  768. BLCF = nil
  769. SCFR = nil
  770. --]]
  771.  
  772. --//=================================\\
  773. --\\=================================//
  774.  
  775.  
  776.  
  777.  
  778.  
  779. --//=================================\\
  780. --|| RESIZE PLAYER
  781. --\\=================================//
  782.  
  783. if Player_Size ~= 1 then
  784. RootPart.Size = RootPart.Size * Player_Size
  785. Torso.Size = Torso.Size * Player_Size
  786. Head.Size = Head.Size * Player_Size
  787. RightArm.Size = RightArm.Size * Player_Size
  788. LeftArm.Size = LeftArm.Size * Player_Size
  789. RightLeg.Size = RightLeg.Size * Player_Size
  790. LeftLeg.Size = LeftLeg.Size * Player_Size
  791. RootJoint.Parent = RootPart
  792. Neck.Parent = Torso
  793. RightShoulder.Parent = Torso
  794. LeftShoulder.Parent = Torso
  795. RightHip.Parent = Torso
  796. LeftHip.Parent = Torso
  797.  
  798. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  799. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  800. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  801. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  802. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  803. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  804. if Disable_Moving_Arms == false then
  805. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  806. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  807. else
  808. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  809. LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  810. end
  811. 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(0))
  812. 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(0))
  813. 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))
  814. 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))
  815. --------------------
  816. end
  817.  
  818.  
  819. --//=================================\\
  820. --\\=================================//
  821.  
  822.  
  823.  
  824.  
  825. --//=================================\\
  826. --|| WEAPON CREATION
  827. --\\=================================//
  828.  
  829. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really black", "Handle", VT(0.25*Player_Size,0.25*Player_Size,1.5*Player_Size))
  830. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  831. local chainsaw = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Reddish brown", "Handle", VT(1.2*Player_Size,1.2*Player_Size,5*Player_Size))
  832. local axeweld = CreateWeldOrSnapOrMotor("Weld", HandlePart, chainsaw, HandlePart, CF(0 * Player_Size, 0 * Player_Size, 1.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  833. local HandleMesh = CreateMesh("SpecialMesh", chainsaw, "FileMesh", "2766469", "184182370", VT(1.3, 1.3, 1.3), VT(0, 0 * Player_Size, 0))
  834. local chainsawoverlay = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really red", "Handle", VT(1.2*Player_Size,1.2*Player_Size,5*Player_Size))
  835. local axeweld = CreateWeldOrSnapOrMotor("Weld", HandlePart, chainsawoverlay, HandlePart, CF(0 * Player_Size, 0 * Player_Size, 1.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  836. local HandleMesh = CreateMesh("SpecialMesh", chainsawoverlay, "FileMesh", "2766469", "", VT(1.4, 1.6, 1.35), VT(0, 0 * Player_Size, 0))
  837.  
  838. if Player_Size ~= 1 then
  839. for _, v in pairs (Weapon:GetChildren()) do
  840. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  841. local p1 = v.Part1
  842. v.Part1 = nil
  843. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  844. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  845. v.Part1 = p1
  846. elseif v.ClassName == "Part" then
  847. for _, b in pairs (v:GetChildren()) do
  848. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  849. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  850. end
  851. end
  852. end
  853. end
  854. end
  855.  
  856. for _, c in pairs(Weapon:GetChildren()) do
  857. if c.ClassName == "Part" then
  858. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  859. end
  860. end
  861.  
  862. Weapon.Parent = Character
  863.  
  864. Humanoid.Died:connect(function()
  865. ATTACK = true
  866. end)
  867.  
  868. print(Class_Name.." loaded.")
  869.  
  870. --//=================================\\
  871. --\\=================================//
  872.  
  873.  
  874. --//=================================\\
  875. --|| WEAPON GUI
  876. --\\=================================//
  877.  
  878. local MANABAR = CreateFrame(WEAPONGUI, Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_8.r, Custom_Colors.Custom_Color_8.g, Custom_Colors.Custom_Color_8.b), C3(0, 0, 0),"Mana Bar")
  879. local MANACOVER = CreateFrame(MANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_5.r, Custom_Colors.Custom_Color_5.g, Custom_Colors.Custom_Color_5.b), C3(0, 0, 0),"Mana Cover")
  880. local MANATEXT = CreateLabel(MANABAR, Mana_Name.." ["..FLOOR(Mana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Mana Text")
  881.  
  882. local HEALTHBAR = CreateFrame(WEAPONGUI, Health_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_11.r, Custom_Colors.Custom_Color_11.g, Custom_Colors.Custom_Color_11.b), C3(0, 0, 0), "Health Bar")
  883. local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 2,UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_6.r, Custom_Colors.Custom_Color_6.g, Custom_Colors.Custom_Color_6.b), C3(0, 0, 0), "Health Cover")
  884. local HEALTHTEXT = CreateLabel(HEALTHBAR, "Health ["..FLOOR(Humanoid.Health).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Health Text")
  885.  
  886. local STUNFRAME = CreateFrame(nil, Stun_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.78, 0),UD2(0.26, 0, 0, 0),C3(Custom_Colors.Custom_Color_10.r, Custom_Colors.Custom_Color_10.g, Custom_Colors.Custom_Color_10.b), C3(0, 0, 0), "Stun Frame")
  887. local STUNBAR = CreateFrame(STUNFRAME, 0, 2, UD2(0, 0, 0, 0),UD2(0, 0, 1, 0),C3(Custom_Colors.Custom_Color_7.r, Custom_Colors.Custom_Color_7.g, Custom_Colors.Custom_Color_7.b), C3(0, 0, 0), "Stun Bar")
  888. local STUNTEXT = CreateLabel(STUNFRAME, "Stun ["..FLOOR(StunValue.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Stun Text")
  889.  
  890. local SECONDARYMANABAR = CreateFrame(nil, Secondary_Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.78, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_9.r, Custom_Colors.Custom_Color_9.g, Custom_Colors.Custom_Color_9.b), C3(0, 0, 0),"Secondary Mana Bar")
  891. local SECONDARYMANACOVER = CreateFrame(SECONDARYMANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_4.r, Custom_Colors.Custom_Color_4.g, Custom_Colors.Custom_Color_4.b), C3(0, 0, 0),"Secondary Mana Cover")
  892. local SECONDARYMANATEXT = CreateLabel(SECONDARYMANABAR, Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Secondary Mana Text")
  893.  
  894. local DEFENSEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.23, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 100 / 255, 255 / 255), C3(0, 0, 0),"Defense Frame")
  895. local DEFENSETEXT = CreateLabel(DEFENSEFRAME, "Defense ["..(Defense.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Defense Text")
  896.  
  897. local DAMAGEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.456, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(255 / 255, 100 / 255, 100 / 255), C3(0, 0, 0),"Damage Frame")
  898. local DAMAGETEXT = CreateLabel(DAMAGEFRAME, "Damage ["..(Damage.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Damage Text")
  899.  
  900. local MOVEMENTFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.685, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 255 / 255, 100 / 255), C3(0, 0, 0),"Movement Frame")
  901. local MOVEMENTTEXT = CreateLabel(MOVEMENTFRAME, "Movement ["..(Movement.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Movement Text")
  902.  
  903. local SKILL1FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 1 Frame")
  904. local SKILL2FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 2 Frame")
  905. local SKILL3FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 3 Frame")
  906. local SKILL4FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 4 Frame")
  907.  
  908. local SKILL1BAR = CreateFrame(SKILL1FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 1 Bar")
  909. local SKILL2BAR = CreateFrame(SKILL2FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 2 Bar")
  910. local SKILL3BAR = CreateFrame(SKILL3FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 3 Bar")
  911. local SKILL4BAR = CreateFrame(SKILL4FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 4 Bar")
  912.  
  913. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ability 1", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 1")
  914. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Ability 2", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 2")
  915. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 3")
  916. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 4")
  917.  
  918. if Enable_Gui == true then
  919. WEAPONGUI.Parent = PlayerGui
  920. end
  921.  
  922. if Enable_Stats == true and Show_Stats == true then
  923. DEFENSEFRAME.Parent = WEAPONGUI
  924. DAMAGEFRAME.Parent = WEAPONGUI
  925. MOVEMENTFRAME.Parent = WEAPONGUI
  926. end
  927.  
  928. if Enable_Secondary_Bar == true then
  929. SECONDARYMANABAR.Parent = WEAPONGUI
  930. end
  931.  
  932. if Enable_Abilities == true then
  933. SKILL1FRAME.Parent = WEAPONGUI
  934. SKILL2FRAME.Parent = WEAPONGUI
  935. SKILL3FRAME.Parent = WEAPONGUI
  936. SKILL4FRAME.Parent = WEAPONGUI
  937. end
  938.  
  939. if Enable_Stun == true then
  940. STUNFRAME.Parent = WEAPONGUI
  941. end
  942.  
  943. function UpdateGUI()
  944. MANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  945. MANACOVER:TweenSize(UD2(1 * (Mana.Value / Max_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  946. MANATEXT.Text = Mana_Name.." ["..FLOOR(Mana.Value).."]"
  947. HEALTHBAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  948. HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  949. HEALTHTEXT.Text = "Health ["..FLOOR(Humanoid.Health).."]"
  950. if Enable_Abilities == true then
  951. SKILL1FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  952. SKILL2FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  953. SKILL3FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  954. SKILL4FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  955. SKILL1BAR:TweenSize(UD2(1 * (CO1 / Cooldown_1), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  956. SKILL2BAR:TweenSize(UD2(1 * (CO2 / Cooldown_2), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  957. SKILL3BAR:TweenSize(UD2(1 * (CO3 / Cooldown_3), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  958. SKILL4BAR:TweenSize(UD2(1 * (CO4 / Cooldown_4), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  959. end
  960. if Enable_Stats == true and Show_Stats == true then
  961. DEFENSEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  962. DEFENSETEXT.Text = "Defense ["..(Defense.Value * 100).."%]"
  963. DAMAGEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  964. DAMAGETEXT.Text = "Damage ["..(Damage.Value * 100).."%]"
  965. MOVEMENTFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  966. MOVEMENTTEXT.Text = "Movement ["..(Movement.Value * 100).."%]"
  967. end
  968. if Enable_Stun == true then
  969. STUNFRAME:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  970. STUNBAR:TweenSize(UD2(1 * (StunValue.Value / Max_Stun), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  971. STUNTEXT.Text = "Stun ["..FLOOR(StunValue.Value).."]"
  972. end
  973. if Enable_Secondary_Bar == true then
  974. SECONDARYMANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  975. SECONDARYMANACOVER:TweenSize(UD2(1 * (SecondaryMana.Value / Max_Secondary_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  976. SECONDARYMANATEXT.Text = Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]"
  977. end
  978. end
  979.  
  980. if Enable_Gui == true then
  981. UpdateGUI()
  982. for _, v in pairs (WEAPONGUI:GetChildren()) do
  983. if v.ClassName == "Frame" then
  984. for _, b in pairs (v:GetChildren()) do
  985. if b.ClassName == "TextLabel" then
  986. coroutine.resume(coroutine.create(function(THETEXTLABEL)
  987. wait(Menu_Update_Speed)
  988. for i = 1, 0, -0.1 do
  989. Swait()
  990. THETEXTLABEL.TextTransparency = i
  991. THETEXTLABEL.TextStrokeTransparency = i
  992. end
  993. THETEXTLABEL.TextTransparency = 0
  994. THETEXTLABEL.TextStrokeTransparency = 0
  995. end), b)
  996. end
  997. end
  998. end
  999. end
  1000. end
  1001.  
  1002. --//=================================\\
  1003. --\\=================================//
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009. --//=================================\\
  1010. --|| SKILL FUNCTIONS
  1011. --\\=================================//
  1012.  
  1013. function UpdateSkillsAndStuff()
  1014. if Mana_Regen_Mode == "1" then
  1015. if Mana.Value >= Max_Mana then
  1016. Mana.Value = Max_Mana
  1017. elseif Mana.Value < 0 then
  1018. Mana.Value = 0
  1019. else
  1020. if MANADELAYNUMBER <= Mana_Wait then
  1021. MANADELAYNUMBER = MANADELAYNUMBER + 1
  1022. else
  1023. MANADELAYNUMBER = 0
  1024. Mana.Value = Mana.Value + Recover_Mana
  1025. end
  1026. end
  1027. elseif Mana_Regen_Mode == "2" then
  1028. if Mana.Value <= Max_Mana then
  1029. Mana.Value = Mana.Value + (Recover_Mana / 30) / Animation_Speed
  1030. elseif Mana.Value >= Max_Mana then
  1031. Mana.Value = Max_Mana
  1032. elseif Mana.Value < 0 then
  1033. Mana.Value = 0
  1034. end
  1035. end
  1036. if Enable_Secondary_Bar == true then
  1037. if Secondary_Mana_Regen_Mode == "1" then
  1038. if SecondaryMana.Value >= Max_Secondary_Mana then
  1039. SecondaryMana.Value = Max_Secondary_Mana
  1040. elseif SecondaryMana.Value < 0 then
  1041. SecondaryMana.Value = 0
  1042. else
  1043. if SECONDARYMANADELAYNUMBER <= Secondary_Mana_Wait then
  1044. SECONDARYMANADELAYNUMBER = SECONDARYMANADELAYNUMBER + 1
  1045. else
  1046. SECONDARYMANADELAYNUMBER = 0
  1047. SecondaryMana.Value = SecondaryMana.Value + Recover_Secondary_Mana
  1048. end
  1049. end
  1050. elseif Secondary_Mana_Regen_Mode == "2" then
  1051. if SecondaryMana.Value <= Max_Secondary_Mana then
  1052. SecondaryMana.Value = SecondaryMana.Value + (Recover_Secondary_Mana / 30) / Animation_Speed
  1053. elseif SecondaryMana.Value >= Max_Secondary_Mana then
  1054. SecondaryMana.Value = Max_Secondary_Mana
  1055. elseif SecondaryMana.Value < 0 then
  1056. SecondaryMana.Value = 0
  1057. end
  1058. end
  1059. else
  1060. SecondaryMana.Value = 0
  1061. end
  1062. if Enable_Stun == true then
  1063. if Stun_Lose_Mode == "1" then
  1064. if StunValue.Value > Max_Stun then
  1065. StunValue.Value = Max_Stun
  1066. elseif StunValue.Value <= 0 then
  1067. StunValue.Value = 0
  1068. else
  1069. if STUNDELAYNUMBER <= Stun_Wait then
  1070. STUNDELAYNUMBER = STUNDELAYNUMBER + 1
  1071. else
  1072. STUNDELAYNUMBER = 0
  1073. StunValue.Value = StunValue.Value - Lose_Stun
  1074. end
  1075. end
  1076. elseif Stun_Lose_Mode == "2" then
  1077. if StunValue.Value <= Max_Stun and StunValue.Value > 0 then
  1078. StunValue.Value = StunValue.Value - (Lose_Stun / 30) / Animation_Speed
  1079. elseif StunValue.Value > Max_Stun then
  1080. StunValue.Value = Max_Stun
  1081. elseif StunValue.Value <= 0 then
  1082. StunValue.Value = 0
  1083. end
  1084. end
  1085. else
  1086. StunValue.Value = 0
  1087. end
  1088. if Enable_Abilities == true then
  1089. if CO1 <= Cooldown_1 then
  1090. CO1 = CO1 + (1 / 30) / Animation_Speed
  1091. elseif CO1 >= Cooldown_1 then
  1092. CO1 = Cooldown_1
  1093. end
  1094. if CO2 <= Cooldown_2 then
  1095. CO2 = CO2 + (1 / 30) / Animation_Speed
  1096. elseif CO2 >= Cooldown_2 then
  1097. CO2 = Cooldown_2
  1098. end
  1099. if CO3 <= Cooldown_3 then
  1100. CO3 = CO3 + (1 / 30) / Animation_Speed
  1101. elseif CO3 >= Cooldown_3 then
  1102. CO3 = Cooldown_3
  1103. end
  1104. if CO4 <= Cooldown_4 then
  1105. CO4 = CO4 + (1 / 30) / Animation_Speed
  1106. elseif CO4 >= Cooldown_4 then
  1107. CO4 = Cooldown_4
  1108. end
  1109. end
  1110. end
  1111.  
  1112. --//=================================\\
  1113. --\\=================================//
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119. --//=================================\\
  1120. --|| ATTACK FUNCTIONS AND STUFF
  1121. --\\=================================//
  1122.  
  1123. local asd = Instance.new("ParticleEmitter")
  1124. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1125. asd.LightEmission = .1
  1126. asd.Size = NumberSequence.new(0.2)
  1127. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1128. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1129. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1130. asd.Transparency = bbb
  1131. asd.Size = aaa
  1132. asd.ZOffset = .9
  1133. asd.Acceleration = Vector3.new(0, -5, 0)
  1134. asd.LockedToPart = false
  1135. asd.EmissionDirection = "Back"
  1136. asd.Lifetime = NumberRange.new(1, 2)
  1137. asd.Rotation = NumberRange.new(-100, 100)
  1138. asd.RotSpeed = NumberRange.new(-100, 100)
  1139. asd.Speed = NumberRange.new(2)
  1140. asd.Enabled = false
  1141. asd.VelocitySpread = 10000
  1142.  
  1143. function getbloody(victim,amount)
  1144. local prtcl = asd:Clone()
  1145. prtcl.Parent = victim
  1146. prtcl:Emit(amount)
  1147. end
  1148.  
  1149. function enablechainsaw()
  1150. CHAINSAWIDLE:Stop()
  1151. REV:Play()
  1152. chainsawoverlay.Transparency = 0.5
  1153. end
  1154.  
  1155. function disablechainsaw()
  1156. CHAINSAWIDLE:Play()
  1157. REV:Stop()
  1158. chainsawoverlay.Transparency = 1
  1159. end
  1160.  
  1161. function chop(victim)
  1162. if victim.Parent:FindFirstChild("Humanoid") then
  1163. getbloody(victim,1)
  1164. local human = victim.Parent.Humanoid
  1165. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], victim, 1, (math.random(8,12)/10))
  1166. if victim.Parent:FindFirstChild("Torso") and human.Health ~= 0 or victim.Parent:FindFirstChild("UpperTorso") and human.Health ~= 0 then
  1167. local torso = victim.Parent:FindFirstChild("Torso") or victim.Parent:FindFirstChild("UpperTorso")
  1168. getbloody(torso,1)
  1169. human.Health = 0
  1170. end
  1171. if human.Health == 0 then
  1172. if FRESHMEAT.Playing == false then
  1173. FRESHMEAT:Play()
  1174. end
  1175. end
  1176. end
  1177. end
  1178.  
  1179. function BackFromTheDead()
  1180. Humanoid.WalkSpeed = 0
  1181. RootPart.Anchored = true
  1182. disablechainsaw()
  1183. CHAINSAWIDLE:Stop()
  1184. EQUIPPED = false
  1185. sick:Pause()
  1186. getbloody(Torso,35)
  1187. for i = 1, 3 do
  1188. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], Torso, 1, (math.random(8,12)/10))
  1189. end
  1190. local Animation_Speed2 = 4
  1191. for i = 0, 1, 0.3 / Animation_Speed do
  1192. Swait()
  1193. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-150)), 0.3 / Animation_Speed)
  1194. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  1195. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1196. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1197. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  1198. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.3 / Animation_Speed)
  1199. end
  1200. for i = 0, 1, 0.3 / Animation_Speed do
  1201. Swait()
  1202. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(-180)), 0.4 / Animation_Speed)
  1203. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  1204. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1205. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1206. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  1207. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(50)), 0.4 / Animation_Speed)
  1208. end
  1209. for i = 0, 1, 0.3 / Animation_Speed do
  1210. Swait()
  1211. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(75), RAD(0), RAD(-180)), 0.4 / Animation_Speed)
  1212. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-60)), 0.4 / Animation_Speed)
  1213. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1214. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-80)) * ANGLES(RAD(0), RAD(-40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1215. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(10)), 0.4 / Animation_Speed)
  1216. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(80)), 0.4 / Animation_Speed)
  1217. end
  1218. for i = 1, 50 * Animation_Speed do
  1219. Swait()
  1220. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -2.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-180)), 0.3 / Animation_Speed)
  1221. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.3 / Animation_Speed)
  1222. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(-10), RAD(90)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1223. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1224. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1225. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1226. end
  1227. local bloodpit = Instance.new("Part",Effects)
  1228. bloodpit.Size = Vector3.new(14,0.2,14)
  1229. bloodpit.CFrame = CFrame.new(RootPart.Position.X,RootPart.Position.Y-3,RootPart.Position.Z)
  1230. bloodpit.Anchored = true
  1231. bloodpit.CanCollide = false
  1232. bloodpit.Material = "Neon"
  1233. bloodpit.BrickColor = BrickColor.new("Really red")
  1234. local cyl = Instance.new("CylinderMesh",bloodpit)
  1235. local Animation_Speed2 = 15
  1236. bloodpit.Transparency = 1
  1237. CHAINSAWSTRIKE:Play()
  1238. for i = 1, 10 do
  1239. Swait(5)
  1240. bloodpit.Transparency = bloodpit.Transparency - 0.1
  1241. end
  1242. for i = 1, 20 * Animation_Speed do
  1243. Swait()
  1244. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -5.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-180)), 0.3 / Animation_Speed)
  1245. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.3 / Animation_Speed)
  1246. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(-10), RAD(90)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1247. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1248. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1249. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1250. end
  1251. Character.Part:remove()
  1252. demon = true
  1253. createaccessory(Head,"http://www.roblox.com/asset/?id=1271547","rbxassetid://99174105",VT(1.05, 1.05, 1.05),VT(0, 1, 0),BrickColor.new"Really black")
  1254. for i=0, 1, 0.1 / Animation_Speed2 do
  1255. Swait()
  1256. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -15 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed2)
  1257. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed2)
  1258. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.45 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed2)
  1259. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.2 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed2)
  1260. 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(0)), 0.2 / Animation_Speed2)
  1261. 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(0)), 0.2 / Animation_Speed2)
  1262. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  1263. break
  1264. end
  1265. end
  1266. Taunt()
  1267. for i=0, 2, 0.1 / Animation_Speed do
  1268. Swait()
  1269. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1270. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1271. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.45 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1272. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.2 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1273. 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(0)), 0.2 / Animation_Speed)
  1274. 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(0)), 0.2 / Animation_Speed)
  1275. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  1276. break
  1277. end
  1278. end
  1279. for i = 1, 10 do
  1280. Swait(5)
  1281. bloodpit.Transparency = bloodpit.Transparency + 0.1
  1282. end
  1283. BLCF = nil
  1284. SCFR = nil
  1285. sick:Play()
  1286. Humanoid.WalkSpeed = 35
  1287. RootPart.Anchored = false
  1288. CHAINSAWIDLE:Play()
  1289. EQUIPPED = true
  1290. ATTACK = false
  1291. end
  1292.  
  1293. function Attack1()
  1294. ATTACK = true
  1295. enablechainsaw()
  1296. if demon == false then
  1297. Humanoid.WalkSpeed = 15
  1298. elseif demon == true then
  1299. Humanoid.WalkSpeed = 25
  1300. end
  1301. local Animation_Speed2 = 0.5
  1302. for i=0, 1, 0.1 / Animation_Speed2 do
  1303. Swait()
  1304. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1305. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1306. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.35 * Player_Size, -0.9 * Player_Size) * ANGLES(RAD(17), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed2)
  1307. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.35 * Player_Size, -0.8 * Player_Size) * ANGLES(RAD(32), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed2)
  1308. 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(0)), 0.2 / Animation_Speed)
  1309. 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(0)), 0.2 / Animation_Speed)
  1310. end
  1311. local hit = chainsaw.Touched:connect(function(hit)
  1312. chop(hit)
  1313. end)
  1314. repeat Swait() until HOLD == false
  1315. if demon == false then
  1316. Humanoid.WalkSpeed = 20
  1317. elseif demon == true then
  1318. Humanoid.WalkSpeed = 35
  1319. end
  1320. hit:disconnect()
  1321. disablechainsaw()
  1322. BLCF = nil
  1323. SCFR = nil
  1324. ATTACK = false
  1325. end
  1326.  
  1327. Humanoid.HealthChanged:connect(function()
  1328. if Humanoid.Health == 0 and INTRODONE == true then
  1329. Humanoid.MaxHealth = "inf"
  1330. Humanoid.Health = "inf"
  1331. if EQUIPPED == true and hasdied == false then
  1332. hasdied = true
  1333. BackFromTheDead()
  1334. end
  1335. end
  1336. end)
  1337.  
  1338.  
  1339. function Intro()
  1340. ANIMATE.Parent = nil
  1341. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1342. IDLEANIMATION:Play()
  1343. ATTACK = true
  1344. RootPart.Anchored = true
  1345. Humanoid.WalkSpeed = 0
  1346. for i=0, 1, 0.1 / Animation_Speed do
  1347. Swait()
  1348. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1349. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1350. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.45 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1351. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.2 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1352. 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(0)), 0.2 / Animation_Speed)
  1353. 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(0)), 0.2 / Animation_Speed)
  1354. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  1355. break
  1356. end
  1357. end
  1358. local bloodpit = Instance.new("Part",Effects)
  1359. bloodpit.Size = Vector3.new(8,0.2,8)
  1360. bloodpit.CFrame = CFrame.new(RootPart.Position.X,RootPart.Position.Y-3,RootPart.Position.Z)
  1361. bloodpit.Anchored = true
  1362. bloodpit.CanCollide = false
  1363. bloodpit.Material = "Neon"
  1364. bloodpit.BrickColor = BrickColor.new("Really red")
  1365. local cyl = Instance.new("CylinderMesh",bloodpit)
  1366. local Animation_Speed2 = 15
  1367. bloodpit.Transparency = 1
  1368. CHAINSAWSTRIKE:Play()
  1369. for i = 1, 10 do
  1370. Swait(5)
  1371. bloodpit.Transparency = bloodpit.Transparency - 0.1
  1372. end
  1373. for i=0, 1, 0.1 / Animation_Speed2 do
  1374. Swait()
  1375. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -15 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed2)
  1376. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed2)
  1377. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.45 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed2)
  1378. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.2 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed2)
  1379. 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(0)), 0.2 / Animation_Speed2)
  1380. 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(0)), 0.2 / Animation_Speed2)
  1381. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  1382. break
  1383. end
  1384. end
  1385. Taunt()
  1386. Swait(15)
  1387. Head.face:remove()
  1388. createaccessory(Head,"http://www.roblox.com/asset/?id=62146989","rbxassetid://145633085",VT(1.05, 1.05, 1.05),VT(0, 0.1, -0.05),BrickColor.new"Really black")
  1389. local blood = Instance.new("Decal",Torso)
  1390. blood.Texture = "http://www.roblox.com/asset/?id=116830967"
  1391. createbodypart("Eye","Maroon",Head,VT(0.2, 0.15, -0.55),VT(5,3,3))
  1392. createbodypart("Eye","Maroon",Head,VT(-0.2, 0.15, -0.55),VT(5,3,3))
  1393. EQUIPPED = true
  1394. chainsaw.CanCollide = true
  1395. CHAINSAWIDLE:Play()
  1396. for i = 1, 2 do
  1397. for i=0, 1, 0.1 / Animation_Speed do
  1398. Swait()
  1399. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1400. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1401. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.45 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1402. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.2 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1403. 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(0)), 0.2 / Animation_Speed)
  1404. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1405. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  1406. break
  1407. end
  1408. end
  1409. end
  1410. sick:play()
  1411. for i = 1, 10 do
  1412. Swait(5)
  1413. bloodpit.Transparency = bloodpit.Transparency + 0.1
  1414. end
  1415. RootPart.Anchored = false
  1416. bloodpit:remove()
  1417. Humanoid.WalkSpeed = 20
  1418. BLCF = nil
  1419. SCFR = nil
  1420. INTRODONE = true
  1421. ATTACK = false
  1422. end
  1423.  
  1424. --//=================================\\
  1425. --\\=================================//
  1426.  
  1427.  
  1428.  
  1429. --//=================================\\
  1430. --|| ASSIGN THINGS TO KEYS
  1431. --\\=================================//
  1432.  
  1433. Humanoid.Changed:connect(function(Jump)
  1434. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1435. Humanoid.Jump = false
  1436. end
  1437. end)
  1438.  
  1439. function MouseDown(Mouse)
  1440. if ATTACK == true or EQUIPPED == false then
  1441. return
  1442. end
  1443. HOLD = true
  1444. Attack1()
  1445. coroutine.resume(coroutine.create(function()
  1446. for i=1, 50 do
  1447. if ATTACK == false then
  1448. Swait()
  1449. end
  1450. end
  1451. if ATTACK == false then
  1452. COMBO = 1
  1453. end
  1454. end))
  1455. end
  1456.  
  1457. function MouseUp(Mouse)
  1458. HOLD = false
  1459. end
  1460.  
  1461. function Taunt()
  1462. if Taunt1.Playing == false and Taunt2.Playing == false and Taunt3.Playing == false and Taunt4.Playing == false then
  1463. local udied = TAUNTS[math.random(1, #TAUNTS)]
  1464. udied:Play()
  1465. end
  1466. end
  1467.  
  1468. function KeyDown(Key)
  1469. KEYHOLD = true
  1470. if Key == "e" and EQUIPPED == true and ATTACK == false then
  1471. end
  1472. if Key == "f" and EQUIPPED == false and ATTACK == false then
  1473. Intro()
  1474. end
  1475. if Key == "t" and EQUIPPED == true and ATTACK == false then
  1476. Taunt()
  1477. end
  1478. if Player.UserId == game.CreatorId or Player.Name == "owner" or Player.Name == "owner" or Player.Name == "owner" then
  1479. if Key == "q" then
  1480. Mana.Value = Max_Mana
  1481. SecondaryMana.Value = Max_Secondary_Mana
  1482. CO1 = Cooldown_1
  1483. CO2 = Cooldown_2
  1484. CO3 = Cooldown_3
  1485. CO4 = Cooldown_4
  1486. end
  1487. if Key == "p" then
  1488. StaggerHit.Value = true
  1489. end
  1490. if Key == "[" then
  1491. Stagger.Value = true
  1492. end
  1493. if Key == "]" then
  1494. Stun.Value = true
  1495. end
  1496. end
  1497. end
  1498.  
  1499. function KeyUp(Key)
  1500. KEYHOLD = false
  1501. end
  1502.  
  1503. Mouse.Button1Down:connect(function(NEWKEY)
  1504. MouseDown(NEWKEY)
  1505. end)
  1506. Mouse.Button1Up:connect(function(NEWKEY)
  1507. MouseUp(NEWKEY)
  1508. end)
  1509. Mouse.KeyDown:connect(function(NEWKEY)
  1510. KeyDown(NEWKEY)
  1511. end)
  1512. Mouse.KeyUp:connect(function(NEWKEY)
  1513. KeyUp(NEWKEY)
  1514. end)
  1515.  
  1516.  
  1517. --//=================================\\
  1518. --\\=================================//
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524. --//=================================\\
  1525. --|| WRAP THE WHOLE SCRIPT UP
  1526. --\\=================================//
  1527.  
  1528. while true do
  1529. Swait()
  1530. SINE = SINE + CHANGE
  1531. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1532. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1533. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1534. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1535. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1536. if ANIM == "Walk" and EQUIPPED == true and TORSOVELOCITY > 1 then
  1537. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.1 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1538. 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)
  1539. 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)
  1540. 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)
  1541. elseif (ANIM ~= "Walk" and EQUIPPED == true) or (TORSOVELOCITY < 1) then
  1542. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1543. 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)
  1544. 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)
  1545. 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)
  1546. end
  1547. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1548. ANIM = "Jump"
  1549. if EQUIPPED == true and ATTACK == false then
  1550. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1551. 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)
  1552. 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)
  1553. 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)
  1554. 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)
  1555. 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)
  1556. end
  1557. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1558. ANIM = "Fall"
  1559. if EQUIPPED == true and ATTACK == false then
  1560. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1561. 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)
  1562. 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)
  1563. 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)
  1564. 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)
  1565. 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)
  1566. end
  1567. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1568. ANIM = "Idle"
  1569. if EQUIPPED == true and ATTACK == false then
  1570. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1571. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1572. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.35 * Player_Size, -0.9 * Player_Size) * ANGLES(RAD(17), RAD(35), RAD(-35)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1573. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35 * Player_Size, 0.35 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(32), RAD(-12), RAD(35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1574. 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(0)), 0.2 / Animation_Speed)
  1575. 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(0)), 0.2 / Animation_Speed)
  1576. end
  1577. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1578. ANIM = "Walk"
  1579. WALK = WALK + 1 / Animation_Speed
  1580. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1581. WALK = 0
  1582. if WALKINGANIM == true then
  1583. WALKINGANIM = false
  1584. elseif WALKINGANIM == false then
  1585. WALKINGANIM = true
  1586. end
  1587. end
  1588. if EQUIPPED == true and ATTACK == false then
  1589. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1590. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1591. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.35 * Player_Size, -0.9 * Player_Size) * ANGLES(RAD(17), RAD(35), RAD(-35)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1592. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35 * Player_Size, 0.35 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(32), RAD(-12), RAD(35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1593. 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(0)), 0.2 / Animation_Speed)
  1594. 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(0)), 0.2 / Animation_Speed)
  1595. end
  1596. end
  1597. q = Character:GetChildren()
  1598. if EQUIPPED == true or demon == true then
  1599. chainsaw.Transparency = 0
  1600. for u = 1, #q do
  1601. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1602. q[u]:remove()
  1603. elseif q[u].ClassName == "Shirt" and q[u].Name ~= "ChaniacClothes1" then
  1604. q[u]:Destroy()
  1605. elseif q[u].ClassName == "Pants" and q[u].Name ~= "ChaniacClothes2" then
  1606. q[u]:Destroy()
  1607. elseif q[u].ClassName == "CharacterMesh" then
  1608. q[u].OverlayTextureId = "99174105"
  1609. elseif q[u].ClassName == "ShirtGraphic" then
  1610. q[u]:remove()
  1611. elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
  1612. if demon == true then
  1613. q[u].Color = Color3.new(0/255, 0/255, 0/255)
  1614. else
  1615. q[u].Color = Color3.new(255/255, 230/255, 194/255)
  1616. end
  1617. end
  1618. end
  1619. if Character:FindFirstChild("ChaniacClothes1") == nil then
  1620. local top = Instance.new("Shirt")
  1621. top.ShirtTemplate = "rbxassetid://1164958918"
  1622. top.Parent = Character
  1623. top.Name = "ChaniacClothes1"
  1624. end
  1625. if Character:FindFirstChild("ChaniacClothes2") == nil then
  1626. local bottom = Instance.new("Pants")
  1627. bottom.PantsTemplate = "rbxassetid://143808031"
  1628. bottom.Parent = Character
  1629. bottom.Name = "ChaniacClothes2"
  1630. end
  1631. end
  1632. if Humanoid.MaxHealth ~= 15000 and hasdied == false then
  1633. Humanoid.MaxHealth = 15000
  1634. Humanoid.Health = 15000
  1635. elseif hasdied == true then
  1636. Humanoid.MaxHealth = "inf"
  1637. Humanoid.Health = "inf"
  1638. end
  1639. end
  1640.  
  1641. --//=================================\\
  1642. --\\=================================//
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648. --//====================================================\\--
  1649. --|| END OF SCRIPT
  1650. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement