Advertisement
cubanmixed2

Boi Getta

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