AnormalPerson

Untitled

Feb 15th, 2020
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 143.77 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.  
  3. local Player,game,owner = owner,game
  4.  
  5. local RealPlayer = Player
  6.  
  7. do print("FE Compatibility code V3 by Desered_ROBLOX")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  8. --//====================================================\\--
  9. --|| CREATED BY WINDOWSXD_INFINITE
  10. --|| CREDITS TO BRANNON1964802
  11. --\\====================================================//--
  12.  
  13. local errors = {}
  14. Player = owner
  15. PlayerGui = Player.PlayerGui
  16. script.Parent = PlayerGui
  17. Cam = workspace.CurrentCamera
  18. Backpack = Player.Backpack
  19. Character = Player.Character
  20. Humanoid = Character:FindFirstChildOfClass('Humanoid')
  21. RootPart = Character["HumanoidRootPart"]
  22. Torso = Character["Torso"]
  23. Head = Character["Head"]
  24. Face = Head.face
  25. RightArm = Character["Right Arm"]
  26. LeftArm = Character["Left Arm"]
  27. RightLeg = Character["Right Leg"]
  28. LeftLeg = Character["Left Leg"]
  29. RootJoint = RootPart["RootJoint"]
  30. Neck = Torso["Neck"]
  31. RightShoulder = Torso["Right Shoulder"]
  32. LeftShoulder = Torso["Left Shoulder"]
  33. RightHip = Torso["Right Hip"]
  34. LeftHip = Torso["Left Hip"]
  35. local lastchat = 'aeiou'
  36. local oBjection = false
  37. IT = Instance.new
  38. CF = CFrame.new
  39. VT = Vector3.new
  40. RAD = math.rad
  41. C3 = Color3.new
  42. UD2 = UDim2.new
  43. BRICKC = BrickColor.new
  44. ANGLES = CFrame.Angles
  45. EULER = CFrame.fromEulerAnglesXYZ
  46. COS = math.cos
  47. ACOS = math.acos
  48. SIN = math.sin
  49. ASIN = math.asin
  50. ABS = math.abs
  51. ATAN = math.atan
  52. SIGN = math.sign
  53. FREXP = math.frexp
  54. MRANDOM = math.random
  55. FLOOR = math.floor
  56. MHUGE = math.huge
  57. NUMSEQ = NumberSequence.new
  58. NUMSEQKEYP = NumberSequenceKeypoint.new
  59. NUMRANGE = NumberRange.new
  60. COLORSEQ = ColorSequence.new
  61. COLORSEQKEYP = ColorSequenceKeypoint.new
  62. --//=================================\\
  63. --|| CHARACTER CRAP
  64. --\\=================================//
  65. --shirt: 43803419
  66. --pants: 675588491
  67. Humanoid.Name = 'ur mom gay you spy ' ..MRANDOM(-569242,46126) * 1000000
  68. Humanoid.MaxHealth = math.huge
  69. wait()
  70. local ff = Instance.new('ForceField') ff.Visible = false
  71. Humanoid.Health = math.huge
  72. for i,v in pairs(Character:GetChildren()) do
  73. if v:IsA'Shirt' or v:IsA'Pants' then
  74. v:Destroy()
  75. end
  76. end
  77. local pants = Instance.new('Pants', Character)
  78. pants.PantsTemplate = 'rbxassetid://675588491'
  79. pants.Name = 'Pants'
  80. local shirt = Instance.new('Shirt', Character)
  81. shirt.ShirtTemplate = 'rbxassetid://43803419'
  82. shirt.Name = 'Shirt'
  83. --//=================================\\
  84. --|| CUSTOMIZATION
  85. --\\=================================//
  86.  
  87. --COLORSERVICE = require(game:service'ReplicatedStorage':WaitForChild('ColorService'))
  88.  
  89. --PRIMARYCOLOR = COLORSERVICE:fetchColor("PrimaryColor")
  90. --SECONDARYCOLOR = COLORSERVICE:fetchColor("SecondaryColor")
  91. --TERTIARYCOLOR = COLORSERVICE:fetchColor('TertiaryColor')
  92.  
  93. --TAGSERVICE = require(game:GetService('ReplicatedStorage'):WaitForChild('TagService'))
  94.  
  95. Class_Name = "phoenix wright"
  96. Weapon_Name = "hands"
  97.  
  98. Custom_Colors = {
  99. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  100. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  101. Custom_Color_3 = BRICKC("Institutional white"); --3rd color for the weapon.
  102.  
  103. Custom_Color_4 = BRICKC("Institutional white"); --Color for the abilities.
  104. Custom_Color_5 = BRICKC("Institutional white"); --Color for the secondary bar.
  105. Custom_Color_6 = BRICKC("Institutional white"); --Color for the mana bar.
  106. Custom_Color_7 = BRICKC("Institutional white"); --Color for the health bar.
  107. Custom_Color_8 = BRICKC("Institutional white"); --Color for the stun bar.
  108.  
  109. Custom_Color_9 = BRICKC("Institutional white"); --Background for the mana bar.
  110. Custom_Color_10 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  111. Custom_Color_11 = BRICKC("Institutional white"); --Background for the stun bar.
  112. Custom_Color_12 = BRICKC("Institutional white"); --Background for the health bar.
  113. Custom_Color_13 = BRICKC("Institutional white"); --Background for the abilities.
  114. }
  115.  
  116. Mana_Bar_Background_Transparency = 0 --Transparency for the background of the mana bar.
  117. Secondary_Mana_Bar_Background_Transparency = 0 --Transparency for the background of the secondary mana bar.
  118. Health_Bar_Background_Transparency = 0 --Transparency for the background of the health bar.
  119. Stun_Bar_Background_Transparency = 0 --Transparency for the background of the stun bar.
  120. Ability_Background_Transparency = 0 --Transparency for the background of the abilities.
  121. Stat_Background_Transparency = 0 --Transparency for the background of the stats.
  122.  
  123. Player_Size = 1 --Size of the player.
  124. Animation_Speed = 3 --(30, 1) OR (40, 1.25) OR (45, 1.5) OR (50, 1.75)
  125. Frame_Speed = 1 / 60 --(1 / 30) OR (1 / 40) OR (1 / 45) OR (1 / 50) OR (1 / 60)
  126.  
  127. Enable_Gui = false --Enables or disables the Weapon Gui. Also functions as hiding or showing the Gui.
  128. Enable_Stats = false --Enables or disables stats.
  129. Put_Stats_In_Character = false --Places stats in Character.
  130. Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort.
  131. Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort.
  132. Enable_Stagger = false --Enables or disables staggering.
  133. Enable_Stun = false --Enables or disables the stun mechanic.
  134. Enable_Abilities = false --Enables abilites with cooldowns and mana costs.
  135. Enable_Secondary_Bar = false --Enables the secondary mana bar, if true.
  136. Enable_Tutorial = false --Enables the tutorial for using the weapon.
  137.  
  138. Start_Equipped = true --Starts the player equipped with their weapon.
  139. Start_Equipped_With_Equipped_Animation = true --Used in conjunction with the above option. Starts your equip animation.
  140. Can_Equip_Or_Unequip = false --Enables or disables the ability to unequip or equip your weapon.
  141. Unequip_Weapon_Only = false --Unequips or equips the weapon, but doesn't actually unequip the weapon-weapon. Only works when "Start_Equipped" is set to true.
  142. Disable_Animator = true --Disables the Animator in the humanoid.
  143. Disable_Animate = true --Disables the Animate script in the character.
  144. Disable_Moving_Arms = false --Keeps the arms from moving around.
  145. Use_Motors_Instead_Of_Welds = false --Uses motors instead of welds to disable moving arms.
  146. Walkspeed_Depends_On_Movement_Value = false --Walkspeed depends on movement value. Self-explanatory.
  147. Movement_Speed_Scales_With_Size = true --Scales walkspeed up to the player's size. Only works when "Walkspeed_Depends_On_Movement_Value" is set to true.
  148. Jump_Power_Scales_With_Size = false --Scales jumping power to the player's size.
  149. Disable_Jump = false --Disables jumping.
  150. Use_HopperBin = false --Uses a hopperbin to do things.
  151. Hold_To_Attack = false --The player must hold the mouse button to attack.
  152. Weapon_Lasting_Time = 30 --How long the player's weapon will stay after death before disappearing.
  153. Enable_Idle_Animation = false --Enables or disables an idle animation that plays after standing still for some time.
  154. Idle_Animation_Wait = 20 --How long you have to stand still until the idle animation plays.
  155. Freefall_Animation = false --Uses the freefall animation instead of the jump and fall animations.
  156.  
  157. Crit_Multiplier = 1.5 --Crit multiplier for damage boosts.
  158. Cooldown_1 = 0 --Cooldowns for abilites.
  159. Cooldown_2 = 0
  160. Cooldown_3 = 0
  161. Cooldown_4 = 0
  162. Skill_1_Mana_Cost = 0 --How much mana is required to use the skill.
  163. Skill_2_Mana_Cost = 0
  164. Skill_3_Mana_Cost = 0
  165. Skill_4_Mana_Cost = 0
  166. Max_Mana = 0 --Maximum amount of mana you can have.
  167. Max_Secondary_Mana = 0 --Maximum amount of secondary mana you can have.
  168. Mana_Name = "Mana" --Name for the mana bar.
  169. Secondary_Mana_Name = "Block" --Name for the secondary mana bar.
  170. Max_Stun = 1 --Maximum amount of stun you can have.
  171. Recover_Mana = 0 --How much mana you gain.
  172. Mana_Regen_Mode = "1" --Basically switches from one mana regen system to another.
  173. Secondary_Mana_Regen_Mode = "1" --Basically switches from one secondary mana regen system to another.
  174. Stun_Lose_Mode = "1" --Basically switches from one secondary stun loss system to another.
  175. Recover_Secondary_Mana = 0 --How much secondary mana you gain.
  176. Lose_Stun = 0 --How much stun you lose.
  177. Stun_Wait = 0 --Delay between losing stun.
  178. Mana_Wait = 0 --Delay between gaining mana.
  179. Secondary_Mana_Wait = 0 --Delay between gaining secondary mana.
  180. Menu_Update_Speed = 0 --How fast the Weapon Gui will update.
  181. Constant_Update = false --Removes the delay between updating the Weapon GUI.
  182. Show_Stats = false --Hides or shows stats.
  183. Stat_Offset = 0.74 --For cosmetic purposes. {0.74, 0.78}
  184.  
  185. Ability_1_Name = "Ability 1"
  186. Ability_2_Name = "Ability 2"
  187. Ability_3_Name = "Ability 3"
  188. Ability_4_Name = "Ability 4"
  189.  
  190. --//=================================\\
  191. --|| END OF CUSTOMIZATION
  192. --\\=================================//
  193.  
  194. --[[for i,v in pairs(Character:GetChildren()) do
  195. if v:IsA'Accessory' then v:Destroy() end
  196. end]]
  197. function GiveProperties(part, tab)
  198. for i,v in ipairs(tab) do
  199. part[i] = v
  200. end
  201. end
  202.  
  203.  
  204. local phoenix = {faces = {'rbxassetid://57055455', 'rbxassetid://57056309'}, sounds = {'665529621','135166344', '135165859'},slam = '131218412', scale = {Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(Player_Size/150,Player_Size/150,Player_Size/150)},images = {'129044092','129044561', '53141804'}, meshes = {'0','0','434570496'}}
  205. Face.Texture = phoenix.faces[1]
  206. function OBJECTION(mr)
  207. if not mr then mr = MRANDOM(1,3) end
  208. Face.Texture = phoenix.faces[2]
  209. BillboardGui0 = Instance.new("BillboardGui")
  210. ImageLabel1 = Instance.new("ImageLabel")
  211. BillboardGui0.Name = "bully"
  212. BillboardGui0.Parent = RightArm
  213. BillboardGui0.Size = UDim2.new(Player_Size *5 + 0.5, 0, Player_Size *4, 0)
  214. BillboardGui0.Active = true
  215. BillboardGui0.Adornee = nil
  216. BillboardGui0.StudsOffset = Vector3.new(--[[Player_Size*2]]0,Player_Size*4,Player_Size*2)
  217. BillboardGui0.AlwaysOnTop = true
  218. BillboardGui0.ClipsDescendants = true
  219. game:service'Debris':AddItem(BillboardGui0, 2)
  220. ImageLabel1.Parent = BillboardGui0
  221. ImageLabel1.Transparency = 1
  222. ImageLabel1.Size = UDim2.new(1, 0, 1, 0)
  223. ImageLabel1.Active = true
  224. ImageLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  225. ImageLabel1.BackgroundTransparency = 1
  226. ImageLabel1.Image = 'rbxassetid://'..phoenix.images[mr]
  227. local s = Instance.new('Sound', Head)
  228. s.SoundId = 'rbxassetid://'..phoenix.sounds[mr]
  229. s.Volume = 10
  230. s.Pitch = 1 --phoenix.sounds[math.random(1,#peepee)]
  231. s:Play()
  232. local par = Instance.new('Part', Character)
  233. par.Name = 'fahs9we98iojhgw'
  234. par.CFrame = RightArm.CFrame * CFrame.new(0,-50--[[*Player_Size]],0)
  235. par.CanCollide = false
  236. par.Size = Vector3.new(10*Player_Size,100,10*Player_Size)
  237. par.Anchored = true
  238. par.Transparency = 1
  239. par:BreakJoints()
  240. par.Touched:Connect(function(prt)
  241. if prt:IsDescendantOf(Character) then return end
  242. local entity = false
  243. local hum = nil
  244. if prt.Parent ~= workspace and prt.Parent:FindFirstChildOfClass('Humanoid') then
  245. entity = true
  246. hum = prt.Parent:FindFirstChildOfClass('Humanoid')
  247. end
  248. coroutine.wrap(function()
  249. if mr == 2 then
  250. local wasanchored = false
  251. if prt.Anchored == true then
  252. wasanchored = true
  253. end
  254. prt.Anchored = true
  255. wait(5)
  256. if wasanchored == false then
  257. prt.Anchored = false
  258. end
  259. elseif mr == 1 then
  260. if hum ~= nil then
  261. hum.Health = hum.Health - 1
  262. end
  263. end
  264. end)()
  265. end)
  266. game:service'Debris':AddItem(par, 2)
  267. if mr == 3 then
  268. local p = Instance.new('Part', RightArm)
  269. p.CFrame = RightArm.CFrame * CFrame.new(0,-Player_Size,0)
  270. p.Size = Vector3.new(0.1,0.1,0.1)
  271. local m = Instance.new('SpecialMesh', p)
  272. m.MeshType = 'FileMesh'
  273. m.MeshId = 'rbxassetid://' ..phoenix.meshes[mr]
  274. m.Scale = phoenix.scale[mr]
  275. local BodyVelocity = Instance.new("BodyVelocity", p)
  276. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  277. BodyVelocity.velocity = RootPart.CFrame.lookVector*60
  278. p.Touched:connect(function()
  279. local function dab()
  280. MagnitudeDamage(0, 0, 0, 0, 1, 1, 1, 1, p, 1, true, 20, 50, MRANDOM(1, 2), "Normal", p, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  281. end
  282. local s,m = pcall(dab)
  283. if m then
  284. print('no. | ' ..m)
  285. end
  286. end)
  287. end
  288. coroutine.wrap(function()
  289. wait(2)
  290. Face.Texture = phoenix.faces[1]
  291. end)()
  292. game:service'Debris':AddItem(s, 2)
  293. game:service'Debris':AddItem(p, 5)
  294. end
  295.  
  296. chat = function(t)
  297. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  298. Character:FindFirstChild("TalkingBillBoard"):destroy()
  299. end
  300. local hot = Instance.new("BillboardGui",Character)
  301. hot.Size = UDim2.new(0,100,0,40)
  302. hot.StudsOffset = Vector3.new(0,3*Player_Size,0)
  303. hot.Adornee = Character.Head
  304. hot.Name = "TalkingBillBoard"
  305. local fat = Instance.new("TextLabel",hot)
  306. fat.BackgroundTransparency = 1
  307. fat.BorderSizePixel = 0
  308. fat.Text = ""
  309. fat.Font = "SourceSans"
  310. fat.FontSize = "Size28"
  311. fat.TextStrokeTransparency = 0
  312. fat.TextColor3 = Color3.new(1,1,1)
  313. fat.TextStrokeColor3 = Color3.new(0,0,0)
  314. fat.Size = UDim2.new(1,0,0.5,0)
  315. local mlem = 1
  316. for i = 1,string.len(t),1 do
  317. if mlem == 1 then mlem = 2 else mlem = 1 end
  318. if i == string.len(t) then
  319. mlem = 1
  320. end
  321. Face.Texture = phoenix.faces[mlem]
  322. fat.Text = string.sub(t,1,i)
  323. CreateSound('131238032', Head, 5, 1)
  324. wait(1/30)
  325. end
  326. wait(1)
  327. hot:Destroy()
  328. end
  329. --//=================================\\
  330. --|| USEFUL VALUES
  331. --\\=================================//
  332.  
  333. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  334. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  335. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  336. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  337. local CO1 = 0
  338. local CO2 = 0
  339. local CO3 = 0
  340. local CO4 = 0
  341. local CHANGEDEFENSE = 0
  342. local CHANGEDAMAGE = 0
  343. local CHANGEMOVEMENT = 0
  344. local CHANGEATTACKSPEED = 0
  345. local ANIM = "Idle"
  346. local ATTACK = false
  347. local EQUIPPED = false
  348. local MOUSEHOLD = false
  349. local KEYHOLD = false
  350. local COMBO = 1
  351. local LASTPOINT = nil
  352. local BLCF = nil
  353. local SCFR = nil
  354. local STAGGERHITANIM = false
  355. local STAGGERANIM = false
  356. local STUNANIM = false
  357. local CRITCHANCENUMBER = 0
  358. local IDLENUMBER = 0
  359. local SINE = 0
  360. local CHANGE = 2 / Animation_Speed
  361. local WALKINGANIM = false
  362. local WALK = 0
  363. local DISABLEJUMPING = false
  364. local HASBEENBLOCKED = false
  365. local STUNDELAYNUMBER = 0
  366. local MANADELAYNUMBER = 0
  367. local SECONDARYMANADELAYNUMBER = 0
  368. local ROBLOXIDLEANIMATION = IT("Animation", nil)
  369. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  370. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  371. local WEAPONGUI = IT("ScreenGui", nil)
  372. WEAPONGUI.Name = "Weapon GUI"
  373. local WEAPONTOOL = IT("HopperBin", nil)
  374. WEAPONTOOL.Name = Weapon_Name
  375. local Weapon = IT("Model")
  376. Weapon.Name = Weapon_Name
  377. local Parts = IT("Folder", Weapon)
  378. Parts.Name = "Parts/Meshes"
  379. local Effects = IT("Folder", Weapon)
  380. Effects.Name = "Effects"
  381. local Welds = IT("Folder", Weapon)
  382. Welds.Name = "Welds/Snaps/Motors"
  383. local ANIMATOR = Humanoid.Animator
  384. local ANIMATE = Character.Animate
  385. local HITPLAYERSOUNDS = {"199149137", "199149186", "199149221", "199149235", "199149269", "199149297"}
  386. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  387. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  388. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  389. local HATACCESSORYWELDSC0 = {}
  390. local MOTOR6DWELDS = {}
  391. local WEAPONPARTS = {}
  392. local WEAPONWELDS = {}
  393. local HOPPERBINSELECTED = false
  394. if Use_HopperBin == false then
  395. HOPPERBINSELECTED = true
  396. end
  397. local CANPLAYIDLEANIMATION = true
  398. local IDLING = false
  399. local FINDPARTONRAY = workspace.FindPartOnRay
  400. local RAY = Ray.new
  401. local RANDOMDEBOUNCENUMBER = MRANDOM(1, 1e6)
  402. local WEAPONEQUIPPED = false
  403. local TUTORIALDONE = false
  404.  
  405. --//=================================\\
  406. --\\=================================//
  407.  
  408.  
  409.  
  410.  
  411.  
  412. --//=================================\\
  413. --|| STATS
  414. --\\=================================//
  415.  
  416. if Character:FindFirstChild("Stats") ~= nil then
  417. Character:FindFirstChild("Stats").Parent = nil
  418. end
  419.  
  420. local Stats = IT("Folder", nil)
  421. Stats.Name = "Stats"
  422. local ChangeStat = IT("Folder", Stats)
  423. ChangeStat.Name = "ChangeStat"
  424. local Defense = IT("NumberValue", Stats)
  425. Defense.Name = "Defense"
  426. Defense.Value = 1
  427. local Damage = IT("NumberValue", Stats)
  428. Damage.Name = "Damage"
  429. Damage.Value = 1
  430. local Movement = IT("NumberValue", Stats)
  431. Movement.Name = "Movement"
  432. Movement.Value = 1
  433. local AttackSpeed = IT("NumberValue", Stats)
  434. AttackSpeed.Name = "AttackSpeed"
  435. AttackSpeed.Value = 1
  436. local Mana = IT("NumberValue", Stats)
  437. Mana.Name = "Mana"
  438. Mana.Value = 0
  439. local SecondaryMana = IT("NumberValue", Stats)
  440. SecondaryMana.Name = "SecondaryMana"
  441. SecondaryMana.Value = 0
  442. local CanCrit = IT("BoolValue", Stats)
  443. CanCrit.Name = "CanCrit"
  444. CanCrit.Value = false
  445. local CritChance = IT("NumberValue", Stats)
  446. CritChance.Name = "CritChance"
  447. CritChance.Value = 20
  448. local CanPenetrateArmor = IT("BoolValue", Stats)
  449. CanPenetrateArmor.Name = "CanPenetrateArmor"
  450. CanPenetrateArmor.Value = false
  451. local AntiTeamKill = IT("BoolValue", Stats)
  452. AntiTeamKill.Name = "AntiTeamKill"
  453. AntiTeamKill.Value = false
  454. local Rooted = IT("BoolValue", Stats)
  455. Rooted.Name = "Rooted"
  456. Rooted.Value = false
  457. local Block = IT("BoolValue", Stats)
  458. Block.Name = "Block"
  459. Block.Value = false
  460. local RecentEnemy = IT("ObjectValue", Stats)
  461. RecentEnemy.Name = "RecentEnemy"
  462. RecentEnemy.Value = nil
  463. local StaggerHit = IT("BoolValue", Stats)
  464. StaggerHit.Name = "StaggerHit"
  465. StaggerHit.Value = false
  466. local Stagger = IT("BoolValue", Stats)
  467. Stagger.Name = "Stagger"
  468. Stagger.Value = false
  469. local Stun = IT("BoolValue", Stats)
  470. Stun.Name = "Stun"
  471. Stun.Value = false
  472. local StunValue = IT("NumberValue", Stats)
  473. StunValue.Name = "StunValue"
  474. StunValue.Value = 0
  475. local Timelocked = IT("BoolValue", Stats)
  476. Timelocked.Name = "Timelocked"
  477. Timelocked.Value = false
  478.  
  479. if Enable_Stats == true and Put_Stats_In_Character == true then
  480. Stats.Parent = Character
  481. end
  482.  
  483. --//=================================\\
  484. --\\=================================//
  485.  
  486.  
  487.  
  488.  
  489.  
  490. --//=================================\\
  491. --|| DEBUFFS / BUFFS
  492. --\\=================================//
  493.  
  494. local DEFENSECHANGE1 = IT("NumberValue", nil)
  495. DEFENSECHANGE1.Name = "ChangeDefense"
  496. DEFENSECHANGE1.Value = 0
  497.  
  498. local DAMAGECHANGE1 = IT("NumberValue", nil)
  499. DAMAGECHANGE1.Name = "ChangeDamage"
  500. DAMAGECHANGE1.Value = 0
  501.  
  502. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  503. MOVEMENTCHANGE1.Name = "ChangeMovement"
  504. MOVEMENTCHANGE1.Value = 0
  505.  
  506. local ATTACKSPEEDCHANGE1 = IT("NumberValue", nil)
  507. ATTACKSPEEDCHANGE1.Name = "ChangeAttackSpeed"
  508. ATTACKSPEEDCHANGE1.Value = 0
  509.  
  510. local TIMELOCKCHANGE1 = IT("StringValue", nil)
  511. TIMELOCKCHANGE1.Name = "Timelock"
  512. TIMELOCKCHANGE1.Value = "Timelocked"
  513.  
  514. --//=================================\\
  515. --\\=================================//
  516.  
  517.  
  518.  
  519.  
  520.  
  521. --//=================================\\
  522. --|| HUMANOID LAND CHECKER
  523. --\\=================================//
  524.  
  525. local HASLANDED = true
  526. local ISCLIMBING = false
  527. local CLIMBINGINCREMENT = 0
  528.  
  529. Humanoid.FreeFalling:Connect(function(STATUS)
  530. HASLANDED = not STATUS
  531. end)
  532.  
  533. Humanoid.Climbing:Connect(function(NUMBER)
  534. CLIMBINGINCREMENT = NUMBER
  535. end)
  536.  
  537. Humanoid.StateChanged:Connect(function(OLDSTATE, NEWSTATE)
  538. if NEWSTATE == Enum.HumanoidStateType.Climbing then
  539. ISCLIMBING = true
  540. else
  541. ISCLIMBING = false
  542. end
  543. end)
  544.  
  545. --//=================================\\
  546. --\\=================================//
  547.  
  548.  
  549.  
  550. --//=================================\\
  551. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  552. --\\=================================//
  553.  
  554. ArtificialHB = IT("BindableEvent", script)
  555. ArtificialHB.Name = "ArtificialHB"
  556.  
  557. --script:WaitForChild("ArtificialHB")
  558.  
  559. FRAME = Frame_Speed
  560. TF = 0
  561. ALLOWFRAMELOSS = false
  562. TOSSREMAINDER = false
  563. LASTFRAME = tick()
  564. script.ArtificialHB:Fire()
  565.  
  566. game:GetService("RunService").Heartbeat:connect(function(S, P)
  567. TF = TF + S
  568. if TF >= FRAME then
  569. if ALLOWFRAMELOSS then
  570. script.ArtificialHB:Fire()
  571. LASTFRAME = tick()
  572. else
  573. for i = 1, FLOOR(TF / FRAME) do
  574. script.ArtificialHB:Fire()
  575. end
  576. LASTFRAME = tick()
  577. end
  578. if TOSSREMAINDER then
  579. TF = 0
  580. else
  581. TF = TF - FRAME * FLOOR(TF / FRAME)
  582. end
  583. end
  584. end)
  585.  
  586. --//=================================\\
  587. --\\=================================//
  588.  
  589.  
  590.  
  591.  
  592.  
  593. --//=================================\\
  594. --|| SOME FUNCTIONS
  595. --\\=================================//
  596.  
  597. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  598. return FINDPARTONRAY(workspace, RAY(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  599. end
  600.  
  601. function PositiveAngle(NUMBER)
  602. if NUMBER >= 0 then
  603. NUMBER = 0
  604. end
  605. return NUMBER
  606. end
  607.  
  608. function NegativeAngle(NUMBER)
  609. if NUMBER <= 0 then
  610. NUMBER = 0
  611. end
  612. return NUMBER
  613. end
  614.  
  615. function Swait(NUMBER)
  616. if NUMBER == 0 or NUMBER == nil then
  617. ArtificialHB.Event:wait()
  618. else
  619. for i = 1, NUMBER do
  620. ArtificialHB.Event:wait()
  621. end
  622. end
  623. end
  624.  
  625. function Clerp(A, B, T)
  626. return A:lerp(B, T)
  627. end
  628.  
  629. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  630. local NEWFRAME = IT("Frame")
  631. NEWFRAME.BackgroundTransparency = TRANSPARENCY
  632. NEWFRAME.BorderSizePixel = BORDERSIZEPIXEL
  633. NEWFRAME.Position = POSITION
  634. NEWFRAME.Size = SIZE
  635. NEWFRAME.BackgroundColor3 = COLOR
  636. NEWFRAME.BorderColor3 = BORDERCOLOR
  637. NEWFRAME.Name = NAME
  638. NEWFRAME.Parent = PARENT
  639. return NEWFRAME
  640. end
  641.  
  642. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  643. local NEWLABEL = IT("TextLabel")
  644. NEWLABEL.BackgroundTransparency = 1
  645. NEWLABEL.Size = UD2(1, 0, 1, 0)
  646. NEWLABEL.Position = UD2(0, 0, 0, 0)
  647. NEWLABEL.TextColor3 = C3(255, 255, 255)
  648. NEWLABEL.TextStrokeTransparency = STROKETRANSPARENCY
  649. NEWLABEL.TextTransparency = TRANSPARENCY
  650. NEWLABEL.FontSize = TEXTFONTSIZE
  651. NEWLABEL.Font = TEXTFONT
  652. NEWLABEL.BorderSizePixel = BORDERSIZEPIXEL
  653. NEWLABEL.TextScaled = true
  654. NEWLABEL.Text = TEXT
  655. NEWLABEL.Name = NAME
  656. NEWLABEL.Parent = PARENT
  657. return NEWLABEL
  658. end
  659.  
  660. function NoOutlines(PART)
  661. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  662. end
  663.  
  664. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  665. local NEWPART = IT("Part")
  666. NEWPART.formFactor = FORMFACTOR
  667. NEWPART.Reflectance = REFLECTANCE
  668. NEWPART.Transparency = TRANSPARENCY
  669. NEWPART.CanCollide = false
  670. NEWPART.Locked = true
  671. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  672. NEWPART.Name = NAME
  673. if SIZE == VT() then
  674. NEWPART.Size = VT(0.2, 0.2, 0.2)
  675. else
  676. NEWPART.Size = SIZE
  677. end
  678. NEWPART.Position = Torso.Position
  679. NoOutlines(NEWPART)
  680. NEWPART.Material = MATERIAL
  681. NEWPART:BreakJoints()
  682. NEWPART.Parent = PARENT
  683. return NEWPART
  684. end
  685.  
  686. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  687. local NEWMESH = IT(MESH)
  688. if MESH == "SpecialMesh" then
  689. NEWMESH.MeshType = MESHTYPE
  690. if MESHID ~= "nil" and MESHID ~= "" then
  691. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  692. end
  693. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  694. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  695. end
  696. end
  697. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  698. NEWMESH.Scale = SCALE
  699. NEWMESH.Parent = PARENT
  700. return NEWMESH
  701. end
  702.  
  703. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  704. local NEWWELD = IT(TYPE)
  705. NEWWELD.Part0 = PART0
  706. NEWWELD.Part1 = PART1
  707. NEWWELD.C0 = C0
  708. NEWWELD.C1 = C1
  709. NEWWELD.Parent = PARENT
  710. return NEWWELD
  711. end
  712.  
  713. function CreateSound(ID, PARENT, VOLUME, PITCH)
  714. if not PARENT then
  715. PARENT = Character
  716. end
  717. --game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id="..ID)
  718. local NEWSOUND = IT("Sound")
  719. NEWSOUND.Volume = VOLUME
  720. NEWSOUND.Pitch = PITCH
  721. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  722. NEWSOUND.Parent = PARENT
  723. --game:GetService("Debris"):AddItem(NEWSOUND, 10)
  724. coroutine.resume(coroutine.create(function()
  725. repeat
  726. Swait()
  727. until NEWSOUND.IsLoaded
  728. NEWSOUND:play()
  729. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  730. end))
  731. end
  732.  
  733. -- HOW TO USE:
  734. -- SIZE: NUMSEQ({NUMSEQKEYP(0, 0), NUMSEQKEYP(1, 0)}) -- 1st: position in time, 2nd: size, 3rd: "spread"
  735. -- TRANSPARENCY: NUMSEQ({NUMSEQKEYP(0, 0), NUMSEQKEYP(1, 0)}) -- 1st: position in time, 2nd: transparency
  736. -- COLOR: COLORSEQ({COLORSEQKEYP(0, C3(0, 0, 0)), COLORSEQKEYP(1, C3(0, 0, 0))}) -- 1st: position in time, 2nd: Color (in Color3.new format)
  737. function CreateParticleEmitter(TEXTURE, PARENT, SIZE, TRANSPARENCY, COLOR, VELOCITYSPREAD, EMISSIONDIRECTION, LIFETIME, SPEED, ACCELERATION, DRAG, VELOCITYINHERITANCE, RATE, LIGHTINFLUENCE, LIGHTEMISSION, ZOFFSET, ROTATION, ROTSPEED, LOCKEDTOPART)
  738. local NEWPARTICLEEMITTER = IT("ParticleEmitter")
  739. NEWPARTICLEEMITTER.Enabled = false
  740. NEWPARTICLEEMITTER.Texture = "http://www.roblox.com/asset/?id="..TEXTURE
  741. NEWPARTICLEEMITTER.Size = SIZE
  742. NEWPARTICLEEMITTER.Transparency = TRANSPARENCY
  743. NEWPARTICLEEMITTER.Color = COLOR
  744. NEWPARTICLEEMITTER.VelocitySpread = VELOCITYSPREAD
  745. NEWPARTICLEEMITTER.Lifetime = LIFETIME
  746. NEWPARTICLEEMITTER.Speed = SPEED
  747. NEWPARTICLEEMITTER.Acceleration = ACCELERATION
  748. NEWPARTICLEEMITTER.Drag = DRAG
  749. NEWPARTICLEEMITTER.VelocityInheritance = VELOCITYINHERITANCE
  750. NEWPARTICLEEMITTER.Rate = RATE
  751. NEWPARTICLEEMITTER.LightInfluence = LIGHTINFLUENCE
  752. NEWPARTICLEEMITTER.LightEmission = LIGHTEMISSION
  753. NEWPARTICLEEMITTER.ZOffset = ZOFFSET
  754. NEWPARTICLEEMITTER.EmissionDirection = EMISSIONDIRECTION
  755. NEWPARTICLEEMITTER.Rotation = ROTATION
  756. NEWPARTICLEEMITTER.RotSpeed = ROTSPEED
  757. NEWPARTICLEEMITTER.LockedToPart = LOCKEDTOPART
  758. NEWPARTICLEEMITTER.Parent = PARENT
  759. return NEWPARTICLEEMITTER
  760. end
  761.  
  762. function CreateTrail(TEXTURE, PARENT, ATTACHMENT1POSITION, ATTACHMENT2POSITION, TRANSPARENCY, COLOR, TEXTURELENGTH, TEXTUREMODE, LIFETIME, LIGHTEMISSION, LIGHTINFLUENCE, MAXIMUMLENGTH, MINIMUMLENGTH, FACECAMERA)
  763. local ATTACHMENT1 = IT("Attachment")
  764. ATTACHMENT1.Position = ATTACHMENT1POSITION
  765. ATTACHMENT1.Parent = PARENT
  766. local ATTACHMENT2 = IT("Attachment")
  767. ATTACHMENT2.Position = ATTACHMENT2POSITION
  768. ATTACHMENT2.Parent = PARENT
  769. local NEWTRAIL = IT("Trail")
  770. NEWTRAIL.Enabled = false
  771. NEWTRAIL.Texture = "http://www.roblox.com/asset/?id="..TEXTURE
  772. NEWTRAIL.Attachment0 = ATTACHMENT1
  773. NEWTRAIL.Attachment1 = ATTACHMENT2
  774. NEWTRAIL.Transparency = TRANSPARENCY
  775. NEWTRAIL.Color = COLOR
  776. NEWTRAIL.TextureLength = TEXTURELENGTH
  777. NEWTRAIL.TextureMode = TEXTUREMODE
  778. NEWTRAIL.Lifetime = LIFETIME
  779. NEWTRAIL.LightEmission = LIGHTEMISSION
  780. NEWTRAIL.LightInfluence = LIGHTINFLUENCE
  781. NEWTRAIL.MaxLength = MAXIMUMLENGTH
  782. NEWTRAIL.MinLength = MINIMUMLENGTH
  783. NEWTRAIL.FaceCamera = FACECAMERA
  784. NEWTRAIL.Parent = PARENT
  785. return NEWTRAIL
  786. end
  787.  
  788. function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME)
  789. local MAGNITUDE = (POSITION1 - POSITION2).magnitude
  790. local CURRENTPOSITION = POSITION1
  791. local LIGHTNINGOFFSET = {-OFFSET, OFFSET}
  792. coroutine.resume(coroutine.create(function()
  793. for i = 1, MULTIPLIERTIME do
  794. local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME))
  795. LIGHTNINGPART.Anchored = true
  796. local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)])
  797. local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2
  798. if MULTIPLIERTIME == i then
  799. local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude
  800. LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1)
  801. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2)
  802. else
  803. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2)
  804. end
  805. CURRENTPOSITION = LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p
  806. game.Debris:AddItem(LIGHTNINGPART, 10)
  807. coroutine.resume(coroutine.create(function()
  808. while LIGHTNINGPART.Transparency ~= 1 do
  809. Swait()
  810. LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME) / Animation_Speed
  811. end
  812. LIGHTNINGPART.Parent = nil
  813. end))
  814. if LIGHTNINGDELAY ~= 0 then
  815. wait(LIGHTNINGDELAY)
  816. end
  817. end
  818. end))
  819. end
  820.  
  821. function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  822. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  823. EFFECTPART.Anchored = true
  824. EFFECTPART.CFrame = CFRAME
  825. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  826. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  827. coroutine.resume(coroutine.create(function(PART, MESH)
  828. for i = 0, 1, delay / Animation_Speed do
  829. Swait()
  830. PART.CFrame = PART.CFrame * ROTATION
  831. PART.Transparency = i
  832. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  833. end
  834. PART.Parent = nil
  835. end), EFFECTPART, EFFECTMESH)
  836. end
  837.  
  838. function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  839. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  840. EFFECTPART.Anchored = true
  841. EFFECTPART.CFrame = CFRAME
  842. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  843. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  844. coroutine.resume(coroutine.create(function(PART, MESH)
  845. for i = 0, 1, delay / Animation_Speed do
  846. Swait()
  847. PART.CFrame = PART.CFrame * ROTATION
  848. PART.Transparency = i
  849. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  850. end
  851. PART.Parent = nil
  852. end), EFFECTPART, EFFECTMESH)
  853. end
  854.  
  855. function MagicCylinder(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  856. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  857. EFFECTPART.Anchored = true
  858. EFFECTPART.CFrame = CFRAME
  859. local EFFECTMESH = CreateMesh("CylinderMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  860. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  861. coroutine.resume(coroutine.create(function(PART, MESH)
  862. for i = 0, 1, delay / Animation_Speed do
  863. Swait()
  864. PART.CFrame = PART.CFrame * ROTATION
  865. PART.Transparency = i
  866. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  867. end
  868. PART.Parent = nil
  869. end), EFFECTPART, EFFECTMESH)
  870. end
  871.  
  872. function MagicHead(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  873. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  874. EFFECTPART.Anchored = true
  875. EFFECTPART.CFrame = CFRAME
  876. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Head", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  877. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  878. coroutine.resume(coroutine.create(function(PART, MESH)
  879. for i = 0, 1, delay / Animation_Speed do
  880. Swait()
  881. PART.CFrame = PART.CFrame * ROTATION
  882. PART.Transparency = i
  883. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  884. end
  885. PART.Parent = nil
  886. end), EFFECTPART, EFFECTMESH)
  887. end
  888.  
  889. function MagicRing(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  890. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  891. EFFECTPART.Anchored = true
  892. EFFECTPART.CFrame = CFRAME
  893. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "3270017", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  894. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  895. coroutine.resume(coroutine.create(function(PART, MESH)
  896. for i = 0, 1, delay / Animation_Speed do
  897. Swait()
  898. PART.CFrame = PART.CFrame * ROTATION
  899. PART.Transparency = i
  900. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  901. end
  902. PART.Parent = nil
  903. end), EFFECTPART, EFFECTMESH)
  904. end
  905.  
  906. function MagicWave(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  907. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  908. EFFECTPART.Anchored = true
  909. EFFECTPART.CFrame = CFRAME
  910. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "20329976", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), VT(0, 0, (-0.1 * Z1)) + (OFFSET * Player_Size))
  911. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  912. coroutine.resume(coroutine.create(function(PART, MESH)
  913. for i = 0, 1, delay / Animation_Speed do
  914. Swait()
  915. PART.CFrame = PART.CFrame * ROTATION
  916. PART.Transparency = i
  917. MESH.Offset = VT(0, 0, (-0.1 * MESH.Scale.Z))
  918. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  919. end
  920. PART.Parent = nil
  921. end), EFFECTPART, EFFECTMESH)
  922. end
  923.  
  924. function MagicCrystal(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  925. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  926. EFFECTPART.Anchored = true
  927. EFFECTPART.CFrame = CFRAME
  928. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1003258229", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) --987115041, 9756362
  929. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  930. coroutine.resume(coroutine.create(function(PART, MESH)
  931. for i = 0, 1, delay / Animation_Speed do
  932. Swait()
  933. PART.CFrame = PART.CFrame * ROTATION
  934. PART.Transparency = i
  935. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  936. end
  937. PART.Parent = nil
  938. end), EFFECTPART, EFFECTMESH)
  939. end
  940.  
  941. function MagicSwirl(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  942. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  943. EFFECTPART.Anchored = true
  944. EFFECTPART.CFrame = CFRAME
  945. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1051557", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  946. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  947. coroutine.resume(coroutine.create(function(PART, MESH)
  948. for i = 0, 1, delay / Animation_Speed do
  949. Swait()
  950. PART.CFrame = PART.CFrame * ROTATION
  951. PART.Transparency = i
  952. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  953. end
  954. PART.Parent = nil
  955. end), EFFECTPART, EFFECTMESH)
  956. end
  957.  
  958. function MagicSharpCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  959. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  960. EFFECTPART.Anchored = true
  961. EFFECTPART.CFrame = CFRAME
  962. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1778999", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  963. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  964. coroutine.resume(coroutine.create(function(PART, MESH)
  965. for i = 0, 1, delay / Animation_Speed do
  966. Swait()
  967. PART.CFrame = PART.CFrame * ROTATION
  968. PART.Transparency = i
  969. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  970. end
  971. PART.Parent = nil
  972. end), EFFECTPART, EFFECTMESH)
  973. end
  974.  
  975. function MagicFlatCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  976. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  977. EFFECTPART.Anchored = true
  978. EFFECTPART.CFrame = CFRAME
  979. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1033714", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  980. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  981. coroutine.resume(coroutine.create(function(PART, MESH)
  982. for i = 0, 1, delay / Animation_Speed do
  983. Swait()
  984. PART.CFrame = PART.CFrame * ROTATION
  985. PART.Transparency = i
  986. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  987. end
  988. PART.Parent = nil
  989. end), EFFECTPART, EFFECTMESH)
  990. end
  991.  
  992. function MagicSpikedCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  993. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  994. EFFECTPART.Anchored = true
  995. EFFECTPART.CFrame = CFRAME
  996. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1323306", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  997. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  998. coroutine.resume(coroutine.create(function(PART, MESH)
  999. for i = 0, 1, delay / Animation_Speed do
  1000. Swait()
  1001. PART.CFrame = PART.CFrame * ROTATION
  1002. PART.Transparency = i
  1003. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  1004. end
  1005. PART.Parent = nil
  1006. end), EFFECTPART, EFFECTMESH)
  1007. end
  1008.  
  1009. function MagicFlatCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1010. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1011. EFFECTPART.Anchored = true
  1012. EFFECTPART.CFrame = CFRAME
  1013. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1078075", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1014. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1015. coroutine.resume(coroutine.create(function(PART, MESH)
  1016. for i = 0, 1, delay / Animation_Speed do
  1017. Swait()
  1018. PART.CFrame = PART.CFrame * ROTATION
  1019. PART.Transparency = i
  1020. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  1021. end
  1022. PART.Parent = nil
  1023. end), EFFECTPART, EFFECTMESH)
  1024. end
  1025.  
  1026. function MagicSkull(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1027. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1028. EFFECTPART.Anchored = true
  1029. EFFECTPART.CFrame = CFRAME
  1030. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1031. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1032. coroutine.resume(coroutine.create(function(PART, MESH)
  1033. for i = 0, 1, delay / Animation_Speed do
  1034. Swait()
  1035. PART.CFrame = PART.CFrame * ROTATION
  1036. PART.Transparency = i
  1037. MESH.Scale = MESH.Scale + VT(X2 * Player_Size / Animation_Speed, Y2 * Player_Size / Animation_Speed, Z2 * Player_Size / Animation_Speed)
  1038. end
  1039. PART.Parent = nil
  1040. end), EFFECTPART, EFFECTMESH)
  1041. end
  1042.  
  1043. function MagicSlash1(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1044. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1045. EFFECTPART.Anchored = true
  1046. EFFECTPART.CFrame = CFRAME
  1047. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "578606967", "", VT((X1 / 100) * Player_Size, (Y1 / 100) * Player_Size, (Z1 / 100) * Player_Size), OFFSET * Player_Size)
  1048. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1049. coroutine.resume(coroutine.create(function(PART, MESH)
  1050. for i = 0, 1, delay / Animation_Speed do
  1051. Swait()
  1052. PART.CFrame = PART.CFrame * ROTATION
  1053. PART.Transparency = i
  1054. MESH.Scale = MESH.Scale + VT((X2 / 100) * Player_Size / Animation_Speed, (Y2 / 100) * Player_Size / Animation_Speed, (Z2 / 100) * Player_Size / Animation_Speed)
  1055. end
  1056. PART.Parent = nil
  1057. end), EFFECTPART, EFFECTMESH)
  1058. end
  1059.  
  1060. function MagicSlash2(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1061. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1062. EFFECTPART.Anchored = true
  1063. EFFECTPART.CFrame = CFRAME
  1064. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "448386996", "", VT((X1 / 100) * Player_Size, (Y1 / 100) * Player_Size, (Z1 / 100) * Player_Size), OFFSET * Player_Size)
  1065. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1066. coroutine.resume(coroutine.create(function(PART, MESH)
  1067. for i = 0, 1, delay / Animation_Speed do
  1068. Swait()
  1069. PART.CFrame = PART.CFrame * ROTATION
  1070. PART.Transparency = i
  1071. MESH.Scale = MESH.Scale + VT((X2 / 100) * Player_Size / Animation_Speed, (Y2 / 100) * Player_Size / Animation_Speed, (Z2 / 100) * Player_Size / Animation_Speed)
  1072. end
  1073. PART.Parent = nil
  1074. end), EFFECTPART, EFFECTMESH)
  1075. end
  1076.  
  1077. function ElectricEffect(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X, Y, Z, delay)
  1078. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1079. EFFECTPART.Anchored = true
  1080. EFFECTPART.CFrame = CFRAME
  1081. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X * Player_Size, Y * Player_Size, Z * Player_Size), OFFSET * Player_Size)
  1082. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1083. local XVALUE = MRANDOM()
  1084. local YVALUE = MRANDOM()
  1085. local ZVALUE = MRANDOM()
  1086. coroutine.resume(coroutine.create(function(PART, MESH, THEXVALUE, THEYVALUE, THEZVALUE)
  1087. for i = 0, 1, delay / Animation_Speed do
  1088. Swait()
  1089. PART.CFrame = PART.CFrame * ROTATION
  1090. PART.Transparency = i
  1091. THEXVALUE = THEXVALUE - 0.1 * (delay * 10)
  1092. THEYVALUE = THEYVALUE - 0.1 * (delay * 10)
  1093. THEZVALUE = THEZVALUE - 0.1 * (delay * 10)
  1094. MESH.Scale = MESH.Scale + VT(THEXVALUE * Player_Size / Animation_Speed, THEYVALUE * Player_Size / Animation_Speed, THEZVALUE * Player_Size / Animation_Speed)
  1095. end
  1096. PART.Parent = nil
  1097. end), EFFECTPART, EFFECTMESH, XVALUE, YVALUE, ZVALUE)
  1098. end
  1099.  
  1100. function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay)
  1101. local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude
  1102. if MAGNITUDECFRAME > (1 / 100) then
  1103. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1))
  1104. EFFECTPART.Anchored = true
  1105. EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0)
  1106. local THEMESHTYPE = "BlockMesh"
  1107. if MESHTYPE == "Cylinder" then
  1108. THEMESHTYPE = "CylinderMesh"
  1109. end
  1110. local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0))
  1111. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1112. coroutine.resume(coroutine.create(function(PART, MESH)
  1113. for i = 0, 1, delay / Animation_Speed do
  1114. Swait()
  1115. PART.CFrame = PART.CFrame * ROTATION
  1116. PART.Transparency = i
  1117. MESH.Scale = MESH.Scale + VT(X * Player_Size / Animation_Speed, Y * Player_Size / Animation_Speed, Z * Player_Size / Animation_Speed)
  1118. end
  1119. PART.Parent = nil
  1120. end), EFFECTPART, EFFECTMESH)
  1121. end
  1122. end
  1123.  
  1124. function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay)
  1125. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT())
  1126. EFFECTPART.Anchored = true
  1127. EFFECTPART.CFrame = CFRAME
  1128. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0))
  1129. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1130. local THELASTPOINT = CFRAME
  1131. coroutine.resume(coroutine.create(function(PART)
  1132. for i = 1, DURATION do
  1133. Swait()
  1134. PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0)
  1135. TrailEffect(BRICKCOLOR, MATERIAL, PART.CFrame, THELASTPOINT, "Cylinder", REFLECTANCE, SIZE * Player_Size, ANGLES(0, 0, 0), X * Player_Size, Y * Player_Size, Z * Player_Size, delay)
  1136. THELASTPOINT = PART.CFrame
  1137. end
  1138. PART.Parent = nil
  1139. end), EFFECTPART)
  1140. end
  1141.  
  1142. --//=================================\\
  1143. --\\=================================//
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149. --//=================================\\
  1150. --|| RESIZE PLAYER
  1151. --\\=================================//
  1152.  
  1153. for _, v in pairs (Character:GetChildren()) do
  1154. if v:IsA("Accessory") then
  1155. local HATACCESSORYWELD = v.Handle:FindFirstChild("AccessoryWeld")
  1156. if HATACCESSORYWELD ~= nil then
  1157. table.insert(
  1158. HATACCESSORYWELDSC0,
  1159. {
  1160. HATACCESSORYWELD.Parent.Parent,
  1161. HATACCESSORYWELD.Parent,
  1162. HATACCESSORYWELD.Part0,
  1163. HATACCESSORYWELD.Part1,
  1164. HATACCESSORYWELD.C0.x,
  1165. HATACCESSORYWELD.C0.y,
  1166. HATACCESSORYWELD.C0.z,
  1167. HATACCESSORYWELD.C1.x,
  1168. HATACCESSORYWELD.C1.y,
  1169. HATACCESSORYWELD.C1.z
  1170. }
  1171. )
  1172. end
  1173. NoOutlines(v.Handle)
  1174. v.Handle.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1175. end
  1176. end
  1177. Humanoid.HipHeight = Humanoid.HipHeight * Player_Size
  1178. for _, v in pairs (Character:GetChildren()) do
  1179. if v:IsA("BasePart") then
  1180. for _, b in pairs (v:GetChildren()) do
  1181. if b.ClassName == "Motor6D" then
  1182. table.insert(
  1183. MOTOR6DWELDS,
  1184. {
  1185. b,
  1186. b.Parent,
  1187. b.Part0,
  1188. b.Part1
  1189. }
  1190. )
  1191. end
  1192. end
  1193. end
  1194. end
  1195. for _, v in pairs (Character:GetChildren()) do
  1196. if v:IsA("BasePart") then
  1197. v.Size = v.Size * Vector3.new(Player_Size, Player_Size, Player_Size)
  1198. end
  1199. end
  1200. Player.Chatted:connect(function(msg)
  1201. if string.sub(msg, 1, 5) == '/e w ' then
  1202. lastchat = string.sub(msg, 6)
  1203. end
  1204. end)
  1205. for i = 1, #MOTOR6DWELDS do
  1206. local MAINTHING = MOTOR6DWELDS[i]
  1207. local MOTOR6D = MAINTHING[1]
  1208. local MOTOR6DPARENT = MAINTHING[2]
  1209. local MOTOR6DPART0 = MAINTHING[3]
  1210. local MOTOR6DPART1 = MAINTHING[4]
  1211. local C01, C02, C03, C04, C05, C06, C07, C08, C09, C010, C011, C012 = MOTOR6D.C0:components()
  1212. local C11, C12, C13, C14, C15, C16, C17, C18, C19, C110, C111, C112 = MOTOR6D.C1:components()
  1213. --MOTOR6DPARENT.Size = MOTOR6DPARENT.Size * Vector3.new(Player_Size, Player_Size, Player_Size)
  1214. MOTOR6D.Parent = MOTOR6DPARENT
  1215. MOTOR6D.Part0 = MOTOR6DPART0
  1216. MOTOR6D.Part1 = MOTOR6DPART1
  1217. MOTOR6D.C0 = CFrame.new(C01 * Player_Size, C02 * Player_Size, C03 * Player_Size, C04, C05, C06, C07, C08, C09, C010, C011, C012)
  1218. MOTOR6D.C1 = CFrame.new(C11 * Player_Size, C12 * Player_Size, C13 * Player_Size, C14, C15, C16, C17, C18, C19, C110, C111, C112)
  1219. end
  1220. for i = 1, #HATACCESSORYWELDSC0 do
  1221. local MAINTHING = HATACCESSORYWELDSC0[i]
  1222. local ACCESSORYPARENT = MAINTHING[1]
  1223. local HANDLEPARENT = MAINTHING[2]
  1224. local PART0 = MAINTHING[3]
  1225. local PART1 = MAINTHING[4]
  1226. local WELDC0X = MAINTHING[5]
  1227. local WELDC0Y = MAINTHING[6]
  1228. local WELDC0Z = MAINTHING[7]
  1229. local WELDC1X = MAINTHING[8]
  1230. local WELDC1Y = MAINTHING[9]
  1231. local WELDC1Z = MAINTHING[10]
  1232. local FAKEACCESSORYWELD = Instance.new("Weld")
  1233. HANDLEPARENT.Size = HANDLEPARENT.Size * Vector3.new(Player_Size, Player_Size, Player_Size)
  1234. FAKEACCESSORYWELD.Parent = HANDLEPARENT
  1235. FAKEACCESSORYWELD.Parent.Mesh.Scale = (FAKEACCESSORYWELD.Parent.Mesh.Scale * Player_Size)
  1236. FAKEACCESSORYWELD.Part0 = PART0
  1237. FAKEACCESSORYWELD.Part1 = PART1
  1238. FAKEACCESSORYWELD.C0 = CFrame.new(WELDC0X * Player_Size, WELDC0Y * Player_Size, WELDC0Z * Player_Size)
  1239. FAKEACCESSORYWELD.C1 = CFrame.new(WELDC1X * Player_Size, WELDC1Y * Player_Size, WELDC1Z * Player_Size)
  1240. end
  1241. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1242. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1243. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1244. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1245. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  1246. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  1247. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1248. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1249. 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))
  1250. 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))
  1251. 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))
  1252. 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))
  1253. if Movement_Speed_Scales_With_Size == true then
  1254. Humanoid.WalkSpeed = 16 * Player_Size
  1255. end
  1256. if Jump_Power_Scales_With_Size == true then
  1257. Humanoid.JumpPower = 50 * Player_Size
  1258. end
  1259.  
  1260. --//=================================\\
  1261. --\\=================================//
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267. --//=================================\\
  1268. --|| WEAPON CREATION
  1269. --\\=================================//
  1270.  
  1271. --Weapon = game:service'ReplicatedStorage'.Weapons[script.Name][Player.Stats.SkinValue.Value]:Clone()
  1272.  
  1273. --[[
  1274. if Weapon:FindFirstChild("Parts/Meshes") == nil then
  1275. Parts.Parent = Weapon
  1276. end
  1277.  
  1278. if Weapon:FindFirstChild("Welds/Snaps/Motors") == nil then
  1279. Welds.Parent = Weapon
  1280. end
  1281.  
  1282. if Weapon:FindFirstChild("Effects") == nil then
  1283. Effects.Parent = Weapon
  1284. end
  1285.  
  1286. for _, b in pairs (Weapon:GetChildren()) do
  1287. if b.ClassName == "Part" or b.ClassName == "UnionOperation" or b.ClassName == "WedgePart" or b.ClassName == "MeshPart" then
  1288. b.Parent = Parts
  1289. end
  1290. end
  1291.  
  1292. function MakeNewWeld(Part1, Part2)
  1293. local Part1CFrame = CF(Part1.Position)
  1294. local NewWeld = CreateWeldOrSnapOrMotor("Weld", Welds, Part1, Part2, Part1.CFrame:inverse() * Part1CFrame, Part2.CFrame:inverse() * Part1CFrame)
  1295. end
  1296.  
  1297. function WeldParts(Part)
  1298. for _, b in pairs (Part.Parent:GetChildren()) do
  1299. if (b.ClassName == "Part" or b.ClassName == "WedgePart" or b.ClassName == "UnionOperation" or b.ClassName == "MeshPart") and b ~= Part then
  1300. MakeNewWeld(b, Part)
  1301. b.Anchored = false
  1302. b.CanCollide = false
  1303. b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1304. end
  1305. end
  1306. Part.Anchored = false
  1307. Part.CanCollide = false
  1308. Part.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1309. end
  1310.  
  1311. if Handle ~= nil then
  1312. WeldParts(Handle)
  1313. HandleWeld = CreateWeldOrSnapOrMotor("Weld", Welds, Torso, Handle, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1314. end
  1315. --]]
  1316.  
  1317. for _, v in pairs (Parts:GetChildren()) do
  1318. --if v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "WedgePart" or v.ClassName == "MeshPart" then
  1319. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1320. table.insert(WEAPONPARTS, v)
  1321. --end
  1322. end
  1323.  
  1324. for _, v in pairs (Welds:GetChildren()) do
  1325. --if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  1326. table.insert(WEAPONWELDS, v)
  1327. --end
  1328. end
  1329.  
  1330. if Player_Size ~= 1 then
  1331. for _, v in pairs (Parts:GetChildren()) do
  1332. if v.ClassName == "Part" or v.ClassName == "WedgePart" then
  1333. --v.Size = VT(v.Size.x * Player_Size, v.Size.y * Player_Size, v.Size.z * Player_Size)
  1334. for _, b in pairs (v:GetChildren()) do
  1335. if b.ClassName == "SpecialMesh" then
  1336. --if b.MeshType ~= Enum.MeshType.Cylinder and b.MeshType ~= Enum.MeshType.Sphere and b.MeshType ~= Enum.MeshType.Brick then
  1337. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  1338. --end
  1339. end
  1340. end
  1341. --[[
  1342. elseif v.ClassName == "UnionOperation" then
  1343. v.Size = VT(v.Size.x * Player_Size, v.Size.y * Player_Size, v.Size.z * Player_Size)
  1344. --]]
  1345. end
  1346. end
  1347. for _, v in pairs (Welds:GetChildren()) do
  1348. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  1349. local PART1 = v.Part1
  1350. v.Part1 = nil
  1351. local CF1, CF2, CF3, CF4, CF5, CF6, CF7, CF8, CF9, CF10, CF11, CF12 = v.C1:components()
  1352. v.C1 = CF(CF1 * Player_Size, CF2 * Player_Size, CF3 * Player_Size, CF4, CF5, CF6, CF7, CF8, CF9, CF10, CF11, CF12)
  1353. v.Part1 = PART1
  1354. end
  1355. end
  1356. end
  1357.  
  1358. Weapon.Parent = Character
  1359.  
  1360. Humanoid.Died:connect(function()
  1361. ATTACK = true
  1362. Weapon.Parent = workspace
  1363. game:GetService("Debris"):AddItem(Weapon, Weapon_Lasting_Time)
  1364. for i = 1, #WEAPONPARTS do
  1365. WEAPONPARTS[i].CanCollide = true
  1366. --WEAPONPARTS[i].Parent = Weapon
  1367. end
  1368. for i = 1, #WEAPONWELDS do
  1369. if WEAPONWELDS[i].Part0.Parent == Character or WEAPONWELDS[i].Part1.Parent == Character then
  1370. WEAPONWELDS[i].Parent = nil
  1371. --else
  1372. --WEAPONWELDS[i].Parent = HandlePart
  1373. end
  1374. end
  1375. coroutine.resume(coroutine.create(function()
  1376. wait(Weapon_Lasting_Time - 1)
  1377. for i = 0, 1, 0.1 / Animation_Speed do
  1378. Swait()
  1379. for i = 1, #WEAPONPARTS do
  1380. --if WEAPONPARTS[i].Name == "Handle Part" or WEAPONPARTS[i].Name == "Handle" then
  1381. WEAPONPARTS[i].Transparency = WEAPONPARTS[i].Transparency + 0.1
  1382. --end
  1383. end
  1384. end
  1385. Weapon.Parent = nil
  1386. end))
  1387. end)
  1388.  
  1389. print(Class_Name.." loaded.")
  1390.  
  1391. --//=================================\\
  1392. --\\=================================//
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398. --//=================================\\
  1399. --|| DAMAGE FUNCTIONS
  1400. --\\=================================//
  1401.  
  1402. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1403. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1404. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1405. local BODYGYRO = IT("BodyGyro", STATPART)
  1406. local BODYPOSITION = IT("BodyPosition", STATPART)
  1407. BODYPOSITION.P = 2000
  1408. BODYPOSITION.D = 100
  1409. BODYPOSITION.maxForce = VT(MHUGE, MHUGE, MHUGE)
  1410. if LABELTYPE == "Normal" then
  1411. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 4, MRANDOM(-2, 2)) --6
  1412. elseif LABELTYPE == "Debuff" then
  1413. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) --8
  1414. elseif LABELTYPE == "Interruption" then
  1415. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 6, MRANDOM(-2, 2)) --8
  1416. end
  1417. game:GetService("Debris"):AddItem(STATPART ,5)
  1418. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1419. BILLBOARDGUI.Adornee = STATPART
  1420. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1421. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1422. BILLBOARDGUI.AlwaysOnTop = false
  1423. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1424. TEXTLABEL.Rotation = MRANDOM(-10, 10)
  1425. TEXTLABEL.BackgroundTransparency = 1
  1426. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1427. TEXTLABEL.Text = TEXT
  1428. TEXTLABEL.Font = "SourceSans"
  1429. TEXTLABEL.FontSize="Size42"
  1430. TEXTLABEL.TextColor3 = COLOR
  1431. TEXTLABEL.TextStrokeTransparency = 0
  1432. TEXTLABEL.TextTransparency = 1
  1433. TEXTLABEL.TextStrokeTransparency = 1
  1434. TEXTLABEL.TextScaled = true
  1435. TEXTLABEL.TextWrapped = true
  1436. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1437. --[[
  1438. wait(0.2)
  1439. for i=1, 5 do
  1440. wait()
  1441. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1442. end
  1443. wait(1.2)
  1444. for i=1, 5 do
  1445. wait()
  1446. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1447. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1448. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1449. end
  1450. --]]
  1451. for i = 1, 4 do
  1452. wait()
  1453. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency - 1 / 4
  1454. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency - 1 / 4
  1455. end
  1456. if LABELTYPE == "Normal" then
  1457. wait(0.4)
  1458. else
  1459. wait(0.8)
  1460. end
  1461. for i = 1, 5 do
  1462. wait()
  1463. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 1 / 5
  1464. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 1 / 5
  1465. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1466. end
  1467. THEPART.Parent = nil
  1468. end),STATPART, BODYPOSITION, TEXTLABEL)
  1469. end
  1470.  
  1471. function IncreaseOrDecreaseStat(LOCATION, STAT, AMOUNT, DURATION, SHOWTHESTAT)
  1472. if LOCATION:FindFirstChild("Stats") ~= nil then
  1473. if LOCATION.Stats:FindFirstChild("Block") ~= nil then
  1474. if LOCATION.Stats:FindFirstChild("Block").Value == true then
  1475. return
  1476. end
  1477. end
  1478. if LOCATION.Stats:FindFirstChild("ChangeStat") ~= nil and LOCATION.Stats:FindFirstChild("Block").Value == false then
  1479. local NewStatChange = IT("NumberValue")
  1480. NewStatChange.Value = AMOUNT
  1481. if STAT == "Defense" then
  1482. NewStatChange.Name = "ChangeDefense"
  1483. elseif STAT == "Damage" then
  1484. NewStatChange.Name = "ChangeDamage"
  1485. elseif STAT == "Movement" then
  1486. NewStatChange.Name = "ChangeMovement"
  1487. elseif STAT == "AttackSpeed" then
  1488. NewStatChange.Name = "ChangeAttackSpeed"
  1489. end
  1490. if SHOWTHESTAT == true then
  1491. if AMOUNT < 0 then
  1492. StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 2), 0), "-"..STAT, C3(1, 1, 1))
  1493. elseif AMOUNT > 0 then
  1494. StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 2), 0), "+"..STAT, C3(1, 1, 1))
  1495. end
  1496. end
  1497. if DURATION ~= nil and DURATION ~= 0 then
  1498. local StatDuration = IT("NumberValue")
  1499. StatDuration.Name = "Duration"
  1500. StatDuration.Value = DURATION
  1501. StatDuration.Parent = NewStatChange
  1502. end
  1503. NewStatChange.Parent = LOCATION.Stats:FindFirstChild("ChangeStat")
  1504. end
  1505. end
  1506. end
  1507.  
  1508. --Usage: DamageFunction(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, hit, false, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  1509. function DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HIT, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  1510. if HIT.Parent == nil or Timelocked.Value == true then
  1511. return
  1512. end
  1513. local HITHUMANOID = HIT.Parent:FindFirstChild("Humanoid")
  1514. for _, v in pairs(HIT.Parent:GetChildren()) do
  1515. if v:IsA("Humanoid") then
  1516. HITHUMANOID = v
  1517. end
  1518. end
  1519. if HIT.Name == "Hitbox" and RANGED ~= true and HIT.Parent ~= Weapon and Enable_Stagger_Hit == true then
  1520. StaggerHit.Value = true
  1521. if Play_Hitbox_Hit_Sound == true then
  1522. if HITWEAPONSOUND ~= "" and HITWEAPONSOUND ~= "nil" then
  1523. CreateSound(HITWEAPONSOUND, HIT, 1, HITWEAPONSOUNDPITCH)
  1524. end
  1525. end
  1526. return
  1527. end
  1528. if HIT.Parent.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent.Parent:FindFirstChild("UpperTorso") ~= nil then
  1529. HITHUMANOID = HIT.Parent.Parent:FindFirstChild("Humanoid")
  1530. end
  1531. if HIT.Parent.ClassName == "Hat" or HIT.ClassName == "Accessory" then
  1532. HIT = HIT.Parent.Parent:FindFirstChild("Head")
  1533. end
  1534. if HITHUMANOID ~= nil and HIT.Parent.Name ~= Character.Name and (HIT.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent:FindFirstChild("UpperTorso") ~= nil) then
  1535. if HIT.Parent:FindFirstChild("DebounceHit"..RANDOMDEBOUNCENUMBER) ~= nil then
  1536. if HIT.Parent:FindFirstChild("DebounceHit"..RANDOMDEBOUNCENUMBER).Value == true then
  1537. return
  1538. end
  1539. end
  1540. if AntiTeamKill.Value == true then
  1541. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(HIT.Parent) ~= nil then
  1542. if game.Players:GetPlayerFromCharacter(HIT.Parent).TeamColor == Player.TeamColor then
  1543. return
  1544. end
  1545. end
  1546. end
  1547. if HITEVENWHENDEAD == false then
  1548. if HIT.Parent:FindFirstChild("Humanoid") ~= nil then
  1549. if HIT.Parent:FindFirstChild("Humanoid").Health <= 0 then
  1550. return
  1551. end
  1552. end
  1553. end
  1554. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1555. if HIT.Parent.Stats:FindFirstChild("StunValue") ~= nil then
  1556. HIT.Parent.Stats:FindFirstChild("StunValue").Value = HIT.Parent.Stats:FindFirstChild("StunValue").Value + INCREASESTUN
  1557. end
  1558. end
  1559. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1560. if HIT.Parent.Stats:FindFirstChild("Stagger") ~= nil then
  1561. if STAGGER == true and Enable_Stagger == true then
  1562. HIT.Parent.Stats:FindFirstChild("Stagger").Value = true
  1563. end
  1564. end
  1565. end
  1566. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1567. if HIT.Parent.Stats:FindFirstChild("Block") ~= nil then
  1568. if HIT.Parent.Stats:FindFirstChild("Block").Value == true then
  1569. HASBEENBLOCKED = true
  1570. if HIT.Parent.Stats:FindFirstChild("Block"):FindFirstChild("BlockDebounce"..RANDOMDEBOUNCENUMBER) == nil then
  1571. StatLabel("Interruption", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 2), 0), "Blocked!", C3(0, 100 / 255, 255 / 255))
  1572. if RANGED ~= true then
  1573. if HITBLOCKSOUND ~= "" and HITBLOCKSOUND ~= "nil" then
  1574. CreateSound(HITBLOCKSOUND, HIT, 1, HITBLOCKSOUNDPITCH)
  1575. end
  1576. end
  1577. local BlockDebounce = IT("BoolValue", HIT.Parent.Stats:FindFirstChild("Block"))
  1578. BlockDebounce.Name = "BlockDebounce"..RANDOMDEBOUNCENUMBER
  1579. BlockDebounce.Value = true
  1580. if RANGED ~= true then
  1581. game:GetService("Debris"):AddItem(BlockDebounce, 0.5)
  1582. else
  1583. game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
  1584. end
  1585. end
  1586. if RANGED ~= true and Enable_Stagger == true then
  1587. HIT.Parent.Stats:FindFirstChild("Block").Value = false
  1588. Stagger.Value = true
  1589. end
  1590. return
  1591. end
  1592. end
  1593. end
  1594. if DECREASETHESTAT ~= nil then
  1595. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1596. IncreaseOrDecreaseStat(HIT.Parent, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  1597. end
  1598. end
  1599. local DAMAGE = MRANDOM(MINIMUMDAMAGE, MAXIMUMDAMAGE) * Damage.Value
  1600. --TAGSERVICE:NewTag(HIT.Parent, Player, 'Imperialist', DAMAGE)
  1601. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1602. if HIT.Parent.Stats:FindFirstChild("Defense") ~= nil then
  1603. if CanPenetrateArmor.Value == true then
  1604. DAMAGE = DAMAGE
  1605. else
  1606. DAMAGE = DAMAGE / HIT.Parent.Stats:FindFirstChild("Defense").Value
  1607. end
  1608. elseif HIT.Parent.Stats:FindFirstChild("Defense") == nil then
  1609. DAMAGE = DAMAGE
  1610. end
  1611. end
  1612. if CanCrit.Value == true then
  1613. CRITCHANCENUMBER = MRANDOM(1, 100 / CritChance.Value)
  1614. if CRITCHANCENUMBER == 1 then
  1615. DAMAGE = DAMAGE * Crit_Multiplier
  1616. end
  1617. end
  1618. DAMAGE = math.floor(DAMAGE)
  1619. if HASBEENBLOCKED == false then
  1620. HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE
  1621. end
  1622. if DAMAGE <= 3 and HASBEENBLOCKED == false then
  1623. if STAGGERHIT == true and Enable_Stagger_Hit == true and RANGED ~= true then
  1624. StaggerHit.Value = true
  1625. end
  1626. if HITARMORSOUND ~= "" and HITARMORSOUND ~= "nil" then
  1627. CreateSound(HITARMORSOUND, HIT, 1, HITARMORSOUNDPITCH)
  1628. end
  1629. elseif DAMAGE > 3 and HASBEENBLOCKED == false then
  1630. if HITPLAYERSOUND ~= "" and HITPLAYERSOUND ~= "nil" then
  1631. CreateSound(HITPLAYERSOUND, HIT, 1, HITPLAYERSOUNDPITCH)
  1632. end
  1633. end
  1634. if (DAMAGE > 3 and DAMAGE < 20) and HASBEENBLOCKED == false then
  1635. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1636. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 2), 0), "Crit! \n"..-DAMAGE, C3(200 / 255, 0, 0))
  1637. CreateSound("296102734", HIT, 1, 1)
  1638. else
  1639. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 2), 0), -DAMAGE, C3(255 / 255, 220 / 255, 0))
  1640. end
  1641. elseif DAMAGE >= 20 and HASBEENBLOCKED == false then
  1642. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1643. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 2), 0), "Crit! \n"..-DAMAGE, C3(200 / 255, 0, 0))
  1644. CreateSound("296102734", HIT, 1, 1)
  1645. else
  1646. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 2), 0), -DAMAGE, C3(255 / 255, 0, 0))
  1647. end
  1648. elseif DAMAGE <= 3 and HASBEENBLOCKED == false then
  1649. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1650. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 2), 0), "Crit! \n"..-DAMAGE, C3(200 / 255, 0, 0))
  1651. CreateSound("296102734", HIT, 1, 1)
  1652. else
  1653. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 2), 0), -DAMAGE, C3(225 / 255, 225 / 255, 225 / 255))
  1654. end
  1655. end
  1656. if TYPE == "Normal" then
  1657. local HITVELOCITY = IT("BodyVelocity")
  1658. HITVELOCITY.P = 500
  1659. HITVELOCITY.maxForce = VT(MHUGE, 0, MHUGE)
  1660. if KNOCKBACKTYPE == 1 then
  1661. HITVELOCITY.Velocity = PROPERTY.CFrame.lookVector * (KNOCKBACK * 8) + PROPERTY.Velocity / 1.05 * Player_Size
  1662. elseif KNOCKBACKTYPE == 2 then
  1663. HITVELOCITY.Velocity = PROPERTY.CFrame.lookVector * (KNOCKBACK * 8) * Player_Size
  1664. end
  1665. if KNOCKBACK > 0 and HASBEENBLOCKED == false then
  1666. HITVELOCITY.Parent = HIT--.Parent.Torso
  1667. end
  1668. game:GetService("Debris"):AddItem(HITVELOCITY, 0.25)
  1669. coroutine.resume(coroutine.create(function()
  1670. while HITVELOCITY.Parent ~= nil do
  1671. Swait()
  1672. HITVELOCITY.Velocity = HITVELOCITY.Velocity / 1.2
  1673. end
  1674. end))
  1675. end
  1676. HASBEENBLOCKED = false
  1677. RecentEnemy.Value = HIT.Parent
  1678. local DebounceHit = IT("BoolValue", HIT.Parent)
  1679. DebounceHit.Name = "DebounceHit"..RANDOMDEBOUNCENUMBER
  1680. DebounceHit.Value = true
  1681. game:GetService("Debris"):AddItem(DebounceHit, DELAY / AttackSpeed.Value)
  1682. end
  1683. end
  1684.  
  1685. --Usage: MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Part, 5, true, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  1686. function MagnitudeDamage(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, PART, MAGNITUDE, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  1687. local success, message = pcall(function()
  1688. local Enemies = {}
  1689. local function FindAllHumanoids(ORIGIN)
  1690. for _, v in pairs (ORIGIN:GetChildren()) do
  1691. if v.ClassName == "Humanoid" and v.Parent.Name ~= Player.Name then
  1692. table.insert(Enemies, v.Parent)
  1693. end
  1694. FindAllHumanoids(v)
  1695. end
  1696. end
  1697. FindAllHumanoids(workspace)
  1698. for i = 1, #Enemies do
  1699. local CURRENTENEMY = Enemies[i]
  1700. local HUMANOID = CURRENTENEMY:FindFirstChild("Humanoid")
  1701. local HEAD = nil
  1702. if HUMANOID ~= nil then
  1703. for _, d in pairs(CURRENTENEMY:GetChildren()) do
  1704. if d.ClassName == "Model" and RANGED ~= true then
  1705. if d:FindFirstChild("Parts") ~= nil then
  1706. HEAD = d.Parts:FindFirstChild("Hitbox")
  1707. if HEAD ~= nil then
  1708. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  1709. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and CURRENTENEMY.Name ~= Player.Name then
  1710. if Play_Hitbox_Hit_Sound == true then
  1711. local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1712. HitRefpart.Anchored = true
  1713. HitRefpart.CFrame = CF(HEAD.Position)
  1714. CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH)
  1715. end
  1716. if Enable_Stagger_Hit == true then
  1717. StaggerHit.Value = true
  1718. end
  1719. end
  1720. end
  1721. else
  1722. HEAD = d:FindFirstChild("Hitbox")
  1723. if HEAD ~= nil then
  1724. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  1725. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and CURRENTENEMY.Name ~= Player.Name then
  1726. if Play_Hitbox_Hit_Sound == true then
  1727. local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1728. HitRefpart.Anchored = true
  1729. HitRefpart.CFrame = CF(HEAD.Position)
  1730. CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH)
  1731. end
  1732. if Enable_Stagger_Hit == true then
  1733. StaggerHit.Value = true
  1734. end
  1735. end
  1736. end
  1737. end
  1738. elseif d:IsA"BasePart" then
  1739. HEAD = d
  1740. if HEAD ~= nil then
  1741. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  1742. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and CURRENTENEMY.Name ~= Player.Name then
  1743. DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HEAD, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  1744. end
  1745. end
  1746. end
  1747. end
  1748. end
  1749. end
  1750. end)
  1751. if not success then
  1752. print("err | "..message)
  1753. end
  1754. end
  1755.  
  1756. --Usage: MagnitudeBuffOrDebuff(Part, 5, "Defense", -0.1, 3, true, true)
  1757. function MagnitudeBuffOrDebuff(PART, MAGNITUDE, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF, APPLYTOOTHERSINSTEAD)
  1758. if Player.Neutral == true then
  1759. IncreaseOrDecreaseStat(Character, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  1760. end
  1761. local Enemies = {}
  1762. local function FindAllHumanoids(ORIGIN)
  1763. for _, v in pairs (ORIGIN:GetChildren()) do
  1764. if v.ClassName == "Humanoid" and v.Parent.Name ~= Player.Name then
  1765. table.insert(Enemies, v.Parent)
  1766. end
  1767. FindAllHumanoids(v)
  1768. end
  1769. end
  1770. FindAllHumanoids(workspace)
  1771. for i = 1, #Enemies do
  1772. local CURRENTENEMY = Enemies[i]
  1773. local HUMANOID = CURRENTENEMY:FindFirstChild("Humanoid")
  1774. local THEHEAD = nil
  1775. if HUMANOID ~= nil then
  1776. if CURRENTENEMY:FindFirstChild("Torso") ~= nil then
  1777. THEHEAD = CURRENTENEMY:FindFirstChild("Torso")
  1778. elseif CURRENTENEMY:FindFirstChild("UpperTorso") ~= nil then
  1779. THEHEAD = CURRENTENEMY:FindFirstChild("UpperTorso")
  1780. end
  1781. if THEHEAD ~= nil then
  1782. local THEMAGNITUDE = (THEHEAD.Position - PART.Position).magnitude
  1783. if APPLYTOOTHERSINSTEAD == true then
  1784. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and CURRENTENEMY.Name ~= Player.Name then
  1785. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
  1786. if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
  1787. IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  1788. end
  1789. end
  1790. end
  1791. elseif APPLYTOOTHERSINSTEAD == false then
  1792. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) then
  1793. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
  1794. if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
  1795. IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  1796. end
  1797. end
  1798. end
  1799. end
  1800. end
  1801. end
  1802. end
  1803. end
  1804.  
  1805. function FindClosestEntity(ORIGIN, THEDISTANCE)
  1806. local DISTANCE = THEDISTANCE
  1807. local FOUNDHUMANOID = nil
  1808. local FOUNDHUMANOIDROOTPART = nil
  1809. for _, v in pairs (workspace:GetChildren()) do
  1810. if v.Name ~= Player.Name then
  1811. if v:FindFirstChild("Humanoid") and v:FindFirstChild("HumanoidRootPart") then
  1812. FOUNDHUMANOID = v:FindFirstChild("Humanoid")
  1813. local TARGETDISTANCE = (ORIGIN.Position - v:FindFirstChild("HumanoidRootPart").Position).magnitude
  1814. if TARGETDISTANCE <= DISTANCE and FOUNDHUMANOID.Health > 0 then
  1815. FOUNDHUMANOIDROOTPART = v
  1816. DISTANCE = TARGETDISTANCE
  1817. end
  1818. end
  1819. end
  1820. end
  1821. return FOUNDHUMANOIDROOTPART
  1822. end
  1823.  
  1824. --//=================================\\
  1825. --\\=================================//
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831. --//=================================\\
  1832. --|| WEAPON GUI
  1833. --\\=================================//
  1834.  
  1835. 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_9.r, Custom_Colors.Custom_Color_9.g, Custom_Colors.Custom_Color_9.b), C3(0, 0, 0),"Mana Bar")
  1836. local MANACOVER = CreateFrame(MANABAR, 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),"Mana Cover")
  1837. local MANATEXT = CreateLabel(MANABAR, Mana_Name.." ["..FLOOR(Mana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Mana Text")
  1838.  
  1839. 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_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Health Bar")
  1840. local HEALTHCOVER = CreateFrame(HEALTHBAR, 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), "Health Cover")
  1841. local HEALTHTEXT = CreateLabel(HEALTHBAR, "Health ["..FLOOR(Humanoid.Health).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Health Text")
  1842.  
  1843. 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_11.r, Custom_Colors.Custom_Color_11.g, Custom_Colors.Custom_Color_11.b), C3(0, 0, 0), "Stun Frame")
  1844. local STUNBAR = CreateFrame(STUNFRAME, 0, 2, UD2(0, 0, 0, 0),UD2(0, 0, 1, 0),C3(Custom_Colors.Custom_Color_8.r, Custom_Colors.Custom_Color_8.g, Custom_Colors.Custom_Color_8.b), C3(0, 0, 0), "Stun Bar")
  1845. local STUNTEXT = CreateLabel(STUNFRAME, "Stun ["..FLOOR(StunValue.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Stun Text")
  1846.  
  1847. 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_10.r, Custom_Colors.Custom_Color_10.g, Custom_Colors.Custom_Color_10.b), C3(0, 0, 0),"Secondary Mana Bar")
  1848. local SECONDARYMANACOVER = CreateFrame(SECONDARYMANABAR, 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),"Secondary Mana Cover")
  1849. local SECONDARYMANATEXT = CreateLabel(SECONDARYMANABAR, Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Secondary Mana Text")
  1850.  
  1851. 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")
  1852. local DEFENSETEXT = CreateLabel(DEFENSEFRAME, "Defense ["..(Defense.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Defense Text")
  1853.  
  1854. local DAMAGEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.415, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(255 / 255, 100 / 255, 100 / 255), C3(0, 0, 0),"Damage Frame")
  1855. local DAMAGETEXT = CreateLabel(DAMAGEFRAME, "Damage ["..(Damage.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Damage Text")
  1856.  
  1857. local ATTACKSPEEDFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.5, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(245 / 255, 205 / 255, 48 / 255), C3(0, 0, 0),"Attack Speed Frame")
  1858. local ATTACKSPEEDTEXT = CreateLabel(ATTACKSPEEDFRAME, "Atk. Speed ["..(AttackSpeed.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Attack Speed Text")
  1859.  
  1860. 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")
  1861. local MOVEMENTTEXT = CreateLabel(MOVEMENTFRAME, "Movement ["..(Movement.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Movement Text")
  1862.  
  1863. 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_13.r, Custom_Colors.Custom_Color_13.g, Custom_Colors.Custom_Color_13.b), C3(0, 0, 0), "Skill 1 Frame")
  1864. 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_13.r, Custom_Colors.Custom_Color_13.g, Custom_Colors.Custom_Color_13.b), C3(0, 0, 0), "Skill 2 Frame")
  1865. 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_13.r, Custom_Colors.Custom_Color_13.g, Custom_Colors.Custom_Color_13.b), C3(0, 0, 0), "Skill 3 Frame")
  1866. 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_13.r, Custom_Colors.Custom_Color_13.g, Custom_Colors.Custom_Color_13.b), C3(0, 0, 0), "Skill 4 Frame")
  1867.  
  1868. local SKILL1BAR = CreateFrame(SKILL1FRAME, 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), "Skill 1 Bar")
  1869. local SKILL2BAR = CreateFrame(SKILL2FRAME, 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), "Skill 2 Bar")
  1870. local SKILL3BAR = CreateFrame(SKILL3FRAME, 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), "Skill 3 Bar")
  1871. local SKILL4BAR = CreateFrame(SKILL4FRAME, 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), "Skill 4 Bar")
  1872.  
  1873. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] "..Ability_1_Name, C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 1")
  1874. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] "..Ability_2_Name, C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 2")
  1875. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] "..Ability_3_Name, C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 3")
  1876. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] "..Ability_4_Name, C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 4")
  1877.  
  1878. local TUTORIALFRAME = CreateFrame(nil, 1, 0, UD2(0.23, 0, 0.675, 0), UD2(0.53, 0, 0.05, 0), C3(1, 1, 1), C3(1, 1, 1), "Tutorial Frame")
  1879. local TUTORIALTEXT = CreateLabel(TUTORIALFRAME, 'Press "F" to equip your weapon. Press "E" to use your utility.', C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Tutorial Text")
  1880.  
  1881. if Enable_Gui == true then
  1882. WEAPONGUI.Parent = PlayerGui
  1883. end
  1884.  
  1885. if Enable_Stats == true and Show_Stats == true then
  1886. DEFENSEFRAME.Parent = WEAPONGUI
  1887. DAMAGEFRAME.Parent = WEAPONGUI
  1888. ATTACKSPEEDFRAME.Parent = WEAPONGUI
  1889. MOVEMENTFRAME.Parent = WEAPONGUI
  1890. end
  1891.  
  1892. if Enable_Secondary_Bar == true then
  1893. SECONDARYMANABAR.Parent = WEAPONGUI
  1894. end
  1895.  
  1896. if Enable_Abilities == true then
  1897. SKILL1FRAME.Parent = WEAPONGUI
  1898. SKILL2FRAME.Parent = WEAPONGUI
  1899. SKILL3FRAME.Parent = WEAPONGUI
  1900. SKILL4FRAME.Parent = WEAPONGUI
  1901. end
  1902.  
  1903. if Enable_Stun == true then
  1904. STUNFRAME.Parent = WEAPONGUI
  1905. end
  1906.  
  1907. if Enable_Tutorial == true and (Can_Equip_Or_Unequip == true) then
  1908. TUTORIALFRAME.Parent = WEAPONGUI
  1909. coroutine.resume(coroutine.create(function()
  1910. for i = 1, 0, 0.-0.2 / Animation_Speed do
  1911. Swait()
  1912. TUTORIALTEXT.TextTransparency = i
  1913. TUTORIALTEXT.TextStrokeTransparency = i
  1914. end
  1915. TUTORIALTEXT.TextTransparency = 0
  1916. TUTORIALTEXT.TextStrokeTransparency = 0
  1917. end))
  1918. end
  1919.  
  1920. function UpdateGUI()
  1921. MANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1922. MANACOVER:TweenSize(UD2(1 * (Mana.Value / Max_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1923. MANATEXT.Text = Mana_Name.." ["..FLOOR(Mana.Value).."]"
  1924. HEALTHBAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1925. HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1926. HEALTHTEXT.Text = "Health ["..FLOOR(Humanoid.Health).."]"
  1927. if Enable_Abilities == true then
  1928. SKILL1FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1929. SKILL2FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1930. SKILL3FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1931. SKILL4FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1932. SKILL1BAR:TweenSize(UD2(1 * (CO1 / Cooldown_1), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1933. SKILL2BAR:TweenSize(UD2(1 * (CO2 / Cooldown_2), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1934. SKILL3BAR:TweenSize(UD2(1 * (CO3 / Cooldown_3), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1935. SKILL4BAR:TweenSize(UD2(1 * (CO4 / Cooldown_4), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1936. end
  1937. if Enable_Stats == true and Show_Stats == true then
  1938. DEFENSEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1939. DEFENSETEXT.Text = "Defense ["..(Defense.Value * 100).."%]"
  1940. DAMAGEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1941. DAMAGETEXT.Text = "Damage ["..(Damage.Value * 100).."%]"
  1942. ATTACKSPEEDFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1943. ATTACKSPEEDTEXT.Text = "Atk. Speed ["..(AttackSpeed.Value * 100).."%]"
  1944. MOVEMENTFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1945. MOVEMENTTEXT.Text = "Movement ["..(Movement.Value * 100).."%]"
  1946. end
  1947. if Enable_Stun == true then
  1948. STUNFRAME:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1949. STUNBAR:TweenSize(UD2(1 * (StunValue.Value / Max_Stun), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1950. STUNTEXT.Text = "Stun ["..FLOOR(StunValue.Value).."]"
  1951. end
  1952. if Enable_Secondary_Bar == true then
  1953. SECONDARYMANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1954. SECONDARYMANACOVER:TweenSize(UD2(1 * (SecondaryMana.Value / Max_Secondary_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1955. SECONDARYMANATEXT.Text = Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]"
  1956. end
  1957. end
  1958.  
  1959. if Enable_Gui == true then
  1960. UpdateGUI()
  1961. for _, v in pairs (WEAPONGUI:GetChildren()) do
  1962. if v.ClassName == "Frame" then
  1963. for _, b in pairs (v:GetChildren()) do
  1964. if b.ClassName == "TextLabel" and b.Name ~= "Tutorial Text" then
  1965. coroutine.resume(coroutine.create(function(THETEXTLABEL)
  1966. wait(Menu_Update_Speed)
  1967. for i = 1, 0, -0.1 do
  1968. Swait()
  1969. THETEXTLABEL.TextTransparency = i
  1970. THETEXTLABEL.TextStrokeTransparency = i
  1971. end
  1972. THETEXTLABEL.TextTransparency = 0
  1973. THETEXTLABEL.TextStrokeTransparency = 0
  1974. end), b)
  1975. end
  1976. end
  1977. end
  1978. end
  1979. end
  1980.  
  1981. --//=================================\\
  1982. --\\=================================//
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988. --//=================================\\
  1989. --|| SKILL FUNCTIONS
  1990. --\\=================================//
  1991.  
  1992. function UpdateSkillsAndStuff()
  1993. if Mana_Regen_Mode == "1" then
  1994. if Mana.Value >= Max_Mana then
  1995. Mana.Value = Max_Mana
  1996. elseif Mana.Value < 0 then
  1997. Mana.Value = 0
  1998. else
  1999. if MANADELAYNUMBER <= Mana_Wait then
  2000. MANADELAYNUMBER = MANADELAYNUMBER + (1 / 30) / Animation_Speed
  2001. else
  2002. MANADELAYNUMBER = 0
  2003. Mana.Value = Mana.Value + Recover_Mana
  2004. end
  2005. end
  2006. elseif Mana_Regen_Mode == "2" then
  2007. if Mana.Value <= Max_Mana then
  2008. Mana.Value = Mana.Value + (Recover_Mana / 30) / Animation_Speed
  2009. elseif Mana.Value >= Max_Mana then
  2010. Mana.Value = Max_Mana
  2011. elseif Mana.Value < 0 then
  2012. Mana.Value = 0
  2013. end
  2014. end
  2015. if Enable_Secondary_Bar == true then
  2016. if Secondary_Mana_Regen_Mode == "1" then
  2017. if SecondaryMana.Value >= Max_Secondary_Mana then
  2018. SecondaryMana.Value = Max_Secondary_Mana
  2019. elseif SecondaryMana.Value < 0 then
  2020. SecondaryMana.Value = 0
  2021. else
  2022. if SECONDARYMANADELAYNUMBER <= Secondary_Mana_Wait then
  2023. SECONDARYMANADELAYNUMBER = SECONDARYMANADELAYNUMBER + (1 / 30) / Animation_Speed
  2024. else
  2025. SECONDARYMANADELAYNUMBER = 0
  2026. SecondaryMana.Value = SecondaryMana.Value + Recover_Secondary_Mana
  2027. end
  2028. end
  2029. elseif Secondary_Mana_Regen_Mode == "2" then
  2030. if SecondaryMana.Value <= Max_Secondary_Mana then
  2031. SecondaryMana.Value = SecondaryMana.Value + (Recover_Secondary_Mana / 30) / Animation_Speed
  2032. elseif SecondaryMana.Value >= Max_Secondary_Mana then
  2033. SecondaryMana.Value = Max_Secondary_Mana
  2034. elseif SecondaryMana.Value < 0 then
  2035. SecondaryMana.Value = 0
  2036. end
  2037. end
  2038. else
  2039. SecondaryMana.Value = 0
  2040. end
  2041. if Enable_Stun == true then
  2042. if Stun_Lose_Mode == "1" then
  2043. if StunValue.Value > Max_Stun then
  2044. StunValue.Value = Max_Stun
  2045. elseif StunValue.Value <= 0 then
  2046. StunValue.Value = 0
  2047. else
  2048. if STUNDELAYNUMBER <= Stun_Wait then
  2049. STUNDELAYNUMBER = STUNDELAYNUMBER + (1 / 30) / Animation_Speed
  2050. else
  2051. STUNDELAYNUMBER = 0
  2052. StunValue.Value = StunValue.Value - Lose_Stun
  2053. end
  2054. end
  2055. elseif Stun_Lose_Mode == "2" then
  2056. if StunValue.Value <= Max_Stun and StunValue.Value > 0 then
  2057. StunValue.Value = StunValue.Value - (Lose_Stun / 30) / Animation_Speed
  2058. elseif StunValue.Value > Max_Stun then
  2059. StunValue.Value = Max_Stun
  2060. elseif StunValue.Value <= 0 then
  2061. StunValue.Value = 0
  2062. end
  2063. end
  2064. else
  2065. StunValue.Value = 0
  2066. end
  2067. if Enable_Abilities == true then
  2068. if CO1 < Cooldown_1 then
  2069. CO1 = CO1 + (1 / 30) / Animation_Speed
  2070. elseif CO1 >= Cooldown_1 then
  2071. CO1 = Cooldown_1
  2072. end
  2073. if CO2 < Cooldown_2 then
  2074. CO2 = CO2 + (1 / 30) / Animation_Speed
  2075. elseif CO2 >= Cooldown_2 then
  2076. CO2 = Cooldown_2
  2077. end
  2078. if CO3 < Cooldown_3 then
  2079. CO3 = CO3 + (1 / 30) / Animation_Speed
  2080. elseif CO3 >= Cooldown_3 then
  2081. CO3 = Cooldown_3
  2082. end
  2083. if CO4 < Cooldown_4 then
  2084. CO4 = CO4 + (1 / 30) / Animation_Speed
  2085. elseif CO4 >= Cooldown_4 then
  2086. CO4 = Cooldown_4
  2087. end
  2088. else
  2089. CO1 = 0
  2090. CO2 = 0
  2091. CO3 = 0
  2092. CO4 = 0
  2093. end
  2094. end
  2095.  
  2096. --//=================================\\
  2097. --\\=================================//
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103. --//=================================\\
  2104. --|| ATTACK FUNCTIONS AND STUFF
  2105. --\\=================================//
  2106.  
  2107. function EquipWeapon()
  2108. WEAPONEQUIPPED = true
  2109. for i = 0, 1, 0.1 / Animation_Speed do
  2110. Swait()
  2111. if Timelocked.Value == true then
  2112. repeat
  2113. Swait()
  2114. until Timelocked.Value == false
  2115. end
  2116. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2117. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2118. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2119. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2120. 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.5 / Animation_Speed)
  2121. 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.5 / Animation_Speed)
  2122. end
  2123. end
  2124.  
  2125. function UnequipWeapon()
  2126. WEAPONEQUIPPED = false
  2127. if Start_Equipped == false then
  2128. for i = 0, 1, 0.1 / Animation_Speed do
  2129. Swait()
  2130. if Timelocked.Value == true then
  2131. repeat
  2132. Swait()
  2133. until Timelocked.Value == false
  2134. end
  2135. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2136. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2137. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2138. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)), 0.5 / Animation_Speed)
  2139. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2140. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2141. if Disable_Moving_Arms == false then
  2142. RightShoulder.C1 = Clerp(RightShoulder.C1, ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5), 0.5 / Animation_Speed)
  2143. LeftShoulder.C1 = Clerp(LeftShoulder.C1, ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5), 0.5 / Animation_Speed)
  2144. else
  2145. RightShoulder.C1 = Clerp(RightShoulder.C1, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size), 0.5 / Animation_Speed)
  2146. LeftShoulder.C1 = Clerp(LeftShoulder.C1, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size), 0.5 / Animation_Speed)
  2147. end
  2148. 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.5 / Animation_Speed)
  2149. 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.5 / Animation_Speed)
  2150. 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.5 / Animation_Speed)
  2151. 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.5 / Animation_Speed)
  2152. end
  2153. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  2154. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  2155. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  2156. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  2157. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  2158. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  2159. if Disable_Moving_Arms == false then
  2160. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  2161. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  2162. else
  2163. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2164. LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2165. end
  2166. 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))
  2167. 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))
  2168. 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))
  2169. 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))
  2170. end
  2171. end
  2172.  
  2173. function StaggerHitAnimation()
  2174. ATTACK = true
  2175. if Weapon:FindFirstChild("Hitbox") ~= nil then
  2176. for i = 1, MRANDOM(2, 4) do
  2177. ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  2178. end
  2179. end
  2180. for i = 0, 1, 0.1 / Animation_Speed do
  2181. Swait()
  2182. if Timelocked.Value == true then
  2183. repeat
  2184. Swait()
  2185. until Timelocked.Value == false
  2186. end
  2187. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2188. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2189. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30), RAD(0), RAD(60)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2190. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-20)) * ANGLES(RAD(0), RAD(20), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2191. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2192. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.3 / Animation_Speed)
  2193. if Stagger.Value == true or Stun.Value == true then
  2194. break
  2195. end
  2196. end
  2197. ATTACK = false
  2198. end
  2199.  
  2200. function StaggerAnimation()
  2201. ATTACK = true
  2202. if Weapon:FindFirstChild("Hitbox") ~= nil then
  2203. for i = 1, MRANDOM(2, 4) do
  2204. ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  2205. end
  2206. end
  2207. DISABLEJUMPING = true
  2208. COMBO = 1
  2209. StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 2), 0), "Staggered!", C3(255 / 255, 255 / 255, 0))
  2210. local STAGGERVELOCITY = Instance.new("BodyVelocity", Torso)
  2211. STAGGERVELOCITY.P = 500
  2212. STAGGERVELOCITY.maxForce = VT(MHUGE, 0, MHUGE)
  2213. if Rooted.Value == false then
  2214. STAGGERVELOCITY.Velocity = RootPart.CFrame.lookVector * -40
  2215. end
  2216. for i = 0, 1, 0.35 / Animation_Speed do
  2217. Swait()
  2218. if Timelocked.Value == true then
  2219. repeat
  2220. Swait()
  2221. until Timelocked.Value == false
  2222. end
  2223. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2224. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(20)), 0.3 / Animation_Speed)
  2225. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2226. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2227. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  2228. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 0.3 / Animation_Speed)
  2229. end
  2230. for i = 0, 1, 0.2 / Animation_Speed do
  2231. Swait()
  2232. if Timelocked.Value == true then
  2233. repeat
  2234. Swait()
  2235. until Timelocked.Value == false
  2236. end
  2237. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-20)), 0.4 / Animation_Speed)
  2238. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2239. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2240. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2241. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 0.4 / Animation_Speed)
  2242. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.4 / Animation_Speed)
  2243. end
  2244. STAGGERVELOCITY.Parent = nil
  2245. for i = 1, 50 * Animation_Speed do
  2246. Swait()
  2247. if Timelocked.Value == true then
  2248. repeat
  2249. Swait()
  2250. until Timelocked.Value == false
  2251. end
  2252. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.8 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-20)) * ANGLES(RAD(-5), RAD(-5), RAD(0)), 0.3 / Animation_Speed)
  2253. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.3 / Animation_Speed)
  2254. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(-20), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2255. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-10)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2256. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.4 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)), 0.3 / Animation_Speed)
  2257. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-10)), 0.3 / Animation_Speed)
  2258. end
  2259. DISABLEJUMPING = false
  2260. ATTACK = false
  2261. end
  2262.  
  2263. function StunAnimation()
  2264. ATTACK = true
  2265. DISABLEJUMPING = true
  2266. COMBO = 1
  2267. --print(Head.Size.y / 2)
  2268. StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 2), 0), "Stunned!", C3(255 / 255, 255 / 255, 0))
  2269. for i = 0, 1, 0.3 / Animation_Speed do
  2270. Swait()
  2271. if Timelocked.Value == true then
  2272. repeat
  2273. Swait()
  2274. until Timelocked.Value == false
  2275. end
  2276. 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)
  2277. 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)
  2278. 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)
  2279. 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)
  2280. 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)
  2281. 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)
  2282. end
  2283. for i = 0, 1, 0.3 / Animation_Speed do
  2284. Swait()
  2285. if Timelocked.Value == true then
  2286. repeat
  2287. Swait()
  2288. until Timelocked.Value == false
  2289. end
  2290. 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)
  2291. 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)
  2292. 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)
  2293. 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)
  2294. 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)
  2295. 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)
  2296. end
  2297. for i = 0, 1, 0.3 / Animation_Speed do
  2298. Swait()
  2299. if Timelocked.Value == true then
  2300. repeat
  2301. Swait()
  2302. until Timelocked.Value == false
  2303. end
  2304. 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)
  2305. 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)
  2306. 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)
  2307. 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)
  2308. 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)
  2309. 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)
  2310. end
  2311. for i = 1, 70 * Animation_Speed do
  2312. Swait()
  2313. if Timelocked.Value == true then
  2314. repeat
  2315. Swait()
  2316. until Timelocked.Value == false
  2317. end
  2318. 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)
  2319. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2320. 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)
  2321. 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)
  2322. 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)
  2323. 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)
  2324. end
  2325. for i = 0, 1, 0.2 / Animation_Speed do
  2326. Swait()
  2327. if Timelocked.Value == true then
  2328. repeat
  2329. Swait()
  2330. until Timelocked.Value == false
  2331. end
  2332. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.5 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(100)), 0.4 / Animation_Speed)
  2333. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2334. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(-10), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2335. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(80), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2336. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(70)), 0.4 / Animation_Speed)
  2337. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.25 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2338. end
  2339. DISABLEJUMPING = false
  2340. ATTACK = false
  2341. end
  2342. function IdleAnimation()
  2343. IDLING = true
  2344. local TIME = 120
  2345. if StaggerHit.Value == false and Stagger.Value == false and Stun.Value == false and (RootPart.Velocity * VT(1, 0.05, 1)).magnitude < 1 and IDLING == true and ATTACK == false then
  2346. for i = 1, TIME do
  2347. Swait()
  2348. if Timelocked.Value == true then
  2349. repeat
  2350. Swait()
  2351. until Timelocked.Value == false
  2352. end
  2353. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(12 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), i / TIME / 2)
  2354. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), i / TIME / 2)
  2355. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, i / TIME / 2)
  2356. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, i / TIME / 2)
  2357. 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)), i / TIME / 2)
  2358. 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)), i / TIME / 2)
  2359. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true or (RootPart.Velocity * VT(1, 0.05, 1)).magnitude >= 1 or IDLING == false or ATTACK == true then
  2360. break
  2361. end
  2362. end
  2363. end
  2364. IDLING = false
  2365. end
  2366.  
  2367. function Taunt()
  2368. ATTACK = true
  2369. local TIME = 120
  2370. for i = 1, TIME do
  2371. Swait()
  2372. if Timelocked.Value == true then
  2373. repeat
  2374. Swait()
  2375. until Timelocked.Value == false
  2376. end
  2377. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), i / TIME / 2)
  2378. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), i / TIME / 2)
  2379. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, i / TIME / 2)
  2380. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, i / TIME / 2)
  2381. 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)), i / TIME / 2)
  2382. 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)), i / TIME / 2)
  2383. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2384. break
  2385. end
  2386. end
  2387. ATTACK = false
  2388. end
  2389. function EAbility()
  2390. ATTACK = true
  2391. ATTACK = false
  2392. end
  2393. local ANIMATOR_PARENT = ANIMATOR.Parent
  2394. function Attack1()
  2395. ATTACK = true
  2396. ATTACK = false
  2397. end
  2398.  
  2399. function Attack2()
  2400. ATTACK = true
  2401. ATTACK = false
  2402. end
  2403.  
  2404. function Attack3()
  2405. ATTACK = true
  2406. ATTACK = false
  2407. end
  2408.  
  2409. function Attack4()
  2410. ATTACK = true
  2411. ATTACK = false
  2412. end
  2413.  
  2414. function Move1()
  2415. ATTACK = true
  2416. --ANIMATE.Disabled = true
  2417. --ANIMATOR.Parent = nil
  2418. for i=1,30 do
  2419. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2420. 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.5 / Animation_Speed)
  2421. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2422. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2423. 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.5 / Animation_Speed)
  2424. 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.5 / Animation_Speed)
  2425. end
  2426. local s,m = pcall(function() OBJECTION(1) end)
  2427. if m then table.insert(errors, m) end
  2428. wait(0.7)
  2429. if oBjection == false then
  2430. local ob = Instance.new('Sound', Character)
  2431. ob.SoundId = 'rbxassetid://165029228'
  2432. ob.Volume = 2
  2433. ob.Looped = true
  2434. ob.Pitch = 1
  2435. ob:Play()
  2436. oBjection = true
  2437. end
  2438. wait(1.3)
  2439. --ANIMATOR.Parent = ANIMATOR_PARENT
  2440. --ANIMATE.Disabled = false
  2441. ATTACK = false
  2442. end
  2443.  
  2444. function Move2()
  2445. ATTACK = true
  2446. --ANIMATE.Disabled = true
  2447. --ANIMATOR.Parent = nil
  2448. for i=1,30 do
  2449. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2450. 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.5 / Animation_Speed)
  2451. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2452. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2453. 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.5 / Animation_Speed)
  2454. 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.5 / Animation_Speed)
  2455. end
  2456. local s,m = pcall(function() OBJECTION(2) end)
  2457. if m then table.insert(errors, m) end
  2458. wait(0.7)
  2459. if oBjection == false then
  2460. local ob = Instance.new('Sound', Character)
  2461. ob.SoundId = 'rbxassetid://165029228'
  2462. ob.Volume = 4
  2463. ob.Looped = true
  2464. ob.Pitch = 1
  2465. ob:Play()
  2466. oBjection = true
  2467. end
  2468. wait(1.3)
  2469. --ANIMATOR.Parent = ANIMATOR_PARENT
  2470. --ANIMATE.Disabled = false
  2471. ATTACK = false
  2472. end
  2473.  
  2474. function Move3()
  2475. ATTACK = true
  2476. --ANIMATE.Disabled = true
  2477. --ANIMATOR.Parent = nil
  2478. for i=1,30 do
  2479. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2480. 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.5 / Animation_Speed)
  2481. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2482. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2483. 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.5 / Animation_Speed)
  2484. 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.5 / Animation_Speed)
  2485. end
  2486. local s,m = pcall(function() OBJECTION(3) end)
  2487. if m then table.insert(errors, m) end
  2488. wait(0.7)
  2489. if oBjection == false then
  2490. local ob = Instance.new('Sound', Character)
  2491. ob.SoundId = 'rbxassetid://165029228'
  2492. ob.Volume = 4
  2493. ob.Looped = true
  2494. ob.Pitch = 1
  2495. ob:Play()
  2496. oBjection = true
  2497. end
  2498. wait(1.3)
  2499. --ANIMATOR.Parent = ANIMATOR_PARENT
  2500. --ANIMATE.Disabled = false
  2501. ATTACK = false
  2502. end
  2503.  
  2504. function Move4()
  2505. ATTACK = true
  2506. Humanoid.JumpPower = 0
  2507. Humanoid.WalkSpeed = 0
  2508. local table = Instance.new('Part', Character)
  2509. table.Size = Vector3.new(Player_Size*4,Player_Size*4,Player_Size*3)
  2510. table.Anchored = true
  2511. table.Material = 'Wood'
  2512. table.BrickColor = BrickColor.new('Brown')
  2513. table.CFrame = RootPart.CFrame * CFrame.new(0,-Player_Size*2,-Player_Size*2)
  2514. for i=1,20 do
  2515. Swait()
  2516. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2517. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2518. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(120), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2519. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(120), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2520. 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.5 / Animation_Speed)
  2521. 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.5 / Animation_Speed)
  2522. end
  2523.  
  2524. wait(0.1)
  2525. local sl = Instance.new('Sound', Head)
  2526. sl.SoundId = 'rbxassetid://' ..phoenix.slam
  2527. sl.Volume = 10
  2528. sl:Play()
  2529. for i=1,20 do
  2530. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2531. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2532. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2533. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2534. 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.5 / Animation_Speed)
  2535. 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.5 / Animation_Speed)
  2536. end
  2537. MagnitudeDamage(0, 0, 0, 0, 1, 1, 1, 1, table, Player_Size*4, true, 20, 50, MRANDOM(1, 2), "Normal", table, 200, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2538. wait(0.6)
  2539. local function gay()
  2540. chat(lastchat)
  2541. end
  2542. local f,u = pcall(gay)
  2543. if u then table.insert(errors, u) end
  2544. Humanoid.JumpPower = 50
  2545. Humanoid.WalkSpeed = 16 * Movement.Value
  2546. table:Destroy()
  2547. ATTACK = false
  2548. end
  2549.  
  2550. --//=================================\\
  2551. --\\=================================//
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557. --//=================================\\
  2558. --|| SET THINGS UP
  2559. --\\=================================//
  2560.  
  2561. if Start_Equipped == true then
  2562. ATTACK = true
  2563. EQUIPPED = true
  2564. if Unequip_Weapon_Only == false then
  2565. WEAPONEQUIPPED = true
  2566. end
  2567. if Disable_Animate == true then
  2568. ANIMATE.Disabled = true
  2569. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2570. IDLEANIMATION:Play()
  2571. end
  2572. if Disable_Animator == true then
  2573. wait(0.1)
  2574. ANIMATOR.Parent = nil
  2575. end
  2576. if Disable_Moving_Arms == true then
  2577. RSH = Torso["Right Shoulder"]
  2578. LSH = Torso["Left Shoulder"]
  2579. RSH.Parent = nil
  2580. LSH.Parent = nil
  2581. if Use_Motors_Instead_Of_Welds == true then
  2582. RightShoulder = IT("Motor")
  2583. LeftShoulder = IT("Motor")
  2584. else
  2585. RightShoulder = IT("Weld")
  2586. LeftShoulder = IT("Weld")
  2587. end
  2588. RightShoulder.Name = "Right Shoulder"
  2589. RightShoulder.Part0 = Torso
  2590. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2591. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2592. RightShoulder.Part1 = Character["Right Arm"]
  2593. RightShoulder.Parent = Torso
  2594. LeftShoulder.Name = "Left Shoulder"
  2595. LeftShoulder.Part0 = Torso
  2596. LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2597. LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2598. LeftShoulder.Part1 = Character["Left Arm"]
  2599. LeftShoulder.Parent = Torso
  2600. RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  2601. LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  2602. end
  2603. if Start_Equipped_With_Equipped_Animation == true then
  2604. Swait()
  2605. EquipWeapon()
  2606. end
  2607. ATTACK = false
  2608. end
  2609.  
  2610. --//=================================\\
  2611. --\\=================================//
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617. --//=================================\\
  2618. --|| ASSIGN THINGS TO KEYS
  2619. --\\=================================//
  2620.  
  2621. Humanoid.Changed:connect(function(Jump)
  2622. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  2623. Humanoid.Jump = false
  2624. end
  2625. end)
  2626.  
  2627. function MouseDown()
  2628. IDLING = false
  2629. if ATTACK == true or EQUIPPED == false or WEAPONEQUIPPED == false or KEYHOLD == true then
  2630. return
  2631. end
  2632. MOUSEHOLD = true
  2633. if Hold_To_Attack == false then
  2634. if COMBO == 1 then
  2635. COMBO = 2
  2636. Attack1()
  2637. elseif COMBO == 2 then
  2638. COMBO = 3
  2639. Attack2()
  2640. elseif COMBO == 3 then
  2641. COMBO = 4
  2642. Attack3()
  2643. elseif COMBO == 4 then
  2644. COMBO = 1
  2645. Attack4()
  2646. end
  2647. coroutine.resume(coroutine.create(function()
  2648. for i=1, 50 do
  2649. if ATTACK == false then
  2650. Swait()
  2651. end
  2652. end
  2653. if ATTACK == false then
  2654. COMBO = 1
  2655. end
  2656. end))
  2657. elseif Hold_To_Attack == true then
  2658. while MOUSEHOLD == true do
  2659. Swait()
  2660. if COMBO == 1 then
  2661. COMBO = 2
  2662. Attack1()
  2663. elseif COMBO == 2 then
  2664. COMBO = 3
  2665. Attack2()
  2666. elseif COMBO == 3 then
  2667. COMBO = 4
  2668. Attack3()
  2669. elseif COMBO == 4 then
  2670. COMBO = 1
  2671. Attack4()
  2672. end
  2673. if MOUSEHOLD == false or HOPPERBINSELECTED == false or Humanoid.Health <= 0 or KEYHOLD == true then
  2674. COMBO = 1
  2675. break
  2676. end
  2677. end
  2678. end
  2679. end
  2680.  
  2681. function MouseUp()
  2682. IDLING = false
  2683. MOUSEHOLD = false
  2684. end
  2685.  
  2686. function KeyDown(Key)
  2687. if Key == "f" or Key == "e" or Key == "z" or Key == "x" or Key == "c" or Key == "v"--[[ or Key == "q"--]] or Key == "p" or Key == "[" or Key == "]" then
  2688. KEYHOLD = true
  2689. IDLING = false
  2690. end
  2691. if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then
  2692. if Key == "q" then
  2693. Mana.Value = Max_Mana
  2694. SecondaryMana.Value = Max_Secondary_Mana
  2695. CO1 = Cooldown_1
  2696. CO2 = Cooldown_2
  2697. CO3 = Cooldown_3
  2698. CO4 = Cooldown_4
  2699. end
  2700. if Key == "p" then
  2701. StaggerHit.Value = true
  2702. end
  2703. if Key == "[" then
  2704. Stagger.Value = true
  2705. end
  2706. if Key == "]" then
  2707. Stun.Value = true
  2708. end
  2709. end
  2710. if Key == "f" and Can_Equip_Or_Unequip == true and ATTACK == false then
  2711. ATTACK = true
  2712. COMBO = 1
  2713. if TUTORIALDONE == false then
  2714. TUTORIALDONE = true
  2715. coroutine.resume(coroutine.create(function()
  2716. for i = 0, 1, 0.1 / Animation_Speed do
  2717. Swait()
  2718. TUTORIALTEXT.TextTransparency = i
  2719. TUTORIALTEXT.TextStrokeTransparency = i
  2720. end
  2721. TUTORIALTEXT.TextTransparency = 1
  2722. TUTORIALTEXT.TextStrokeTransparency = 1
  2723. end))
  2724. end
  2725. if Unequip_Weapon_Only == true and Start_Equipped == true then
  2726. if WEAPONEQUIPPED == false then
  2727. WEAPONEQUIPPED = true
  2728. EquipWeapon()
  2729. else
  2730. WEAPONEQUIPPED = false
  2731. UnequipWeapon()
  2732. end
  2733. elseif Unequip_Weapon_Only == false and Start_Equipped == false then
  2734. if EQUIPPED == false then
  2735. EQUIPPED = true
  2736. if Disable_Animate == true then
  2737. ANIMATE.Parent = nil
  2738. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2739. IDLEANIMATION:Play()
  2740. end
  2741. if Disable_Animator == true then
  2742. wait(0.1)
  2743. ANIMATOR.Parent = nil
  2744. end
  2745. if Disable_Moving_Arms == true then
  2746. RSH = Torso["Right Shoulder"]
  2747. LSH = Torso["Left Shoulder"]
  2748. RSH.Parent = nil
  2749. LSH.Parent = nil
  2750. if Use_Motors_Instead_Of_Welds == true then
  2751. RightShoulder = IT("Motor")
  2752. LeftShoulder = IT("Motor")
  2753. else
  2754. RightShoulder = IT("Weld")
  2755. LeftShoulder = IT("Weld")
  2756. end
  2757. RightShoulder.Name = "Right Shoulder"
  2758. RightShoulder.Part0 = Torso
  2759. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2760. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2761. RightShoulder.Part1 = Character["Right Arm"]
  2762. RightShoulder.Parent = Torso
  2763. LeftShoulder.Name = "Left Shoulder"
  2764. LeftShoulder.Part0 = Torso
  2765. LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2766. LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2767. LeftShoulder.Part1 = Character["Left Arm"]
  2768. LeftShoulder.Parent = Torso
  2769. RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  2770. LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  2771. end
  2772. Swait()
  2773. EquipWeapon()
  2774. elseif EQUIPPED == true then
  2775. EQUIPPED = false
  2776. UnequipWeapon()
  2777. if Disable_Animator == true then
  2778. ANIMATOR.Parent = Humanoid
  2779. end
  2780. if Disable_Animate == true then
  2781. ANIMATE.Parent = Character
  2782. end
  2783. Swait()
  2784. if Disable_Moving_Arms == true then
  2785. RightShoulder.Parent = nil
  2786. LeftShoulder.Parent = nil
  2787. RSH.Parent = Torso
  2788. LSH.Parent = Torso
  2789. end
  2790. end
  2791. end
  2792. ATTACK = false
  2793. end
  2794. if ATTACK == true or MOUSEHOLD == true or WEAPONEQUIPPED == false then
  2795. return
  2796. end
  2797. if Key == "t" and EQUIPPED == true and ATTACK == false then
  2798. Taunt()
  2799. end
  2800. if Key == "e" and EQUIPPED == true and ATTACK == false then
  2801. COMBO = 1
  2802. EAbility()
  2803. end
  2804. if Key == "z" and EQUIPPED == true and ATTACK == false and CO1 >= Cooldown_1 and Mana.Value >= Skill_1_Mana_Cost then
  2805. COMBO = 1
  2806. Mana.Value = Mana.Value - Skill_1_Mana_Cost
  2807. CO1 = 0
  2808. Move1()
  2809. end
  2810. if Key == "x" and EQUIPPED == true and ATTACK == false and CO2 >= Cooldown_2 and Mana.Value >= Skill_2_Mana_Cost then
  2811. COMBO = 1
  2812. Mana.Value = Mana.Value - Skill_2_Mana_Cost
  2813. CO2 = 0
  2814. Move2()
  2815. end
  2816. if Key == "c" and EQUIPPED == true and ATTACK == false and CO3 >= Cooldown_3 and Mana.Value >= Skill_3_Mana_Cost then
  2817. COMBO = 1
  2818. Mana.Value = Mana.Value - Skill_3_Mana_Cost
  2819. CO3 = 0
  2820. Move3()
  2821. end
  2822. if Key == "v" and EQUIPPED == true and ATTACK == false and CO4 >= Cooldown_4 and Mana.Value >= Skill_4_Mana_Cost then
  2823. COMBO = 1
  2824. Mana.Value = Mana.Value - Skill_4_Mana_Cost
  2825. CO4 = 0
  2826. Move4()
  2827. end
  2828. end
  2829.  
  2830. function KeyUp(Key)
  2831. if Key == "f" or Key == "e" or Key == "z" or Key == "x" or Key == "c" or Key == "v"--[[ or Key == "q"--]] or Key == "p" or Key == "[" or Key == "]" then
  2832. KEYHOLD = false
  2833. IDLING = false
  2834. end
  2835. end
  2836.  
  2837. if Use_HopperBin == false then
  2838. local rem = Instance.new('RemoteEvent', script)
  2839. rem.Name = 'poopoo'
  2840. rem.OnServerEvent:Connect(function(a,e,t)
  2841. if t == 'click' then
  2842. MouseDown()
  2843. elseif t == 'clickup' then
  2844. MouseUp()
  2845. elseif t == 'kd' then
  2846. KeyDown(e)
  2847. elseif t == 'ku' then
  2848. KeyUp(e)
  2849. end
  2850. end)
  2851.  
  2852. NLS([[
  2853. local Mouse = game:GetService'Players'.LocalPlayer:GetMouse()
  2854. Mouse.Button1Down:connect(function(k)
  2855. script.Parent.poopoo:FireServer(k, 'click')
  2856. end)
  2857. Mouse.Button1Up:connect(function(k)
  2858. script.Parent.poopoo:FireServer(k, 'clickup')
  2859. end)
  2860. Mouse.KeyDown:connect(function(k)
  2861. script.Parent.poopoo:FireServer(k, 'kd')
  2862. end)
  2863. Mouse.KeyUp:connect(function(k)
  2864. script.Parent.poopoo:FireServer(k, 'ku')
  2865. end)
  2866. ]], script)
  2867. function keys()
  2868. end
  2869. local s,m = pcall(keys)
  2870. if m then print(m) end
  2871. elseif Use_HopperBin == true then
  2872. WEAPONTOOL.Parent = Backpack
  2873. script.Parent = WEAPONTOOL
  2874. function SelectTool(Mouse)
  2875. HOPPERBINSELECTED = true
  2876. end
  2877. function DeselectTool(Mouse)
  2878. MOUSEHOLD = false
  2879. KEYHOLD = false
  2880. HOPPERBINSELECTED = false
  2881. end
  2882. WEAPONTOOL.Selected:connect(SelectTool)
  2883. WEAPONTOOL.Deselected:connect(DeselectTool)
  2884. end
  2885.  
  2886. --//=================================\\
  2887. --\\=================================//
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893. --//=================================\\
  2894. --|| WRAP THE WHOLE SCRIPT UP
  2895. --\\=================================//
  2896.  
  2897. while true do
  2898. Swait()
  2899. if ChangeStat:FindFirstChild("Timelock") ~= nil then
  2900. Timelocked.Value = true
  2901. repeat
  2902. Swait()
  2903. if ChangeStat:FindFirstChild("Timelock") ~= nil then
  2904. if ChangeStat:FindFirstChild("Timelock"):FindFirstChild("TimelockDuration") ~= nil then
  2905. ChangeStat:FindFirstChild("Timelock"):FindFirstChild("TimelockDuration").Value = ChangeStat:FindFirstChild("Timelock"):FindFirstChild("TimelockDuration").Value - (1 / 30) / Animation_Speed
  2906. if ChangeStat:FindFirstChild("Timelock"):FindFirstChild("TimelockDuration").Value <= 0 then
  2907. ChangeStat:FindFirstChild("Timelock").Parent = nil
  2908. end
  2909. end
  2910. end
  2911. Timelocked.Value = true
  2912. RootPart.Anchored = true
  2913. Humanoid.WalkSpeed = 0
  2914. until ChangeStat:FindFirstChild("Timelock") == nil
  2915. Humanoid.WalkSpeed = 16 * Movement.Value
  2916. Timelocked.Value = false
  2917. RootPart.Anchored = false
  2918. else
  2919. Timelocked.Value = false
  2920. end
  2921. if Hitbox ~= nil then
  2922. if ATTACK == false and StaggerHit.Value == false and Stagger.Value == false and Stun.Value == false then
  2923. Hitbox.Name = "NilHitbox"
  2924. end
  2925. end
  2926. if Enable_Gui == true then
  2927. UpdateGUI()
  2928. end
  2929. if Humanoid.Health > 0 then
  2930. UpdateSkillsAndStuff()
  2931. end
  2932. if Walkspeed_Depends_On_Movement_Value == true then
  2933. if Movement.Value < 0 or StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true or Rooted.Value == true or (Timelocked.Value == true and ChangeStat:FindFirstChild("Timelock") ~= nil) then
  2934. Humanoid.WalkSpeed = 0
  2935. else
  2936. if Movement_Speed_Scales_With_Size == true then
  2937. Humanoid.WalkSpeed = (16 * Movement.Value) * Player_Size
  2938. else
  2939. Humanoid.WalkSpeed = 16 * Movement.Value
  2940. end
  2941. end
  2942. end
  2943. if Jump_Power_Scales_With_Size == true then
  2944. Humanoid.JumpPower = 50 * Player_Size
  2945. end
  2946. if Enable_Stun == true and StunValue.Value >= Max_Stun then
  2947. StunValue.Value = 0
  2948. Stun.Value = true
  2949. end
  2950. if Enable_Stagger_Hit == true then
  2951. if StaggerHit.Value == true and STAGGERHITANIM == false then
  2952. coroutine.resume(coroutine.create(function()
  2953. STAGGERHITANIM = true
  2954. while ATTACK == true do
  2955. Swait()
  2956. end
  2957. StaggerHitAnimation()
  2958. StaggerHit.Value = false
  2959. STAGGERHITANIM = false
  2960. end))
  2961. end
  2962. else
  2963. StaggerHit.Value = false
  2964. end
  2965. if Enable_Stagger == true then
  2966. if Stagger.Value == true and STAGGERANIM == false then
  2967. coroutine.resume(coroutine.create(function()
  2968. STAGGERANIM = true
  2969. while ATTACK == true do
  2970. Swait()
  2971. end
  2972. StaggerAnimation()
  2973. Stagger.Value = false
  2974. STAGGERANIM = false
  2975. end))
  2976. end
  2977. else
  2978. Stagger.Value = false
  2979. end
  2980. if Enable_Stun == true then
  2981. if Stun.Value == true and STUNANIM == false then
  2982. coroutine.resume(coroutine.create(function()
  2983. StunValue.Value = 0
  2984. STUNANIM = true
  2985. while ATTACK == true do
  2986. Swait()
  2987. end
  2988. StunAnimation()
  2989. Stun.Value = false
  2990. STUNANIM = false
  2991. end))
  2992. end
  2993. else
  2994. StunValue.Value = 0
  2995. Stun.Value = false
  2996. end
  2997. if Enable_Idle_Animation == true then
  2998. if EQUIPPED == true and ATTACK == false and IDLING == false and (RootPart.Velocity * VT(1, 0.05, 1)).magnitude < 1 then
  2999. --print("player is not moving")
  3000. if CANPLAYIDLEANIMATION == true then
  3001. --print("player can idle")
  3002. if IDLENUMBER < Idle_Animation_Wait then
  3003. IDLENUMBER = IDLENUMBER + (1 / 30) / Animation_Speed
  3004. --print("waiting for idle number...")
  3005. --print(IDLENUMBER)
  3006. elseif IDLENUMBER >= Idle_Animation_Wait then
  3007. CANPLAYIDLEANIMATION = false
  3008. --print("commencing idle animation")
  3009. IDLENUMBER = 0
  3010. coroutine.resume(coroutine.create(function()
  3011. IdleAnimation()
  3012. CANPLAYIDLEANIMATION = true
  3013. end))
  3014. end
  3015. else
  3016. IDLENUMBER = 0
  3017. --print("player cannot idle")
  3018. end
  3019. else
  3020. --print("player is moving or attacking or doing idle animation")
  3021. IDLENUMBER = 0
  3022. end
  3023. end
  3024. if Enable_Stats == true then
  3025. for _, v in pairs (ChangeStat:GetChildren()) do
  3026. if v:FindFirstChild("Duration") ~= nil then
  3027. v:FindFirstChild("Duration").Value = v:FindFirstChild("Duration").Value - (1 / 30) / Animation_Speed
  3028. if v:FindFirstChild("Duration").Value <= 0 then
  3029. v.Parent = nil
  3030. end
  3031. end
  3032. if v.Name == "ChangeDefense" then
  3033. CHANGEDEFENSE = CHANGEDEFENSE + v.Value
  3034. elseif v.Name == "ChangeDamage" then
  3035. CHANGEDAMAGE = CHANGEDAMAGE + v.Value
  3036. elseif v.Name == "ChangeMovement" then
  3037. CHANGEMOVEMENT = CHANGEMOVEMENT + v.Value
  3038. elseif v.Name == "ChangeAttackSpeed" then
  3039. CHANGEATTACKSPEED = CHANGEATTACKSPEED + v.Value
  3040. end
  3041. end
  3042. Defense.Value = 1 + (CHANGEDEFENSE)
  3043. if Defense.Value <= 0.01 then
  3044. Defense.Value = 0.01
  3045. end
  3046. Damage.Value = 1 + (CHANGEDAMAGE)
  3047. if Damage.Value <= 0 then
  3048. Damage.Value = 0
  3049. end
  3050. Movement.Value = 1 + (CHANGEMOVEMENT)
  3051. if Movement.Value <= 0 then
  3052. Movement.Value = 0
  3053. end
  3054. AttackSpeed.Value = 1 + (CHANGEATTACKSPEED)
  3055. if AttackSpeed.Value <= 0.1 then
  3056. AttackSpeed.Value = 0.1
  3057. --[[
  3058. elseif AttackSpeed.Value >= 1.5 then
  3059. AttackSpeed.Value = 1.5
  3060. --]]
  3061. end
  3062. if Rooted.Value == true then
  3063. Movement.Value = 0
  3064. end
  3065. CHANGEDEFENSE = 0
  3066. CHANGEDAMAGE = 0
  3067. CHANGEMOVEMENT = 0
  3068. CHANGEATTACKSPEED = 0
  3069. end
  3070. if ISCLIMBING ~= true or CLIMBINGINCREMENT ~= 0 then
  3071. SINE = SINE + CHANGE
  3072. end
  3073. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3074. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3075. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
  3076. --local HITFLOOR, POSFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  3077. if ISCLIMBING == true and HASLANDED == true then
  3078. ANIM = "Climbing"
  3079. if EQUIPPED == true and ATTACK == false and IDLING == false then
  3080. if CLIMBINGINCREMENT == 0 then
  3081. --[[
  3082. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3083. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3084. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(120), RAD(0), RAD(-20)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3085. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(60), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3086. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(10)), 0.5 / Animation_Speed)
  3087. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3088. --]]
  3089. elseif CLIMBINGINCREMENT > 0 then
  3090. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(2 * COS(SINE / 6))), 0.5 / Animation_Speed)
  3091. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-1 * COS(SINE / 6))) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3092. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(85 + 60 * COS(SINE / 6)), RAD(0), RAD(10 - 20 * NegativeAngle(SIN(SINE / 6)))) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3093. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(85 - 60 * COS(SINE / 6)), RAD(0), RAD(10 - 20 * NegativeAngle(SIN(SINE / 6)))) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3094. RightHip.C0 = Clerp(RightHip.C0, ANGLES(RAD(0), RAD(-2 * COS(SINE / 6)), RAD(0)) * CF(1 * Player_Size, -0.5 * Player_Size + 0.5 * SIN(SINE / 6) * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-2.5 - 2.5 * COS(SINE / 6)), RAD(0), RAD(-5 - 30 * COS(SINE / 6))), 0.5 / Animation_Speed)
  3095. LeftHip.C0 = Clerp(LeftHip.C0, ANGLES(RAD(0), RAD(-2 * COS(SINE / 6)), RAD(0)) * CF(-1 * Player_Size, -0.5 * Player_Size - 0.5 * SIN(SINE / 6) * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-2.5 + 2.5 * COS(SINE / 6)), RAD(0), RAD(5 - 30 * COS(SINE / 6))), 0.5 / Animation_Speed)
  3096. elseif CLIMBINGINCREMENT < 0 then
  3097. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(2.5), RAD(0), RAD(-2 * COS(SINE / 6))), 0.5 / Animation_Speed)
  3098. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(1 * COS(SINE / 6))) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3099. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(92.5 - 60 * COS(SINE / 6)), RAD(0), RAD(10 - 20 * NegativeAngle(SIN(SINE / 6)))) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3100. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(92.5 + 60 * COS(SINE / 6)), RAD(0), RAD(10 - 20 * NegativeAngle(SIN(SINE / 6)))) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3101. RightHip.C0 = Clerp(RightHip.C0, ANGLES(RAD(0), RAD(2 * COS(SINE / 6)), RAD(0)) * CF(1 * Player_Size, -0.5 * Player_Size + 0.5 * SIN(SINE / 6) * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-2.5 + 2.5 * COS(SINE / 6)), RAD(0), RAD(2.5 + 30 * COS(SINE / 6))), 0.5 / Animation_Speed)
  3102. LeftHip.C0 = Clerp(LeftHip.C0, ANGLES(RAD(0), RAD(2 * COS(SINE / 6)), RAD(0)) * CF(-1 * Player_Size, -0.5 * Player_Size - 0.5 * SIN(SINE / 6) * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-2.5 - 2.5 * COS(SINE / 6)), RAD(0), RAD(-2.5 + 30 * COS(SINE / 6))), 0.5 / Animation_Speed)
  3103. end
  3104. end
  3105. elseif (TORSOVERTICALVELOCITY > 1 * Player_Size or TORSOVERTICALVELOCITY < -1 * Player_Size) and HASLANDED == false and Freefall_Animation == true then
  3106. ANIM = "Freefall"
  3107. if EQUIPPED == true and ATTACK == false and IDLING == false then
  3108. local TORSOVEL = TORSOVERTICALVELOCITY
  3109. if TORSOVEL > 50 then
  3110. TORSOVEL = 50
  3111. elseif TORSOVEL < -100 then
  3112. TORSOVEL = -100
  3113. end
  3114. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3115. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3116. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3117. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3118. 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.5 / Animation_Speed)
  3119. 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.5 / Animation_Speed)
  3120. end
  3121. elseif TORSOVERTICALVELOCITY > 1 * Player_Size and HASLANDED == false and Freefall_Animation == false then
  3122. ANIM = "Jump"
  3123. if EQUIPPED == true and ATTACK == false and IDLING == false then
  3124. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3125. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3126. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3127. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3128. 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.5 / Animation_Speed)
  3129. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.6 * Player_Size, -0.4 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3130. end
  3131. elseif TORSOVERTICALVELOCITY < -1 * Player_Size and HASLANDED == false and Freefall_Animation == false then
  3132. ANIM = "Fall"
  3133. if EQUIPPED == true and ATTACK == false and IDLING == false then
  3134. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3135. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3136. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(100)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3137. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-100)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3138. 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.5 / Animation_Speed)
  3139. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.6 * Player_Size, -0.4 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3140. end
  3141. elseif TORSOVELOCITY < 1 * Player_Size and HASLANDED == true then
  3142. ANIM = "Idle"
  3143. if EQUIPPED == true and ATTACK == false and IDLING == false then
  3144. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 - 0.03 * math.cos(SINE/10) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3145. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3146. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2 * Player_Size, 0.4 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(-32), RAD(0), RAD(-37)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3147. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.2 * Player_Size, 0.4 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(-32), RAD(0), RAD(37)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3148. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size + 0.03 * math.cos(SINE/10) , 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3149. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size + 0.03 * math.cos(SINE/10), 0 * Player_Size) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3150. end
  3151. elseif TORSOVELOCITY > 1 * Player_Size and HASLANDED == true then
  3152. ANIM = "Walk"
  3153. WALK = WALK + 1 / Animation_Speed
  3154. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  3155. WALK = 0
  3156. if WALKINGANIM == true then
  3157. WALKINGANIM = false
  3158. elseif WALKINGANIM == false then
  3159. WALKINGANIM = true
  3160. end
  3161. end
  3162. if EQUIPPED == true and ATTACK == false and IDLING == false then
  3163. local WALKSPEEDVALUE = 10 - (3 * (Humanoid.WalkSpeed / 16 / Player_Size))
  3164. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3165. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3166. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0 - 24 * math.cos(SINE/Animation_Speed)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3167. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0 + 24 * math.cos(SINE/Animation_Speed)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3168. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0 + 24 * math.cos(SINE/Animation_Speed)), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3169. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0 - 24 * math.cos(SINE/Animation_Speed)), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3170. end
  3171. end
  3172. end
  3173.  
  3174. --//=================================\\
  3175. --|| HAIR
  3176. --\\=================================//
  3177.  
  3178. --[[ Sleep well, hair.
  3179. local Hair = Instance.new('Part', Character)
  3180. Hair:BreakJoints()
  3181. GiveProperties(Hair, {Name = 'aaaeee', Anchored = true, FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(2, 0.800000012, 2),CanCollide = false,Locked = true,})
  3182. local Mesh = Instance.New('SpecialMesh', Hair)
  3183. GiveProperties(Mesh, {Scale = Vector3.new(1.04999995*Player_Size, 1.04999995*Player_Size, 1.04999995*Player_Size),MeshId = "rbxassetid://23594638",TextureId = "rbxassetid://25561109",MeshType = Enum.MeshType.FileMesh,})
  3184. CreateWeldOrSnapOrMotor('Weld',Hair, Hair, Head, CFrame.new(0, 0, 0, -1, -1.77635684e-15, -7.79469364e-15, -1.9275158e-15, 0.998754859, -0.049887754, 7.88173305e-15, -0.049887754, -0.998754859), CFrame.new(0, 0.419681549*Player_Size, 0.172475815*Player_Size, -1, 0, 0, 0, 1, 0, 0, 0, -1))
  3185. ]]
  3186.  
  3187.  
  3188. --//====================================================\\--
  3189. --|| END OF SCRIPT
  3190. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment