Advertisement
samuelrichter66

chainiac FE

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