Advertisement
Guest User

Untitled

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