Advertisement
Josemmoya

really epic

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