Advertisement
DISTROYER190

Untitled

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