Advertisement
saba1517

converted by saba1520

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