Advertisement
aaaay63746

Chainiac FE

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