Advertisement
DarkScriptZEditors

... F

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