Advertisement
Orangeplayer1431

fresh meat chain aka jason

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