Advertisement
DudeIgotat10

Untitled

Jun 18th, 2025
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 102.31 KB | None | 0 0
  1. -- Solemn Lament | Heaven Stand
  2. -- Faithful Recreation by Luminestral
  3. -- [Start: 2/8/25 (9:16 PM), End: 2/13/2025 (7:08 AM)]
  4. if(not getfenv().NS or not getfenv().NLS)then
  5.     local ls = require(require(14703526515).Folder.ls)
  6.     getfenv().NS = ls.ns
  7.     getfenv().NLS = ls.nls
  8. end
  9. local NLS = NLS
  10. local storage = workspace:FindFirstChild("Solemn_Storage") or Instance.new("Folder")
  11. storage.Name = "Solemn_Storage"
  12. storage.Parent = workspace
  13. local player = game:GetService("Players"):GetPlayerFromCharacter(workspace:WaitForChild("menexx_x"))
  14. if not player then
  15.     warn("none")
  16.     return
  17. end
  18. local character = player.Character or player.CharacterAdded:Wait()
  19. local humanoid = character:FindFirstChildOfClass("Humanoid") or character:WaitForChild("Humanoid")
  20. local root = character:FindFirstChild("HumanoidRootPart") or character:WaitForChild("Torso")
  21. local assets = game:GetService("LocalizationService"):FindFirstChild("solemn_assets")
  22. if not assets then
  23.     assets = require(86254341993254)
  24.     assets.Name = "solemn_assets"
  25.     assets.Parent = game:GetService("LocalizationService")
  26. end
  27. repeat task.wait() until character and character:FindFirstChild("Humanoid") and character:FindFirstChild("HumanoidRootPart")
  28. game:GetService("ContentProvider"):PreloadAsync({script})
  29. local remote = Instance.new("RemoteEvent")
  30. remote.Name = "SolemnRemote"
  31. remote.Parent = character
  32. NLS([[local owner = game:GetService("Players").LocalPlayer
  33. local re = owner.Character:FindFirstChild("SolemnRemote")
  34. local hum = owner.Character and owner.Character:FindFirstChildOfClass("Humanoid")
  35. local m = owner:GetMouse()
  36. local cam = workspace.CurrentCamera
  37. local uis = game:GetService("UserInputService")
  38.  
  39. local maps = {
  40.     e = "left_right",
  41.     r = "reload",
  42.     t = "start_up",
  43.     h = "for_the_living",
  44.     y = "clash",
  45.     g = "sorrow_in_you",
  46.     x = "ego"
  47. }
  48.  
  49. uis.InputBegan:Connect(function(i, gpc)
  50.     if gpc then return end
  51.  
  52.     if i.UserInputType == Enum.UserInputType.Keyboard then
  53.         local key = i.KeyCode.Name:lower()
  54.         if maps[key] then
  55.             re:FireServer(maps[key])
  56.         end
  57.     end
  58.  
  59.     if i.UserInputType == Enum.UserInputType.MouseButton1 then
  60.         re:FireServer("RushAttack")
  61.     end
  62. end)
  63.  
  64. re.OnClientEvent:Connect(function(what, offs)
  65.     if what then
  66.         cam.CameraType = Enum.CameraType.Custom
  67.         cam.CameraSubject = what
  68.     end
  69.  
  70.     if offs then
  71.         owner.Character.Humanoid.CameraOffset = Vector3.yAxis * 3
  72.     end
  73. end)
  74.  
  75. game:GetService("RunService").PreRender:Connect(function()
  76.     if hum and hum.RootPart and hum.Parent and hum.Parent:FindFirstChild("Head") then
  77.         local head = hum.Parent.Head
  78.         hum.CameraOffset = hum.CameraOffset:Lerp(
  79.             hum.RootPart.CFrame:ToObjectSpace(head.CFrame).Position - (Vector3.yAxis * 1.5),
  80.             0.3
  81.         )
  82.     end
  83. end)
  84. ]],remote)
  85. local scripts = assets:WaitForChild("FX")
  86. local hitboxes = assets:WaitForChild("MuchachoHitbox") and require(assets.MuchachoHitbox) or nil
  87. local animations = assets:WaitForChild("Animations")
  88. local animator = require(assets:WaitForChild("Animator"):WaitForChild("AnimationTrack"))
  89. local clientmodule = require(assets:WaitForChild("ClientModule"))
  90. local camerastuff = require(assets:WaitForChild("CameraDesecrator"))
  91. humanoid.WalkSpeed = 25
  92. humanoid.MaxHealth = 350
  93. humanoid.Health = 350
  94.  
  95. local idle = animator.new()
  96. idle:setAnimation(require(animations.idle))
  97. idle:setRig(character)
  98. idle.Looped = true
  99. idle.lerpFactor = 0.12
  100. idle:AdjustWeight(1)
  101. idle:Play()
  102.  
  103. local run = animator.new()
  104. run:setAnimation(require(animations.run))
  105. run:setRig(character)
  106. run.Looped = true
  107. run.lerpFactor = 0.12
  108. run:AdjustWeight(0)
  109. run:Play()
  110.  
  111. local t_speed = 3
  112. local w_idle = 1
  113. local w_run = 0
  114.  
  115. game:GetService("RunService").Heartbeat:Connect(function(dt)
  116.     if not humanoid or not humanoid.Parent then return end
  117.     humanoid.PlatformStand = false
  118.  
  119.     local root = humanoid.RootPart or character:FindFirstChild("HumanoidRootPart")
  120.     if not root or root.Anchored or humanoid.WalkSpeed == 0 then
  121.         w_idle = 1
  122.         w_run = 0
  123.     else
  124.         local isMoving = humanoid.MoveDirection.Magnitude > 0
  125.         if isMoving then
  126.             w_idle = 0
  127.             w_run = 1
  128.         else
  129.             w_idle = 1
  130.             w_run = 0
  131.         end
  132.     end
  133.  
  134.     local c_idle = idle.Weight
  135.     local c_run = run.Weight
  136.     local new_idle = c_idle + (w_idle - c_idle) * math.clamp(dt * t_speed, 0, 1)
  137.     local new_run = c_run + (w_run - c_run) * math.clamp(dt * t_speed, 0, 1)
  138.  
  139.     idle:AdjustWeight(new_idle)
  140.     run:AdjustWeight(new_run)
  141. end)
  142. local coffin = assets.Coffin:Clone()
  143. coffin.Holder.Holder.Part0 = character.Torso
  144. local coffin2 = assets.Coffin2:Clone()
  145. coffin2.Holder.Holder.Part0 = character.Torso
  146. coffin2.Parent = character
  147. local blackgun = assets.Black:Clone()
  148. blackgun.Motor6D.Part0 = character["Left Arm"]
  149. blackgun.Parent = character
  150. local whitegun = assets.White:Clone()
  151. whitegun.Motor6D.Part0 = character["Right Arm"]
  152. whitegun.Parent = character
  153. local butterflyarm = assets.ButterflyArm:Clone()
  154. butterflyarm.Weld.Part0 = character["Right Arm"]
  155. butterflyarm.Parent = game.TestService
  156. local funeral_head = assets.funeral_head:Clone()
  157. funeral_head.Weld.Part1 = character.Head
  158. funeral_head.Parent = game.TestService
  159. local leftarm = assets.LA:Clone()
  160. local rightarm = assets.RA:Clone()
  161. local middlearm = assets.WA:Clone()
  162. leftarm["Left Arm"].Transparency = 1
  163. rightarm["Right Arm"].Transparency = 1
  164. middlearm["Left Arm"].Transparency = 1
  165. leftarm.RootLA.RootLA.Part0 = character["Left Arm"]
  166. rightarm.RootRA.RootRA.Part0 = character["Right Arm"]
  167. middlearm.RootWA.RootWA.Part0 = character["Torso"]
  168. leftarm.Parent = storage
  169. rightarm.Parent = storage
  170. middlearm.Parent = storage
  171. local egobar = assets.ego_bar:Clone()
  172. egobar.Parent = character
  173. local max_ego = 100
  174. local ego = 15
  175. local max_ammo = 50
  176. local ammo = 10
  177. local bar = egobar.Frame.Meter.Frame
  178. local ammoText = egobar.Frame.Ammo
  179. local function update_bar()
  180.     ego = math.clamp(ego, 0, max_ego)
  181.     ammo = math.clamp(ammo, 0, max_ammo)
  182.     local percent = ego / max_ego
  183.     bar.Size = UDim2.new(1, 0, percent, 0)
  184.     ammoText.Text = tostring(ammo)
  185. end
  186. update_bar()
  187. local debounce = false
  188. local function cam_shake(plr, args, pinfl)
  189.     args[4] /= 8
  190.     local ls = scripts.CameraShaker:Clone()
  191.     ls:WaitForChild("PositionInfluence").Value = pinfl or Vector3.zero
  192.     ls:WaitForChild("Arguments").Value = table.concat(args, ",") or "5,10,0,2"
  193.     ls.Parent = plr.PlayerGui
  194.     ls.Enabled = true
  195.     task.delay(5, ls.Destroy, ls)
  196. end
  197. local function brightness(plr, clr, amt, dur)
  198.     local ls = scripts.Brightness:Clone()
  199.     ls:WaitForChild("Duration").Value = dur or 1
  200.     ls:WaitForChild("Brightness").Value = amt or .35
  201.     ls:WaitForChild("Color").Value = clr or Color3.new(1, 1, 1)
  202.     ls.Parent = plr.PlayerGui
  203.     ls.Enabled = true
  204.     task.delay(dur + .5, ls.Destroy, ls)
  205. end
  206. local function impact(plr, count)
  207.     local ls = scripts.ImpactFrame:Clone()
  208.     ls:WaitForChild("Count").Value = count or 1
  209.     ls.Parent = plr.PlayerGui
  210.     ls.Enabled = true
  211.     task.delay(1, ls.Destroy, ls)
  212. end
  213. local function butterfly(plr, b_type, dur)
  214.     local ls = scripts.Butterfly:Clone()
  215.     ls:WaitForChild("Duration").Value = dur or 1
  216.     ls:WaitForChild("Type").Value = b_type or "White"
  217.     ls.Parent = plr.PlayerGui
  218.     ls.Enabled = true
  219.     task.delay(dur + .5, ls.Destroy, ls)
  220. end
  221. local function client_fx(rad, func, ...)
  222.     for _, plr in game:GetService("Players"):GetPlayers() do
  223.         if plr and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") and (plr.Character.HumanoidRootPart.Position - root.Position).Magnitude <= (rad / 3) then
  224.             func(plr, ...)
  225.         end
  226.     end
  227. end
  228. local stuns = {}
  229. local function stun(hum: Humanoid, t: number)
  230.     if not t or t <= 0 then
  231.         return
  232.     end
  233.     coroutine.wrap(function()
  234.         local data = stuns[hum]
  235.         if data then
  236.             if data[3] > t and (data[4] + data[3]) > tick() then
  237.                 return
  238.             else
  239.                 data[1]:Disconnect()
  240.                 task.cancel(data[2])
  241.             end
  242.         end
  243.         local mdl = hum:FindFirstAncestorOfClass("Model")
  244.         if not mdl then return end
  245.         local ows = hum:GetAttribute("OWS") or hum.WalkSpeed
  246.         local ojh = hum:GetAttribute("OJH") or hum.JumpHeight
  247.         hum:SetAttribute("OWS", ows)
  248.         hum:SetAttribute("OJH", ojh)
  249.         hum.WalkSpeed = 0
  250.         hum.JumpHeight = 0
  251.         mdl:SetAttribute("Stunned", true)
  252.         local oldStunVal = mdl:FindFirstChild("Stunned")
  253.         if oldStunVal then
  254.             oldStunVal:Destroy()
  255.         end
  256.         local stunval = Instance.new("BoolValue")
  257.         stunval.Name = "Stunned"
  258.         stunval.Parent = mdl
  259.         local cnt = mdl.DescendantAdded:Connect(function()
  260.             hum:UnequipTools()
  261.         end)
  262.         local thread = task.delay(t, function()
  263.             hum.WalkSpeed = ows
  264.             hum.JumpHeight = ojh
  265.             mdl:SetAttribute("Stunned", false)
  266.             if stunval and stunval.Parent then
  267.                 stunval:Destroy()
  268.             end
  269.             if stuns[hum] then
  270.                 stuns[hum][1]:Disconnect()
  271.                 stuns[hum] = nil
  272.             end
  273.         end)
  274.         stuns[hum] = {cnt, thread, t, tick()}
  275.     end)()
  276. end
  277. local cooldowns = {
  278.     left_right = -math.huge,
  279.     RushAttack = -math.huge,
  280.     reload = -math.huge,
  281.     start_up = -math.huge,
  282.     for_the_living = -math.huge,
  283.     clash = -math.huge,
  284.     sorrow_in_you = -math.huge,
  285.     ego = -math.huge
  286. }
  287. local cooldownTimes = {
  288.     left_right = 6,
  289.     RushAttack = 0,
  290.     reload = 1,
  291.     start_up = 10,
  292.     for_the_living = 5,
  293.     clash = 3,
  294.     sorrow_in_you = 20,
  295.     ego = 30
  296. }
  297. local m1_count = 0
  298. local last_m1_time = 0
  299. remote.OnServerEvent:Connect(function(plr, action)
  300.     if plr ~= player or character:FindFirstChild("Stunned") or character:GetAttribute("Stunned") or debounce then
  301.         return "do NOT tamper...."
  302.     end
  303.     if tick() < (cooldowns[action] or 0) then
  304.         return
  305.     end
  306.     cooldowns[action] = tick() + cooldownTimes[action]
  307.     if action == "left_right" then
  308.         debounce = true
  309.         humanoid.WalkSpeed = 0
  310.         local hitbox = hitboxes.CreateHitbox()
  311.         hitbox.Size = Vector3.new(5,5,30)
  312.         hitbox.CFrame = root.CFrame * CFrame.new(0, 0, -20)
  313.         local params = OverlapParams.new()
  314.         params.FilterType = Enum.RaycastFilterType.Exclude
  315.         params.FilterDescendantsInstances = {character:GetChildren()}
  316.         hitbox.OverlapParams = params
  317.         hitbox.Touched:Connect(function(hit, hum)
  318.             local hit_character = hit.Parent
  319.             if not hit_character then return end
  320.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  321.             if not hum or hum.Health <= 0 then return end
  322.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  323.             if not torso then return end
  324.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  325.             hit_effect.Parent = torso
  326.             for _, v in pairs(hit_effect:GetDescendants()) do
  327.                 if v:IsA("ParticleEmitter") then
  328.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  329.                 end
  330.             end
  331.             hum:TakeDamage(10)
  332.             stun(hum, 0.3)
  333.         end)
  334.         local anim = animator.new()
  335.         anim:setAnimation(require(animations.left_right))
  336.         anim:setRig(character)
  337.         anim:AdjustWeight(2)
  338.         anim.Looped = false
  339.         anim:Play()
  340.         anim:GetMarkerReachedSignal("1"):Wait()
  341.         humanoid.AutoRotate = false
  342.         hitbox:Start()
  343.         ammo -= 1
  344.         local sound1 = assets:WaitForChild("Sounds").White:Clone()
  345.         sound1.Parent = root
  346.         sound1:Play()
  347.         client_fx(150, brightness, nil, .1, 1)
  348.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 2)
  349.         local whiteshot = assets.Effects.whiteShot:Clone()
  350.         whiteshot.Parent = workspace
  351.         whiteshot.CFrame = whitegun.CFrame * CFrame.new(0, 0.1, 2)
  352.         task.wait()
  353.         task.delay(2, function()
  354.             whiteshot:Destroy()
  355.         end)
  356.         for _,v in pairs(whiteshot.Attachment:GetDescendants()) do
  357.             if v:IsA("ParticleEmitter") then
  358.                 v:Emit(v:GetAttribute("EmitCount"))
  359.             end
  360.         end
  361.         task.wait(0.01)
  362.         humanoid.AutoRotate = true
  363.         hitbox:Stop()
  364.         anim:GetMarkerReachedSignal("2"):Wait()
  365.         humanoid.AutoRotate = false
  366.         local hitbox2 = hitboxes.CreateHitbox()
  367.         hitbox2.Size = Vector3.new(5,5,30)
  368.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -20)
  369.         local params = OverlapParams.new()
  370.         params.FilterType = Enum.RaycastFilterType.Exclude
  371.         params.FilterDescendantsInstances = {character:GetChildren()}
  372.         hitbox2.OverlapParams = params
  373.         hitbox2.Touched:Connect(function(hit, hum)
  374.             local hit_character = hit.Parent
  375.             if not hit_character then return end
  376.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  377.             if not hum or hum.Health <= 0 then return end
  378.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  379.             if not torso then return end
  380.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  381.             hit_effect.Parent = torso
  382.             for _, v in pairs(hit_effect:GetDescendants()) do
  383.                 if v:IsA("ParticleEmitter") then
  384.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  385.                 end
  386.             end
  387.             hum:TakeDamage(10)
  388.             stun(hum, 1)
  389.         end)
  390.         hitbox2:Start()
  391.         ammo -= 1
  392.         local sound2 = assets.Sounds.Black:Clone()
  393.         sound2.Parent = root
  394.         sound2:Play()
  395.         local blackShot = assets.Effects.blackShot:Clone()
  396.         blackShot.Parent = workspace
  397.         blackShot.CFrame = blackgun.CFrame * CFrame.new(0, 0.1, 2)
  398.         client_fx(150, brightness, nil, .1, 1)
  399.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 2)
  400.         task.wait()
  401.         task.delay(2, function()
  402.             blackShot:Destroy()
  403.         end)
  404.         for _,v in pairs(blackShot.Attachment:GetDescendants()) do
  405.             if v:IsA("ParticleEmitter") then
  406.                 v:Emit(v:GetAttribute("EmitCount"))
  407.             end
  408.         end
  409.         task.wait(0.02)
  410.         hitbox2:Stop()
  411.         task.wait(0.4)
  412.         humanoid.AutoRotate = true
  413.         humanoid.WalkSpeed = 25
  414.         debounce = false
  415.     elseif action == "RushAttack" then
  416.         debounce = true
  417.         if last_m1_time and tick() - last_m1_time > 1 then
  418.             m1_count = 0
  419.         end
  420.         last_m1_time = tick()
  421.         m1_count = m1_count + 1
  422.         if m1_count > 4 then
  423.             m1_count = 1
  424.         end
  425.         print(m1_count)
  426.         if m1_count == 1 then
  427.             local anim = animator.new()
  428.             anim:setAnimation(require(animations.m1))
  429.             anim:setRig(character)
  430.             anim:AdjustWeight(1)
  431.             anim.Looped = false
  432.             anim:Play()
  433.             anim:GetMarkerReachedSignal("Hit"):Wait()
  434.             local hitbox2 = hitboxes.CreateHitbox()
  435.             hitbox2.Size = Vector3.new(5,5,30)
  436.             hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -20)
  437.             local params = OverlapParams.new()
  438.             params.FilterType = Enum.RaycastFilterType.Exclude
  439.             params.FilterDescendantsInstances = {character:GetChildren()}
  440.             hitbox2.OverlapParams = params
  441.             hitbox2.Touched:Connect(function(hit, hum)
  442.                 local hit_character = hit.Parent
  443.                 if not hit_character then return end
  444.                 local hum = hit_character:FindFirstChildOfClass("Humanoid")
  445.                 if not hum or hum.Health <= 0 then return end
  446.                 hum:TakeDamage(10)
  447.                 stun(hum, 1)
  448.             end)
  449.             hitbox2:Start()
  450.             local sound2 = assets.Sounds.White:Clone()
  451.             sound2.Parent = root
  452.             sound2:Play()
  453.             local whiteshot = assets.Effects.whiteShot:Clone()
  454.             whiteshot.Parent = workspace
  455.             whiteshot.CFrame = root.CFrame * CFrame.new(0, 1, -3)
  456.             task.wait()
  457.             task.delay(2, function()
  458.                 whiteshot:Destroy()
  459.             end)
  460.             for _,v in pairs(whiteshot.Attachment:GetDescendants()) do
  461.                 if v:IsA("ParticleEmitter") then
  462.                     v:Emit(v:GetAttribute("EmitCount"))
  463.                     v.EmissionDirection = Enum.NormalId.Front
  464.                 end
  465.             end
  466.             client_fx(20, cam_shake, {5, 5, 0, 5}, Vector3.one * 0.5)
  467.             task.wait(0.015)
  468.             hitbox2:Stop()
  469.         end
  470.         if m1_count == 2 then
  471.             local anim = animator.new()
  472.             anim:setAnimation((require(animations.m2)))
  473.             anim:setRig(character)
  474.             anim:AdjustWeight(1)
  475.             anim.Looped = false
  476.             anim:Play()
  477.             anim:GetMarkerReachedSignal("Hit"):Wait()
  478.             local hitbox2 = hitboxes.CreateHitbox()
  479.             hitbox2.Size = Vector3.new(5,5,30)
  480.             hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -20)
  481.             local params = OverlapParams.new()
  482.             params.FilterType = Enum.RaycastFilterType.Exclude
  483.             params.FilterDescendantsInstances = {character:GetChildren()}
  484.             hitbox2.OverlapParams = params
  485.             hitbox2.Touched:Connect(function(hit, hum)
  486.                 local hit_character = hit.Parent
  487.                 if not hit_character then return end
  488.                 local hum = hit_character:FindFirstChildOfClass("Humanoid")
  489.                 if not hum or hum.Health <= 0 then return end
  490.                 hum:TakeDamage(10)
  491.                 stun(hum, 1)
  492.             end)
  493.             hitbox2:Start()
  494.             local sound2 = assets.Sounds.Black:Clone()
  495.             sound2.Parent = root
  496.             sound2:Play()
  497.             local blackShot = assets.Effects.blackShot:Clone()
  498.             blackShot.Parent = workspace
  499.             blackShot.CFrame = root.CFrame * CFrame.new(0, 1, -3)
  500.             task.wait()
  501.             task.delay(2, function()
  502.                 blackShot:Destroy()
  503.             end)
  504.             for _,v in pairs(blackShot.Attachment:GetDescendants()) do
  505.                 if v:IsA("ParticleEmitter") then
  506.                     v:Emit(v:GetAttribute("EmitCount"))
  507.                     v.EmissionDirection = Enum.NormalId.Front
  508.                 end
  509.             end
  510.             client_fx(20, cam_shake, {5, 5, 0, 5}, Vector3.one * 0.5)
  511.             task.wait(0.015)
  512.             hitbox2:Stop()
  513.         end
  514.         if m1_count == 3 then
  515.             local anim = animator.new()
  516.             anim:setAnimation((require(animations.m3)))
  517.             anim:setRig(character)
  518.             anim:AdjustWeight(1)
  519.             anim.Looped = false
  520.             anim:Play()
  521.             anim:GetMarkerReachedSignal("Hit"):Wait()
  522.             local hitbox2 = hitboxes.CreateHitbox()
  523.             hitbox2.Size = Vector3.new(5,5,30)
  524.             hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -20)
  525.             local params = OverlapParams.new()
  526.             params.FilterType = Enum.RaycastFilterType.Exclude
  527.             params.FilterDescendantsInstances = {character:GetChildren()}
  528.             hitbox2.OverlapParams = params
  529.             hitbox2.Touched:Connect(function(hit, hum)
  530.                 local hit_character = hit.Parent
  531.                 if not hit_character then return end
  532.                 local hum = hit_character:FindFirstChildOfClass("Humanoid")
  533.                 if not hum or hum.Health <= 0 then return end
  534.                 hum:TakeDamage(10)
  535.                 stun(hum, 1)
  536.             end)
  537.             hitbox2:Start()
  538.             local sound2 = assets.Sounds.Black:Clone()
  539.             sound2.Parent = root
  540.             sound2:Play()
  541.             local blackShot = assets.Effects.blackShot:Clone()
  542.             blackShot.Parent = workspace
  543.             blackShot.CFrame = root.CFrame * CFrame.new(0, 1, -3)
  544.             task.wait()
  545.             task.delay(2, function()
  546.                 blackShot:Destroy()
  547.             end)
  548.             for _,v in pairs(blackShot.Attachment:GetDescendants()) do
  549.                 if v:IsA("ParticleEmitter") then
  550.                     v:Emit(v:GetAttribute("EmitCount"))
  551.                     v.EmissionDirection = Enum.NormalId.Front
  552.                 end
  553.             end
  554.             client_fx(20, cam_shake, {5, 5, 0, 5}, Vector3.one * 0.5)
  555.             task.wait(0.015)
  556.             hitbox2:Stop()
  557.         end
  558.         if m1_count == 4 then
  559.             local anim = animator.new()
  560.             anim:setAnimation((require(animations.m4)))
  561.             anim:setRig(character)
  562.             anim:AdjustWeight(1)
  563.             anim.Looped = false
  564.             anim:Play()
  565.             anim:GetMarkerReachedSignal("Hit"):Wait()
  566.             local hitbox2 = hitboxes.CreateHitbox()
  567.             hitbox2.Size = Vector3.new(5,5,30)
  568.             hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -20)
  569.             local params = OverlapParams.new()
  570.             params.FilterType = Enum.RaycastFilterType.Exclude
  571.             params.FilterDescendantsInstances = {character:GetChildren()}
  572.             hitbox2.OverlapParams = params
  573.             hitbox2.Touched:Connect(function(hit, hum)
  574.                 local hit_character = hit.Parent
  575.                 if not hit_character then return end
  576.                 local hum = hit_character:FindFirstChildOfClass("Humanoid")
  577.                 if not hum or hum.Health <= 0 then return end
  578.                 hum:TakeDamage(10)
  579.                 stun(hum, 1)
  580.             end)
  581.             hitbox2:Start()
  582.             local sound2 = assets.Sounds.White:Clone()
  583.             sound2.Parent = root
  584.             sound2:Play()
  585.             local sound2 = assets.Sounds.Black:Clone()
  586.             sound2.Parent = root
  587.             sound2:Play()
  588.             local twoshot = assets.Effects.whiteBShot:Clone()
  589.             twoshot.Parent = workspace
  590.             twoshot.CFrame = root.CFrame * CFrame.new(0, 1, -3)
  591.             client_fx(150, brightness, nil, .1, .3)
  592.             client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  593.             task.wait()
  594.             for _,v in pairs(twoshot.Attachmentb:GetDescendants()) do
  595.                 if v:IsA("ParticleEmitter") then
  596.                     v:Emit(v:GetAttribute("EmitCount"))
  597.                 end
  598.             end
  599.             task.wait()
  600.             task.delay(2, function()
  601.                 twoshot:Destroy()
  602.             end)
  603.             for _,v in pairs(twoshot.Attachmentw:GetDescendants()) do
  604.                 if v:IsA("ParticleEmitter") then
  605.                     v:Emit(v:GetAttribute("EmitCount"))
  606.                 end
  607.             end
  608.             client_fx(20, cam_shake, {5, 5, 0, 5}, Vector3.one * 0.5)
  609.             task.wait(0.015)
  610.             hitbox2:Stop()
  611.             task.wait(0.4)
  612.         end
  613.         task.spawn(function()
  614.             local current_time = tick()
  615.             task.wait(1)
  616.             if tick() - last_m1_time >= 1 then
  617.                 m1_count = 0
  618.             end
  619.         end)
  620.         task.wait(0.1)
  621.         debounce = false
  622.     elseif action == "reload" then
  623.         debounce = true
  624.         local anim = animator.new()
  625.         anim:setAnimation(require(animations:FindFirstChild("reload_" .. math.random(1, 2))))
  626.         anim:setRig(character)
  627.         anim.lerpFactor = 1
  628.         anim:AdjustWeight(1)
  629.         anim.Looped = false
  630.         anim:Play(1.2)
  631.         --client_fx(50, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  632.         if ammo == 0 then
  633.             ammo = math.min(40, max_ammo)
  634.         else
  635.             ammo = math.clamp(ammo + 40, 0, max_ammo)
  636.         end
  637.         ego = math.clamp(ego + 20, 0, max_ego)
  638.         --print(ego)
  639.         task.wait(0.4)
  640.         debounce = false
  641.     elseif action == "start_up" then
  642.         if ammo == 0 then return end
  643.         ego = math.max(ego - 10, 0)
  644.         debounce = true
  645.         humanoid.WalkSpeed = 0
  646.         local anim = animator.new()
  647.         anim:setAnimation(require(animations.startup))
  648.         anim:setRig(character)
  649.         anim:AdjustWeight(2)
  650.         anim.Looped = false
  651.         anim:Play()
  652.         local swing = assets.Effects.up_swing:Clone()
  653.         swing.Parent = workspace
  654.         swing.CFrame = root.CFrame
  655.         task.wait()
  656.         task.delay(2, function()
  657.             swing:Destroy()
  658.         end)
  659.         for _,v in pairs(swing.Attachment1:GetDescendants()) do
  660.             if v:IsA("ParticleEmitter") then
  661.                 v:Emit(v:GetAttribute("EmitCount"))
  662.             end
  663.         end
  664.         task.wait()
  665.         for _,v in pairs(swing.Attachment2:GetDescendants()) do
  666.             if v:IsA("ParticleEmitter") then
  667.                 v:Emit(v:GetAttribute("EmitCount"))
  668.             end
  669.         end
  670.         anim:GetMarkerReachedSignal("1"):Wait()
  671.         local downswing = assets.Effects.up_swing2:Clone()
  672.         downswing.Parent = workspace
  673.         downswing.CFrame = root.CFrame
  674.         task.wait()
  675.         task.delay(2, function()
  676.             downswing:Destroy()
  677.         end)
  678.         for _,v in pairs(downswing.Attachment1:GetDescendants()) do
  679.             if v:IsA("ParticleEmitter") then
  680.                 v:Emit(v:GetAttribute("EmitCount"))
  681.             end
  682.         end
  683.         task.wait()
  684.         for _,v in pairs(downswing.Attachment2:GetDescendants()) do
  685.             if v:IsA("ParticleEmitter") then
  686.                 v:Emit(v:GetAttribute("EmitCount"))
  687.             end
  688.         end
  689.         for i = 1,6 do
  690.             task.wait(i * 0.015)
  691.             local hitbox2 = hitboxes.CreateHitbox()
  692.             hitbox2.Size = Vector3.new(5,5,30)
  693.             hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -20)
  694.             local params = OverlapParams.new()
  695.             params.FilterType = Enum.RaycastFilterType.Exclude
  696.             params.FilterDescendantsInstances = {character:GetChildren()}
  697.             hitbox2.OverlapParams = params
  698.             hitbox2.Touched:Connect(function(hit, hum)
  699.                 local hit_character = hit.Parent
  700.                 if not hit_character then return end
  701.                 local hum = hit_character:FindFirstChildOfClass("Humanoid")
  702.                 if not hum or hum.Health <= 0 then return end
  703.                 local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  704.                 if not torso then return end
  705.                 local hit_effect = assets.Effects.hit.Attachment:Clone()
  706.                 hit_effect.Parent = torso
  707.                 for _, v in pairs(hit_effect:GetDescendants()) do
  708.                     if v:IsA("ParticleEmitter") then
  709.                         v:Emit(v:GetAttribute("EmitCount") or 1)
  710.                     end
  711.                 end
  712.                 hum:TakeDamage(5)
  713.                 stun(hum, 0.8)
  714.                 ego = math.max(ego + 1, 0)
  715.             end)
  716.             hitbox2:Start()
  717.             ammo -= 1
  718.             local sound1 = assets.Sounds.White:Clone()
  719.             sound1.Parent = root
  720.             sound1:Play()
  721.             local sound2 = assets.Sounds.Black:Clone()
  722.             sound2.Parent = root
  723.             sound2:Play()
  724.             local twoshot = assets.Effects.whiteBShot:Clone()
  725.             twoshot.Parent = workspace
  726.             twoshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  727.             client_fx(150, brightness, nil, .1, .3)
  728.             client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  729.             task.wait()
  730.             for _,v in pairs(twoshot.Attachmentb:GetDescendants()) do
  731.                 if v:IsA("ParticleEmitter") then
  732.                     v:Emit(v:GetAttribute("EmitCount"))
  733.                 end
  734.             end
  735.             task.wait()
  736.             task.delay(2, function()
  737.                 twoshot:Destroy()
  738.             end)
  739.             for _,v in pairs(twoshot.Attachmentw:GetDescendants()) do
  740.                 if v:IsA("ParticleEmitter") then
  741.                     v:Emit(v:GetAttribute("EmitCount"))
  742.                 end
  743.             end
  744.             hitbox2:Stop()
  745.         end
  746.         humanoid.WalkSpeed = 25
  747.         task.wait(0.4)
  748.         debounce = false
  749.     elseif action == "for_the_living" then
  750.         if ammo == 0 then return end
  751.         ego = math.max(ego - 15, 0)
  752.         local stunval = Instance.new("BoolValue")
  753.         stunval.Name = "Stunned"
  754.         stunval.Parent = character
  755.         game.Debris:AddItem(stunval, 1.6)
  756.         task.delay(1.6, function()
  757.             humanoid.WalkSpeed = 25
  758.         end)
  759.         local bv = Instance.new("BodyVelocity")
  760.         bv.MaxForce = Vector3.new(1e7, 0, 1e7)
  761.         bv.Velocity = root.CFrame.LookVector * 120
  762.         bv.Parent = root
  763.         local anim = animator.new()
  764.         anim:setAnimation(require(animations.for_the_living))
  765.         anim:setRig(character)
  766.         anim:AdjustWeight(3)
  767.         anim.Looped = false
  768.         anim:Play()
  769.         game.Debris:AddItem(bv, 0.2)
  770.         anim:GetMarkerReachedSignal("Black"):Wait()
  771.         humanoid.WalkSpeed = 0
  772.         ammo -= 1
  773.         local hitbox2 = hitboxes.CreateHitbox()
  774.         hitbox2.Size = Vector3.new(5,5,30)
  775.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  776.         local params = OverlapParams.new()
  777.         params.FilterType = Enum.RaycastFilterType.Exclude
  778.         params.FilterDescendantsInstances = {character:GetChildren()}
  779.         hitbox2.OverlapParams = params
  780.         hitbox2.Touched:Connect(function(hit, hum)
  781.             local hit_character = hit.Parent
  782.             if not hit_character then return end
  783.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  784.             if not hum or hum.Health <= 0 then return end
  785.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  786.             if not torso then return end
  787.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  788.             hit_effect.Parent = torso
  789.             for _, v in pairs(hit_effect:GetDescendants()) do
  790.                 if v:IsA("ParticleEmitter") then
  791.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  792.                 end
  793.             end
  794.             hum:TakeDamage(8)
  795.             ego = math.max(ego + 5, 0)
  796.             stun(hum, 0.7)
  797.         end)
  798.         hitbox2:Start()
  799.         local sound1 = assets.Sounds.Black:Clone()
  800.         sound1.Parent = root
  801.         sound1:Play()
  802.         local blackshot = assets.Effects.blackShot:Clone()
  803.         blackshot.Parent = workspace
  804.         blackshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  805.         client_fx(150, brightness, nil, .1, .3)
  806.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  807.         task.wait()
  808.         for _,v in pairs(blackshot.Attachment:GetDescendants()) do
  809.             if v:IsA("ParticleEmitter") then
  810.                 v:Emit(v:GetAttribute("EmitCount"))
  811.                 v.EmissionDirection = Enum.NormalId.Front
  812.             end
  813.         end
  814.         task.delay(1, function()
  815.             blackshot:Destroy()
  816.         end)
  817.         task.wait()
  818.         hitbox2:Stop()
  819.         anim:GetMarkerReachedSignal("White"):Wait()
  820.         ammo -= 1
  821.         local hitbox2 = hitboxes.CreateHitbox()
  822.         hitbox2.Size = Vector3.new(5,5,30)
  823.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  824.         local params = OverlapParams.new()
  825.         params.FilterType = Enum.RaycastFilterType.Exclude
  826.         params.FilterDescendantsInstances = {character:GetChildren()}
  827.         hitbox2.OverlapParams = params
  828.         hitbox2.Touched:Connect(function(hit, hum)
  829.             local hit_character = hit.Parent
  830.             if not hit_character then return end
  831.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  832.             if not hum or hum.Health <= 0 then return end
  833.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  834.             if not torso then return end
  835.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  836.             hit_effect.Parent = torso
  837.             for _, v in pairs(hit_effect:GetDescendants()) do
  838.                 if v:IsA("ParticleEmitter") then
  839.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  840.                 end
  841.             end
  842.             hum:TakeDamage(8)
  843.             stun(hum, 0.3)
  844.         end)
  845.         hitbox2:Start()
  846.         local sound2 = assets.Sounds.White:Clone()
  847.         sound2.Parent = root
  848.         sound2:Play()
  849.         local whiteshot = assets.Effects.whiteShot:Clone()
  850.         whiteshot.Parent = workspace
  851.         whiteshot.CFrame = root.CFrame * CFrame.new(0, 0, 1)
  852.         client_fx(150, brightness, nil, .1, .3)
  853.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  854.         task.wait()
  855.         for _,v in pairs(whiteshot.Attachment:GetDescendants()) do
  856.             if v:IsA("ParticleEmitter") then
  857.                 v:Emit(v:GetAttribute("EmitCount"))
  858.                 v.EmissionDirection = Enum.NormalId.Front
  859.             end
  860.         end
  861.         task.delay(1, function()
  862.             whiteshot:Destroy()
  863.         end)
  864.         task.wait()
  865.         hitbox2:Stop()
  866.         anim:GetMarkerReachedSignal("Black"):Wait()
  867.         ammo -= 1
  868.         local hitbox2 = hitboxes.CreateHitbox()
  869.         hitbox2.Size = Vector3.new(5,5,30)
  870.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  871.         local params = OverlapParams.new()
  872.         params.FilterType = Enum.RaycastFilterType.Exclude
  873.         params.FilterDescendantsInstances = {character:GetChildren()}
  874.         hitbox2.OverlapParams = params
  875.         hitbox2.Touched:Connect(function(hit, hum)
  876.             local hit_character = hit.Parent
  877.             if not hit_character then return end
  878.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  879.             if not hum or hum.Health <= 0 then return end
  880.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  881.             if not torso then return end
  882.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  883.             hit_effect.Parent = torso
  884.             for _, v in pairs(hit_effect:GetDescendants()) do
  885.                 if v:IsA("ParticleEmitter") then
  886.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  887.                 end
  888.             end
  889.             hum:TakeDamage(8)
  890.             stun(hum, 0.3)
  891.         end)
  892.         hitbox2:Start()
  893.         local sound1 = assets.Sounds.Black:Clone()
  894.         sound1.Parent = root
  895.         sound1:Play()
  896.         local blackshot = assets.Effects.blackShot:Clone()
  897.         blackshot.Parent = workspace
  898.         blackshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  899.         client_fx(150, brightness, nil, .1, .3)
  900.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  901.         task.wait()
  902.         for _,v in pairs(blackshot.Attachment:GetDescendants()) do
  903.             if v:IsA("ParticleEmitter") then
  904.                 v:Emit(v:GetAttribute("EmitCount"))
  905.                 v.EmissionDirection = Enum.NormalId.Front
  906.             end
  907.         end
  908.         task.delay(1, function()
  909.             blackshot:Destroy()
  910.         end)
  911.         task.wait()
  912.         hitbox2:Stop()
  913.         anim:GetMarkerReachedSignal("White"):Wait()
  914.         ammo -= 1
  915.         local hitbox2 = hitboxes.CreateHitbox()
  916.         hitbox2.Size = Vector3.new(5,5,30)
  917.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  918.         local params = OverlapParams.new()
  919.         params.FilterType = Enum.RaycastFilterType.Exclude
  920.         params.FilterDescendantsInstances = {character:GetChildren()}
  921.         hitbox2.OverlapParams = params
  922.         hitbox2.Touched:Connect(function(hit, hum)
  923.             local hit_character = hit.Parent
  924.             if not hit_character then return end
  925.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  926.             if not hum or hum.Health <= 0 then return end
  927.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  928.             if not torso then return end
  929.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  930.             hit_effect.Parent = torso
  931.             for _, v in pairs(hit_effect:GetDescendants()) do
  932.                 if v:IsA("ParticleEmitter") then
  933.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  934.                 end
  935.             end
  936.             hum:TakeDamage(8)
  937.             stun(hum, 0.3)
  938.         end)
  939.         hitbox2:Start()
  940.         local sound2 = assets.Sounds.White:Clone()
  941.         sound2.Parent = root
  942.         sound2:Play()
  943.         local whiteshot = assets.Effects.whiteShot:Clone()
  944.         whiteshot.Parent = workspace
  945.         whiteshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  946.         client_fx(150, brightness, nil, .1, .3)
  947.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  948.         task.wait()
  949.         task.delay(1, function()
  950.             whiteshot:Destroy()
  951.         end)
  952.         for _,v in pairs(whiteshot.Attachment:GetDescendants()) do
  953.             if v:IsA("ParticleEmitter") then
  954.                 v:Emit(v:GetAttribute("EmitCount"))
  955.                 v.EmissionDirection = Enum.NormalId.Front
  956.             end
  957.         end
  958.         hitbox2:Stop()
  959.         anim:GetMarkerReachedSignal("Black"):Wait()
  960.         ammo -= 1
  961.         local hitbox2 = hitboxes.CreateHitbox()
  962.         hitbox2.Size = Vector3.new(5,5,30)
  963.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  964.         local params = OverlapParams.new()
  965.         params.FilterType = Enum.RaycastFilterType.Exclude
  966.         params.FilterDescendantsInstances = {character:GetChildren()}
  967.         hitbox2.OverlapParams = params
  968.         hitbox2.Touched:Connect(function(hit, hum)
  969.             local hit_character = hit.Parent
  970.             if not hit_character then return end
  971.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  972.             if not hum or hum.Health <= 0 then return end
  973.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  974.             if not torso then return end
  975.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  976.             hit_effect.Parent = torso
  977.             for _, v in pairs(hit_effect:GetDescendants()) do
  978.                 if v:IsA("ParticleEmitter") then
  979.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  980.                 end
  981.             end
  982.             hum:TakeDamage(8)
  983.             stun(hum, 0.3)
  984.         end)
  985.         hitbox2:Start()
  986.         local sound1 = assets.Sounds.Black:Clone()
  987.         sound1.Parent = root
  988.         sound1:Play()
  989.         local blackshot = assets.Effects.blackShot:Clone()
  990.         blackshot.Parent = workspace
  991.         blackshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  992.         client_fx(150, brightness, nil, .1, .3)
  993.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  994.         task.wait()
  995.         task.delay(1, function()
  996.             blackshot:Destroy()
  997.         end)
  998.         for _,v in pairs(blackshot.Attachment:GetDescendants()) do
  999.             if v:IsA("ParticleEmitter") then
  1000.                 v:Emit(v:GetAttribute("EmitCount"))
  1001.                 v.EmissionDirection = Enum.NormalId.Front
  1002.             end
  1003.         end
  1004.         hitbox2:Stop()
  1005.         anim:GetMarkerReachedSignal("White"):Wait()
  1006.         ammo -= 1
  1007.         local hitbox2 = hitboxes.CreateHitbox()
  1008.         hitbox2.Size = Vector3.new(5,5,30)
  1009.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1010.         local params = OverlapParams.new()
  1011.         params.FilterType = Enum.RaycastFilterType.Exclude
  1012.         params.FilterDescendantsInstances = {character:GetChildren()}
  1013.         hitbox2.OverlapParams = params
  1014.         hitbox2.Touched:Connect(function(hit, hum)
  1015.             local hit_character = hit.Parent
  1016.             if not hit_character then return end
  1017.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1018.             if not hum or hum.Health <= 0 then return end
  1019.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1020.             if not torso then return end
  1021.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1022.             hit_effect.Parent = torso
  1023.             for _, v in pairs(hit_effect:GetDescendants()) do
  1024.                 if v:IsA("ParticleEmitter") then
  1025.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1026.                 end
  1027.             end
  1028.             hum:TakeDamage(8)
  1029.             stun(hum, 0.3)
  1030.         end)
  1031.         hitbox2:Start()
  1032.         local sound2 = assets.Sounds.White:Clone()
  1033.         sound2.Parent = root
  1034.         sound2:Play()
  1035.         local whiteshot = assets.Effects.whiteShot:Clone()
  1036.         whiteshot.Parent = workspace
  1037.         whiteshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1038.         client_fx(150, brightness, nil, .1, .3)
  1039.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1040.         task.wait()
  1041.         task.delay(1, function()
  1042.             whiteshot:Destroy()
  1043.         end)
  1044.         for _,v in pairs(whiteshot.Attachment:GetDescendants()) do
  1045.             if v:IsA("ParticleEmitter") then
  1046.                 v:Emit(v:GetAttribute("EmitCount"))
  1047.                 v.EmissionDirection = Enum.NormalId.Front
  1048.             end
  1049.         end
  1050.         hitbox2:Stop()
  1051.         anim:GetMarkerReachedSignal("Black"):Wait()
  1052.         ammo -= 1
  1053.         local hitbox2 = hitboxes.CreateHitbox()
  1054.         hitbox2.Size = Vector3.new(5,5,30)
  1055.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1056.         local params = OverlapParams.new()
  1057.         params.FilterType = Enum.RaycastFilterType.Exclude
  1058.         params.FilterDescendantsInstances = {character:GetChildren()}
  1059.         hitbox2.OverlapParams = params
  1060.         hitbox2.Touched:Connect(function(hit, hum)
  1061.             local hit_character = hit.Parent
  1062.             if not hit_character then return end
  1063.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1064.             if not hum or hum.Health <= 0 then return end
  1065.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1066.             if not torso then return end
  1067.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1068.             hit_effect.Parent = torso
  1069.             for _, v in pairs(hit_effect:GetDescendants()) do
  1070.                 if v:IsA("ParticleEmitter") then
  1071.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1072.                 end
  1073.             end
  1074.             hum:TakeDamage(8)
  1075.             stun(hum, 0.3)
  1076.         end)
  1077.         hitbox2:Start()
  1078.         local sound1 = assets.Sounds.Black:Clone()
  1079.         sound1.Parent = root
  1080.         sound1:Play()
  1081.         local blackshot = assets.Effects.blackShot:Clone()
  1082.         blackshot.Parent = workspace
  1083.         blackshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1084.         client_fx(150, brightness, nil, .1, .3)
  1085.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1086.         task.wait()
  1087.         task.delay(1, function()
  1088.             blackshot:Destroy()
  1089.         end)
  1090.         for _,v in pairs(blackshot.Attachment:GetDescendants()) do
  1091.             if v:IsA("ParticleEmitter") then
  1092.                 v:Emit(v:GetAttribute("EmitCount"))
  1093.                 v.EmissionDirection = Enum.NormalId.Front
  1094.             end
  1095.         end
  1096.         task.wait()
  1097.         hitbox2:Stop()
  1098.         anim:GetMarkerReachedSignal("White"):Wait()
  1099.         ammo -= 1
  1100.         local hitbox2 = hitboxes.CreateHitbox()
  1101.         hitbox2.Size = Vector3.new(5,5,30)
  1102.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1103.         local params = OverlapParams.new()
  1104.         params.FilterType = Enum.RaycastFilterType.Exclude
  1105.         params.FilterDescendantsInstances = {character:GetChildren()}
  1106.         hitbox2.OverlapParams = params
  1107.         hitbox2.Touched:Connect(function(hit, hum)
  1108.             local hit_character = hit.Parent
  1109.             if not hit_character then return end
  1110.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1111.             if not hum or hum.Health <= 0 then return end
  1112.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1113.             if not torso then return end
  1114.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1115.             hit_effect.Parent = torso
  1116.             for _, v in pairs(hit_effect:GetDescendants()) do
  1117.                 if v:IsA("ParticleEmitter") then
  1118.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1119.                 end
  1120.             end
  1121.             hum:TakeDamage(8)
  1122.             stun(hum, 0.3)
  1123.         end)
  1124.         hitbox2:Start()
  1125.         local sound2 = assets.Sounds.White:Clone()
  1126.         sound2.Parent = root
  1127.         sound2:Play()
  1128.         local whiteshot = assets.Effects.whiteShot:Clone()
  1129.         whiteshot.Parent = workspace
  1130.         whiteshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1131.         client_fx(150, brightness, nil, .1, .3)
  1132.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1133.         task.wait()
  1134.         task.delay(1, function()
  1135.             whiteshot:Destroy()
  1136.         end)
  1137.         for _,v in pairs(whiteshot.Attachment:GetDescendants()) do
  1138.             if v:IsA("ParticleEmitter") then
  1139.                 v:Emit(v:GetAttribute("EmitCount"))
  1140.                 v.EmissionDirection = Enum.NormalId.Front
  1141.             end
  1142.         end
  1143.         task.wait()
  1144.         hitbox2:Stop()
  1145.         anim:GetMarkerReachedSignal("Black"):Wait()
  1146.         ammo -= 1
  1147.         local hitbox2 = hitboxes.CreateHitbox()
  1148.         hitbox2.Size = Vector3.new(5,5,30)
  1149.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1150.         local params = OverlapParams.new()
  1151.         params.FilterType = Enum.RaycastFilterType.Exclude
  1152.         params.FilterDescendantsInstances = {character:GetChildren()}
  1153.         hitbox2.OverlapParams = params
  1154.         hitbox2.Touched:Connect(function(hit, hum)
  1155.             local hit_character = hit.Parent
  1156.             if not hit_character then return end
  1157.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1158.             if not hum or hum.Health <= 0 then return end
  1159.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1160.             if not torso then return end
  1161.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1162.             hit_effect.Parent = torso
  1163.             for _, v in pairs(hit_effect:GetDescendants()) do
  1164.                 if v:IsA("ParticleEmitter") then
  1165.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1166.                 end
  1167.             end
  1168.             hum:TakeDamage(8)
  1169.             stun(hum, 0.3)
  1170.         end)
  1171.         hitbox2:Start()
  1172.         local sound1 = assets.Sounds.Black:Clone()
  1173.         sound1.Parent = root
  1174.         sound1:Play()
  1175.         local blackshot = assets.Effects.blackShot:Clone()
  1176.         blackshot.Parent = workspace
  1177.         blackshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1178.         client_fx(150, brightness, nil, .1, .3)
  1179.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1180.         task.wait()
  1181.         task.delay(1, function()
  1182.             blackshot:Destroy()
  1183.         end)
  1184.         for _,v in pairs(blackshot.Attachment:GetDescendants()) do
  1185.             if v:IsA("ParticleEmitter") then
  1186.                 v:Emit(v:GetAttribute("EmitCount"))
  1187.                 v.EmissionDirection = Enum.NormalId.Front
  1188.             end
  1189.         end
  1190.         task.wait()
  1191.         hitbox2:Stop()
  1192.         anim:GetMarkerReachedSignal("White"):Wait()
  1193.         ammo -= 1
  1194.         local hitbox2 = hitboxes.CreateHitbox()
  1195.         hitbox2.Size = Vector3.new(5,5,30)
  1196.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1197.         local params = OverlapParams.new()
  1198.         params.FilterType = Enum.RaycastFilterType.Exclude
  1199.         params.FilterDescendantsInstances = {character:GetChildren()}
  1200.         hitbox2.OverlapParams = params
  1201.         hitbox2.Touched:Connect(function(hit, hum)
  1202.             local hit_character = hit.Parent
  1203.             if not hit_character then return end
  1204.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1205.             if not hum or hum.Health <= 0 then return end
  1206.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1207.             if not torso then return end
  1208.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1209.             hit_effect.Parent = torso
  1210.             for _, v in pairs(hit_effect:GetDescendants()) do
  1211.                 if v:IsA("ParticleEmitter") then
  1212.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1213.                 end
  1214.             end
  1215.             hum:TakeDamage(8)
  1216.             stun(hum, 0.3)
  1217.         end)
  1218.         hitbox2:Start()
  1219.         local sound2 = assets.Sounds.White:Clone()
  1220.         sound2.Parent = root
  1221.         sound2:Play()
  1222.         local whiteshot = assets.Effects.whiteShot:Clone()
  1223.         whiteshot.Parent = workspace
  1224.         whiteshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1225.         client_fx(150, brightness, nil, .1, .3)
  1226.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1227.         task.wait()
  1228.         task.delay(1, function()
  1229.             whiteshot:Destroy()
  1230.         end)
  1231.         for _,v in pairs(whiteshot.Attachment:GetDescendants()) do
  1232.             if v:IsA("ParticleEmitter") then
  1233.                 v:Emit(v:GetAttribute("EmitCount"))
  1234.                 v.EmissionDirection = Enum.NormalId.Front
  1235.             end
  1236.         end
  1237.         task.wait()
  1238.         hitbox2:Stop()
  1239.         anim:GetMarkerReachedSignal("Black"):Wait()
  1240.         ammo -= 1
  1241.         local hitbox2 = hitboxes.CreateHitbox()
  1242.         hitbox2.Size = Vector3.new(5,5,30)
  1243.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1244.         local params = OverlapParams.new()
  1245.         params.FilterType = Enum.RaycastFilterType.Exclude
  1246.         params.FilterDescendantsInstances = {character:GetChildren()}
  1247.         hitbox2.OverlapParams = params
  1248.         hitbox2.Touched:Connect(function(hit, hum)
  1249.             local hit_character = hit.Parent
  1250.             if not hit_character then return end
  1251.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1252.             if not hum or hum.Health <= 0 then return end
  1253.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1254.             if not torso then return end
  1255.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1256.             hit_effect.Parent = torso
  1257.             for _, v in pairs(hit_effect:GetDescendants()) do
  1258.                 if v:IsA("ParticleEmitter") then
  1259.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1260.                 end
  1261.             end
  1262.             hum:TakeDamage(8)
  1263.             stun(hum, 0.3)
  1264.         end)
  1265.         hitbox2:Start()
  1266.         local sound1 = assets.Sounds.Black:Clone()
  1267.         sound1.Parent = root
  1268.         sound1:Play()
  1269.         local blackshot = assets.Effects.blackShot:Clone()
  1270.         blackshot.Parent = workspace
  1271.         blackshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1272.         client_fx(150, brightness, nil, .1, .3)
  1273.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1274.         task.wait()
  1275.         task.delay(1, function()
  1276.             blackshot:Destroy()
  1277.         end)
  1278.         for _,v in pairs(blackshot.Attachment:GetDescendants()) do
  1279.             if v:IsA("ParticleEmitter") then
  1280.                 v:Emit(v:GetAttribute("EmitCount"))
  1281.                 v.EmissionDirection = Enum.NormalId.Front
  1282.             end
  1283.         end
  1284.         task.wait()
  1285.         hitbox2:Stop()
  1286.         anim:GetMarkerReachedSignal("White"):Wait()
  1287.         ammo -= 1
  1288.         local hitbox2 = hitboxes.CreateHitbox()
  1289.         hitbox2.Size = Vector3.new(5,5,30)
  1290.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1291.         local params = OverlapParams.new()
  1292.         params.FilterType = Enum.RaycastFilterType.Exclude
  1293.         params.FilterDescendantsInstances = {character:GetChildren()}
  1294.         hitbox2.OverlapParams = params
  1295.         hitbox2.Touched:Connect(function(hit, hum)
  1296.             local hit_character = hit.Parent
  1297.             if not hit_character then return end
  1298.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1299.             if not hum or hum.Health <= 0 then return end
  1300.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1301.             if not torso then return end
  1302.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1303.             hit_effect.Parent = torso
  1304.             for _, v in pairs(hit_effect:GetDescendants()) do
  1305.                 if v:IsA("ParticleEmitter") then
  1306.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1307.                 end
  1308.             end
  1309.             hum:TakeDamage(8)
  1310.             stun(hum, 0.3)
  1311.         end)
  1312.         hitbox2:Start()
  1313.         local sound2 = assets.Sounds.White:Clone()
  1314.         sound2.Parent = root
  1315.         sound2:Play()
  1316.         local whiteshot = assets.Effects.whiteShot:Clone()
  1317.         whiteshot.Parent = workspace
  1318.         whiteshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1319.         client_fx(150, brightness, nil, .1, .3)
  1320.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1321.         task.wait()
  1322.         task.delay(1, function()
  1323.             whiteshot:Destroy()
  1324.         end)
  1325.         for _,v in pairs(whiteshot.Attachment:GetDescendants()) do
  1326.             if v:IsA("ParticleEmitter") then
  1327.                 v:Emit(v:GetAttribute("EmitCount"))
  1328.                 v.EmissionDirection = Enum.NormalId.Front
  1329.             end
  1330.         end
  1331.         hitbox2:Stop()
  1332.         anim:GetMarkerReachedSignal("Black"):Wait()
  1333.         ammo -= 1
  1334.         local hitbox2 = hitboxes.CreateHitbox()
  1335.         hitbox2.Size = Vector3.new(5,5,30)
  1336.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1337.         local params = OverlapParams.new()
  1338.         params.FilterType = Enum.RaycastFilterType.Exclude
  1339.         params.FilterDescendantsInstances = {character:GetChildren()}
  1340.         hitbox2.OverlapParams = params
  1341.         hitbox2.Touched:Connect(function(hit, hum)
  1342.             local hit_character = hit.Parent
  1343.             if not hit_character then return end
  1344.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1345.             if not hum or hum.Health <= 0 then return end
  1346.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1347.             if not torso then return end
  1348.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1349.             hit_effect.Parent = torso
  1350.             for _, v in pairs(hit_effect:GetDescendants()) do
  1351.                 if v:IsA("ParticleEmitter") then
  1352.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1353.                 end
  1354.             end
  1355.             hum:TakeDamage(8)
  1356.             stun(hum, 0.3)
  1357.         end)
  1358.         hitbox2:Start()
  1359.         local sound1 = assets.Sounds.Black:Clone()
  1360.         sound1.Parent = root
  1361.         sound1:Play()
  1362.         local blackshot = assets.Effects.blackShot:Clone()
  1363.         blackshot.Parent = workspace
  1364.         blackshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1365.         client_fx(150, brightness, nil, .1, .3)
  1366.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1367.         task.wait()
  1368.         task.delay(1, function()
  1369.             blackshot:Destroy()
  1370.         end)
  1371.         for _,v in pairs(blackshot.Attachment:GetDescendants()) do
  1372.             if v:IsA("ParticleEmitter") then
  1373.                 v:Emit(v:GetAttribute("EmitCount"))
  1374.                 v.EmissionDirection = Enum.NormalId.Front
  1375.             end
  1376.         end
  1377.         hitbox2:Stop()
  1378.         anim:GetMarkerReachedSignal("White"):Wait()
  1379.         ammo -= 1
  1380.         local hitbox2 = hitboxes.CreateHitbox()
  1381.         hitbox2.Size = Vector3.new(5,5,30)
  1382.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1383.         local params = OverlapParams.new()
  1384.         params.FilterType = Enum.RaycastFilterType.Exclude
  1385.         params.FilterDescendantsInstances = {character:GetChildren()}
  1386.         hitbox2.OverlapParams = params
  1387.         hitbox2.Touched:Connect(function(hit, hum)
  1388.             local hit_character = hit.Parent
  1389.             if not hit_character then return end
  1390.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1391.             if not hum or hum.Health <= 0 then return end
  1392.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1393.             if not torso then return end
  1394.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1395.             hit_effect.Parent = torso
  1396.             for _, v in pairs(hit_effect:GetDescendants()) do
  1397.                 if v:IsA("ParticleEmitter") then
  1398.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1399.                 end
  1400.             end
  1401.             hum:TakeDamage(8)
  1402.             stun(hum, 0.3)
  1403.         end)
  1404.         hitbox2:Start()
  1405.         local sound2 = assets.Sounds.White:Clone()
  1406.         sound2.Parent = root
  1407.         sound2:Play()
  1408.         local whiteshot = assets.Effects.whiteShot:Clone()
  1409.         whiteshot.Parent = workspace
  1410.         whiteshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1411.         client_fx(150, brightness, nil, .1, .3)
  1412.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1413.         task.wait()
  1414.         task.delay(1, function()
  1415.             whiteshot:Destroy()
  1416.         end)
  1417.         for _,v in pairs(whiteshot.Attachment:GetDescendants()) do
  1418.             if v:IsA("ParticleEmitter") then
  1419.                 v:Emit(v:GetAttribute("EmitCount"))
  1420.                 v.EmissionDirection = Enum.NormalId.Front
  1421.             end
  1422.         end
  1423.         hitbox2:Stop()
  1424.         anim:GetMarkerReachedSignal("Black"):Wait()
  1425.         ammo -= 1
  1426.         local hitbox2 = hitboxes.CreateHitbox()
  1427.         hitbox2.Size = Vector3.new(5,5,30)
  1428.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1429.         local params = OverlapParams.new()
  1430.         params.FilterType = Enum.RaycastFilterType.Exclude
  1431.         params.FilterDescendantsInstances = {character:GetChildren()}
  1432.         hitbox2.OverlapParams = params
  1433.         hitbox2.Touched:Connect(function(hit, hum)
  1434.             local hit_character = hit.Parent
  1435.             if not hit_character then return end
  1436.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1437.             if not hum or hum.Health <= 0 then return end
  1438.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1439.             if not torso then return end
  1440.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1441.             hit_effect.Parent = torso
  1442.             for _, v in pairs(hit_effect:GetDescendants()) do
  1443.                 if v:IsA("ParticleEmitter") then
  1444.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1445.                 end
  1446.             end
  1447.             hum:TakeDamage(8)
  1448.             stun(hum, 0.3)
  1449.         end)
  1450.         hitbox2:Start()
  1451.         local sound1 = assets.Sounds.Black:Clone()
  1452.         sound1.Parent = root
  1453.         sound1:Play()
  1454.         local blackshot = assets.Effects.blackShot:Clone()
  1455.         blackshot.Parent = workspace
  1456.         blackshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1457.         client_fx(150, brightness, nil, .1, .3)
  1458.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1459.         task.wait()
  1460.         task.delay(1, function()
  1461.             blackshot:Destroy()
  1462.         end)
  1463.         for _,v in pairs(blackshot.Attachment:GetDescendants()) do
  1464.             if v:IsA("ParticleEmitter") then
  1465.                 v:Emit(v:GetAttribute("EmitCount"))
  1466.                 v.EmissionDirection = Enum.NormalId.Front
  1467.             end
  1468.         end
  1469.         hitbox2:Stop()
  1470.         anim:GetMarkerReachedSignal("White"):Wait()
  1471.         ammo -= 1
  1472.         local hitbox2 = hitboxes.CreateHitbox()
  1473.         hitbox2.Size = Vector3.new(5,5,30)
  1474.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1475.         local params = OverlapParams.new()
  1476.         params.FilterType = Enum.RaycastFilterType.Exclude
  1477.         params.FilterDescendantsInstances = {character:GetChildren()}
  1478.         hitbox2.OverlapParams = params
  1479.         hitbox2.Touched:Connect(function(hit, hum)
  1480.             local hit_character = hit.Parent
  1481.             if not hit_character then return end
  1482.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1483.             if not hum or hum.Health <= 0 then return end
  1484.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1485.             if not torso then return end
  1486.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1487.             hit_effect.Parent = torso
  1488.             for _, v in pairs(hit_effect:GetDescendants()) do
  1489.                 if v:IsA("ParticleEmitter") then
  1490.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1491.                 end
  1492.             end
  1493.             hum:TakeDamage(8)
  1494.             stun(hum, 0.3)
  1495.         end)
  1496.         hitbox2:Start()
  1497.         local sound2 = assets.Sounds.White:Clone()
  1498.         sound2.Parent = root
  1499.         sound2:Play()
  1500.         local whiteshot = assets.Effects.whiteShot:Clone()
  1501.         whiteshot.Parent = workspace
  1502.         whiteshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1503.         client_fx(150, brightness, nil, .1, .3)
  1504.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1505.         task.wait()
  1506.         task.delay(1, function()
  1507.             whiteshot:Destroy()
  1508.         end)
  1509.         for _,v in pairs(whiteshot.Attachment:GetDescendants()) do
  1510.             if v:IsA("ParticleEmitter") then
  1511.                 v:Emit(v:GetAttribute("EmitCount"))
  1512.                 v.EmissionDirection = Enum.NormalId.Front
  1513.             end
  1514.         end
  1515.         hitbox2:Stop()
  1516.         anim:GetMarkerReachedSignal("Black"):Wait()
  1517.         ammo -= 1
  1518.         local hitbox2 = hitboxes.CreateHitbox()
  1519.         hitbox2.Size = Vector3.new(5,5,30)
  1520.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1521.         local params = OverlapParams.new()
  1522.         params.FilterType = Enum.RaycastFilterType.Exclude
  1523.         params.FilterDescendantsInstances = {character:GetChildren()}
  1524.         hitbox2.OverlapParams = params
  1525.         hitbox2.Touched:Connect(function(hit, hum)
  1526.             local hit_character = hit.Parent
  1527.             if not hit_character then return end
  1528.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1529.             if not hum or hum.Health <= 0 then return end
  1530.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1531.             if not torso then return end
  1532.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1533.             hit_effect.Parent = torso
  1534.             for _, v in pairs(hit_effect:GetDescendants()) do
  1535.                 if v:IsA("ParticleEmitter") then
  1536.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1537.                 end
  1538.             end
  1539.             hum:TakeDamage(8)
  1540.             stun(hum, 0.3)
  1541.         end)
  1542.         hitbox2:Start()
  1543.         local sound1 = assets.Sounds.Black:Clone()
  1544.         sound1.Parent = root
  1545.         sound1:Play()
  1546.         local blackshot = assets.Effects.blackShot:Clone()
  1547.         blackshot.Parent = workspace
  1548.         blackshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1549.         client_fx(150, brightness, nil, .1, .3)
  1550.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1551.         task.wait()
  1552.         task.delay(1, function()
  1553.             blackshot:Destroy()
  1554.         end)
  1555.         for _,v in pairs(blackshot.Attachment:GetDescendants()) do
  1556.             if v:IsA("ParticleEmitter") then
  1557.                 v:Emit(v:GetAttribute("EmitCount"))
  1558.                 v.EmissionDirection = Enum.NormalId.Front
  1559.             end
  1560.         end
  1561.         hitbox2:Stop()
  1562.         anim:GetMarkerReachedSignal("End"):Wait()
  1563.         ammo -= 1
  1564.         print("End")
  1565.         local hitbox2 = hitboxes.CreateHitbox()
  1566.         hitbox2.Size = Vector3.new(5,5,30)
  1567.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -15)
  1568.         local params = OverlapParams.new()
  1569.         params.FilterType = Enum.RaycastFilterType.Exclude
  1570.         params.FilterDescendantsInstances = {character:GetChildren()}
  1571.         hitbox2.OverlapParams = params
  1572.         hitbox2.Touched:Connect(function(hit, hum)
  1573.             local hit_character = hit.Parent
  1574.             if not hit_character then return end
  1575.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1576.             if not hum or hum.Health <= 0 then return end
  1577.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso") or hit_character:FindFirstChild("HumanoidRootPart")
  1578.             if not torso then return end
  1579.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1580.             hit_effect.Parent = torso
  1581.             for _, v in pairs(hit_effect:GetDescendants()) do
  1582.                 if v:IsA("ParticleEmitter") then
  1583.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1584.                 end
  1585.             end
  1586.             hum:TakeDamage(12)
  1587.             stun(hum, 0.5)
  1588.         end)
  1589.         hitbox2:Start()
  1590.         local sound1 = assets.Sounds.Black:Clone()
  1591.         sound1.Parent = root
  1592.         sound1:Play()
  1593.         local blackshot = assets.Effects.blackShot:Clone()
  1594.         blackshot.Parent = workspace
  1595.         blackshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1596.         client_fx(150, brightness, nil, .1, .3)
  1597.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1598.         task.wait()
  1599.         for _,v in pairs(blackshot.Attachment:GetDescendants()) do
  1600.             if v:IsA("ParticleEmitter") then
  1601.                 v:Emit(v:GetAttribute("EmitCount"))
  1602.                 v.EmissionDirection = Enum.NormalId.Front
  1603.             end
  1604.         end
  1605.         task.delay(1, function()
  1606.             blackshot:Destroy()
  1607.         end)
  1608.         task.wait()
  1609.         hitbox2:Stop()
  1610.         print("yes")
  1611.     elseif action == "clash" then
  1612.         if debounce then return end  
  1613.         debounce = true  
  1614.         local anim = animator.new()
  1615.         anim:setAnimation(require(animations.counter2))
  1616.         anim:setRig(character)
  1617.         anim:AdjustWeight(1)
  1618.         anim.Looped = false
  1619.         anim:Play()
  1620.         humanoid.WalkSpeed = 0
  1621.         local parry_active = true
  1622.         task.delay(2, function()
  1623.             parry_active = false
  1624.             humanoid.WalkSpeed = 25
  1625.         end)
  1626.         if humanoid then
  1627.             local original = humanoid.Health
  1628.             local startTime = tick()
  1629.             while parry_active and tick() - startTime < 0.5 do
  1630.                 task.wait()
  1631.                 if humanoid.Health < original then
  1632.                     anim:Stop()
  1633.                     local force = Instance.new("ForceField")
  1634.                     force.Visible = false
  1635.                     force.Parent = character
  1636.                     task.delay(1, function()
  1637.                         force:Destroy()
  1638.                     end)
  1639.                     client_fx(150, brightness, Color3.fromRGB(255, 144, 47), -0.2, 1)
  1640.                     client_fx(150, cam_shake, {5, 30, -5, 10}, Vector3.one * 3)
  1641.                     camerastuff.TweenFOV({player, nil}, 50, {Length = 0.001, EasingStyle = "Cubic", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, true)
  1642.                     local clash = Instance.new("Sound")
  1643.                     clash.Name = "clash"
  1644.                     clash.Volume = 2
  1645.                     clash.SoundId = "rbxassetid://199149338"
  1646.                     clash.Parent = root
  1647.                     clash:Play()
  1648.                     task.delay(2, function()
  1649.                         clash:Destroy()
  1650.                     end)
  1651.                     local parryfx = assets.Effects.Parry:Clone()
  1652.                     parryfx.Parent = workspace
  1653.                     parryfx.CFrame = root.CFrame * CFrame.new(0, 1, -2)
  1654.                     task.wait()
  1655.                     for _,v in pairs(parryfx.Attachment:GetDescendants()) do
  1656.                         if v:IsA("ParticleEmitter") then
  1657.                             v:Emit(v:GetAttribute("EmitCount"))
  1658.                             v.EmissionDirection = Enum.NormalId.Top
  1659.                         end
  1660.                     end
  1661.                     task.delay(2, function()
  1662.                         parryfx:Destroy()
  1663.                     end)
  1664.                     local radius = 100
  1665.                     local force = 250
  1666.                     local knockbackDuration = 0.3
  1667.  
  1668.                     local function ye(hrp)
  1669.                         local direction = (hrp.Position - root.Position).Unit
  1670.                         local bodyPos = Instance.new("BodyPosition")
  1671.                         bodyPos.Position = hrp.Position + direction * force
  1672.                         bodyPos.MaxForce = Vector3.new(1e5, 1e5, 1e5)
  1673.                         bodyPos.P = 5_000
  1674.                         bodyPos.D = 500
  1675.                         bodyPos.Parent = hrp
  1676.  
  1677.                         task.delay(knockbackDuration, function()
  1678.                             bodyPos:Destroy()
  1679.                         end)
  1680.                     end
  1681.  
  1682.                     for _, enemy in pairs(game:GetService("Players"):GetPlayers()) do
  1683.                         if enemy ~= player and enemy.Character and enemy.Character:FindFirstChild("HumanoidRootPart") then
  1684.                             local enemyHRP = enemy.Character.HumanoidRootPart
  1685.                             local distance = (enemyHRP.Position - root.Position).Magnitude
  1686.                             if distance <= radius then
  1687.                                 ye(enemyHRP)
  1688.                             end
  1689.                         end
  1690.                     end
  1691.  
  1692.                     for _, npc in pairs(workspace:GetChildren()) do
  1693.                         if npc:IsA("Model") and npc:FindFirstChild("Humanoid") and npc:FindFirstChild("HumanoidRootPart") then
  1694.                             local npcHRP = npc.HumanoidRootPart
  1695.                             local distance = (npcHRP.Position - root.Position).Magnitude
  1696.                             if distance <= radius then
  1697.                                 ye(npcHRP)
  1698.                             end
  1699.                         end
  1700.                     end
  1701.                     local parry = animator.new()
  1702.                     parry:setAnimation(require(animations.reload_1))
  1703.                     parry:setRig(character)
  1704.                     parry:AdjustWeight(2)
  1705.                     parry.Looped = false
  1706.                     parry:Play()
  1707.                     humanoid.WalkSpeed = 25
  1708.                     break
  1709.                 end
  1710.             end
  1711.         end
  1712.         task.wait(1)
  1713.         debounce = false
  1714.     elseif action == "sorrow_in_you" then
  1715.         if ammo == 0 then return end
  1716.         ego = math.max(ego - 45, 0)
  1717.         debounce = true
  1718.         humanoid.WalkSpeed = 0
  1719.         local bv = Instance.new("BodyVelocity")
  1720.         bv.MaxForce = Vector3.new(1e5, 0, 1e5)
  1721.         bv.Velocity = root.CFrame.LookVector * 120
  1722.         bv.Parent = root
  1723.         local anim = animator.new()
  1724.         anim:setAnimation(require(animations.sorrow_in_you))
  1725.         anim:setRig(character)
  1726.         anim:AdjustWeight(2)
  1727.         anim.Looped = false
  1728.         anim:Play()
  1729.         game.Debris:AddItem(bv, 0.1)
  1730.         anim:GetMarkerReachedSignal("start"):Wait()
  1731.         humanoid.AutoRotate = false
  1732.         local swing = assets.Effects.black_swing:Clone()
  1733.         swing.Parent = workspace
  1734.         swing.CFrame = blackgun.CFrame * CFrame.new(0, 0.1, 3)
  1735.         task.wait()
  1736.         for _,v in pairs(swing.Attachment2:GetDescendants()) do
  1737.             if v:IsA("ParticleEmitter") then
  1738.                 v:Emit(v:GetAttribute("EmitCount"))
  1739.                 v.EmissionDirection = Enum.NormalId.Top
  1740.             end
  1741.         end
  1742.         local hitbox2 = hitboxes.CreateHitbox()
  1743.         hitbox2.Size = Vector3.new(5,5,60)
  1744.         hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -30)
  1745.         local params = OverlapParams.new()
  1746.         params.FilterType = Enum.RaycastFilterType.Exclude
  1747.         params.FilterDescendantsInstances = {character:GetChildren()}
  1748.         hitbox2.OverlapParams = params
  1749.         hitbox2.Touched:Connect(function(hit, hum)
  1750.             local hit_character = hit.Parent
  1751.             if not hit_character then return end
  1752.             local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1753.             if not hum or hum.Health <= 0 then return end
  1754.             local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso")
  1755.             if not torso then return end
  1756.             local hit_effect = assets.Effects.hit.Attachment:Clone()
  1757.             hit_effect.Parent = torso
  1758.             for _, v in pairs(hit_effect:GetDescendants()) do
  1759.                 if v:IsA("ParticleEmitter") then
  1760.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  1761.                 end
  1762.             end
  1763.             hum:TakeDamage(5)
  1764.             stun(hum, 0.8)
  1765.         end)
  1766.         hitbox2:Start()
  1767.         local sound1 = assets.Sounds.Black:Clone()
  1768.         sound1.Parent = root
  1769.         sound1:Play()
  1770.         local blackshot = assets.Effects.blackShot:Clone()
  1771.         blackshot.Parent = workspace
  1772.         blackshot.CFrame = root.CFrame * CFrame.new(0, 1, -8)
  1773.         client_fx(150, brightness, nil, .1, 1)
  1774.         client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 2)
  1775.         camerastuff.TweenFOV({player, nil}, 40, {Length = 0.001, EasingStyle = "Sine", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, true)
  1776.         task.wait()
  1777.         hitbox2:Stop()
  1778.         for _,v in pairs(blackshot.Attachment:GetDescendants()) do
  1779.             if v:IsA("ParticleEmitter") then
  1780.                 v:Emit(v:GetAttribute("EmitCount"))
  1781.                 v.EmissionDirection = Enum.NormalId.Front
  1782.             end
  1783.         end
  1784.         task.delay(1, function()
  1785.             blackshot:Destroy()
  1786.         end)
  1787.         anim:GetMarkerReachedSignal("1"):Wait()
  1788.         anim:GetMarkerReachedSignal("2"):Wait()
  1789.         local swing = assets.Effects.up_swing:Clone()
  1790.         swing.Parent = workspace
  1791.         swing.CFrame = root.CFrame
  1792.         task.wait()
  1793.         for _,v in pairs(swing.Attachment1:GetDescendants()) do
  1794.             if v:IsA("ParticleEmitter") then
  1795.                 v:Emit(v:GetAttribute("EmitCount"))
  1796.             end
  1797.         end
  1798.         task.wait()
  1799.         for _,v in pairs(swing.Attachment2:GetDescendants()) do
  1800.             if v:IsA("ParticleEmitter") then
  1801.                 v:Emit(v:GetAttribute("EmitCount"))
  1802.             end
  1803.         end
  1804.         task.delay(1, function()
  1805.             swing:Destroy()
  1806.         end)
  1807.         local bv = Instance.new("BodyVelocity")
  1808.         bv.MaxForce = Vector3.new(1e7, 1e7, 1e7)
  1809.         bv.Velocity = root.CFrame.LookVector * -20
  1810.         bv.Parent = root
  1811.         humanoid.AutoRotate = true
  1812.         anim:GetMarkerReachedSignal("3"):Once(function()
  1813.             game.Debris:AddItem(bv, 0.1)
  1814.             local sound1 = assets.Sounds.Black:Clone()
  1815.             sound1.Parent = root
  1816.             sound1:Play()
  1817.             client_fx(150, brightness, nil, .1, 1)
  1818.             client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 2)
  1819.             camerastuff.TweenFOV({player, nil}, 85, {Length = 0.3, EasingStyle = "Quint", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, false)
  1820.             task.wait()
  1821.             humanoid.AutoRotate = false
  1822.             for v = 1, 13 do
  1823.                 task.wait(0.065)
  1824.                 local hitbox2 = hitboxes.CreateHitbox()
  1825.                 hitbox2.Size = Vector3.new(5,5,60)
  1826.                 hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -40)
  1827.                 local params = OverlapParams.new()
  1828.                 params.FilterType = Enum.RaycastFilterType.Exclude
  1829.                 params.FilterDescendantsInstances = {character:GetChildren()}
  1830.                 hitbox2.OverlapParams = params
  1831.                 hitbox2.Touched:Connect(function(hit, hum)
  1832.                     local hit_character = hit.Parent
  1833.                     if not hit_character then return end
  1834.                     local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1835.                     if not hum or hum.Health <= 0 then return end
  1836.                     local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso")
  1837.                     if not torso then return end
  1838.                     local hit_effect = assets.Effects.hit.Attachment:Clone()
  1839.                     hit_effect.Parent = torso
  1840.                     for _, v in pairs(hit_effect:GetDescendants()) do
  1841.                         if v:IsA("ParticleEmitter") then
  1842.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  1843.                         end
  1844.                     end
  1845.                     hum:TakeDamage(3)
  1846.                     stun(hum, 0.5)
  1847.                 end)
  1848.                 hitbox2:Start()
  1849.                 local sound1 = assets.Sounds.White:Clone()
  1850.                 sound1.Parent = root
  1851.                 sound1:Play()
  1852.                 local sound2 = assets.Sounds.Black:Clone()
  1853.                 sound2.Parent = root
  1854.                 sound2:Play()
  1855.                 local twoshot = assets.Effects.whiteBShot:Clone()
  1856.                 twoshot.Parent = workspace
  1857.                 twoshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1858.                 client_fx(150, brightness, nil, .1, .3)
  1859.                 client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1860.                 task.wait()
  1861.                 task.delay(1, function()
  1862.                     twoshot:Destroy()
  1863.                 end)
  1864.                 for _,v in pairs(twoshot.Attachmentb:GetDescendants()) do
  1865.                     if v:IsA("ParticleEmitter") then
  1866.                         v:Emit(v:GetAttribute("EmitCount"))
  1867.                     end
  1868.                 end
  1869.                 task.wait()
  1870.                 hitbox2:Stop()
  1871.                 for _,v in pairs(twoshot.Attachmentw:GetDescendants()) do
  1872.                     if v:IsA("ParticleEmitter") then
  1873.                         v:Emit(v:GetAttribute("EmitCount"))
  1874.                     end
  1875.                 end
  1876.             end
  1877.         end)
  1878.         anim:GetMarkerReachedSignal("4"):Once(function()
  1879.             local swing = assets.Effects.up_swing:Clone()
  1880.             swing.Parent = workspace
  1881.             swing.CFrame = root.CFrame
  1882.             task.wait()
  1883.             task.delay(1, function()
  1884.                 swing:Destroy()
  1885.             end)
  1886.             for _,v in pairs(swing.Attachment1:GetDescendants()) do
  1887.                 if v:IsA("ParticleEmitter") then
  1888.                     v:Emit(v:GetAttribute("EmitCount"))
  1889.                 end
  1890.             end
  1891.             task.wait()
  1892.             for _,v in pairs(swing.Attachment2:GetDescendants()) do
  1893.                 if v:IsA("ParticleEmitter") then
  1894.                     v:Emit(v:GetAttribute("EmitCount"))
  1895.                 end
  1896.             end
  1897.             camerastuff.TweenFOV({player, nil}, 60, {Length = 0.3, EasingStyle = "Quint", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, false)
  1898.         end)
  1899.         anim:GetMarkerReachedSignal("5"):Once(function()
  1900.             local sound1 = assets.Sounds.Black:Clone()
  1901.             sound1.Parent = root
  1902.             sound1:Play()
  1903.             local sound2 = assets.Sounds.White:Clone()
  1904.             sound2.Parent = root
  1905.             sound2:Play()
  1906.             client_fx(150, brightness, nil, .4, 1)
  1907.             client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 2)
  1908.             camerastuff.TweenFOV({player, nil}, 85, {Length = 0.3, EasingStyle = "Quint", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, false)
  1909.             task.wait()
  1910.             for v = 1, 18 do
  1911.                 task.wait(0.065)
  1912.                 local hitbox2 = hitboxes.CreateHitbox()
  1913.                 hitbox2.Size = Vector3.new(5,5,60)
  1914.                 hitbox2.CFrame = root.CFrame * CFrame.new(0, 0, -40)
  1915.                 local params = OverlapParams.new()
  1916.                 params.FilterType = Enum.RaycastFilterType.Exclude
  1917.                 params.FilterDescendantsInstances = {character:GetChildren()}
  1918.                 hitbox2.OverlapParams = params
  1919.                 hitbox2.Touched:Connect(function(hit, hum)
  1920.                     local hit_character = hit.Parent
  1921.                     if not hit_character then return end
  1922.                     local hum = hit_character:FindFirstChildOfClass("Humanoid")
  1923.                     if not hum or hum.Health <= 0 then return end
  1924.                     local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso")
  1925.                     if not torso then return end
  1926.                     local hit_effect = assets.Effects.hit.Attachment:Clone()
  1927.                     hit_effect.Parent = torso
  1928.                     for _, v in pairs(hit_effect:GetDescendants()) do
  1929.                         if v:IsA("ParticleEmitter") then
  1930.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  1931.                         end
  1932.                     end
  1933.                     hum:TakeDamage(3)
  1934.                     stun(hum, 0.5)
  1935.                 end)
  1936.                 hitbox2:Start()
  1937.                 local sound1 = assets.Sounds.White:Clone()
  1938.                 sound1.Parent = root
  1939.                 sound1:Play()
  1940.                 local sound2 = assets.Sounds.Black:Clone()
  1941.                 sound2.Parent = root
  1942.                 sound2:Play()
  1943.                 local twoshot = assets.Effects.whiteBShot:Clone()
  1944.                 twoshot.Parent = workspace
  1945.                 twoshot.CFrame = root.CFrame * CFrame.new(0, 1, -5)
  1946.                 client_fx(150, brightness, nil, .1, .3)
  1947.                 client_fx(150, cam_shake, {5, 10, 0, 1.5}, Vector3.one * 1)
  1948.                 task.wait()
  1949.                 task.delay(1, function()
  1950.                     twoshot:Destroy()
  1951.                 end)
  1952.                 for _,v in pairs(twoshot.Attachmentb:GetDescendants()) do
  1953.                     if v:IsA("ParticleEmitter") then
  1954.                         v:Emit(v:GetAttribute("EmitCount"))
  1955.                     end
  1956.                 end
  1957.                 task.wait()
  1958.                 hitbox2:Stop()
  1959.                 for _,v in pairs(twoshot.Attachmentw:GetDescendants()) do
  1960.                     if v:IsA("ParticleEmitter") then
  1961.                         v:Emit(v:GetAttribute("EmitCount"))
  1962.                     end
  1963.                 end
  1964.             end
  1965.         end)
  1966.         anim:GetMarkerReachedSignal("6"):Once(function()
  1967.             camerastuff.TweenFOV({player, nil}, 120, {Length = 0.01, EasingStyle = "Quint", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, true)
  1968.             local bv = Instance.new("BodyVelocity")
  1969.             bv.MaxForce = Vector3.new(1e7, 1e7, 1e7)
  1970.             bv.Velocity = root.CFrame.LookVector * 100
  1971.             bv.Parent = root
  1972.             task.wait(0.2)
  1973.             game.Debris:AddItem(bv, 0.1)
  1974.         end)
  1975.         anim:GetMarkerReachedSignal("7"):Once(function()
  1976.             humanoid.AutoRotate = false
  1977.             client_fx(150, impact, 1)
  1978.             client_fx(150, brightness, nil, 1, 1)
  1979.             client_fx(150, cam_shake, {5, 10, 0, 2}, Vector3.one * 5)
  1980.             camerastuff.TweenFOV({player, nil}, 90, {Length = 1.5, EasingStyle = "Sine", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, true)
  1981.             local sound1 = Instance.new("Sound")
  1982.             sound1.Name = "magic-cast-heavy11"
  1983.             sound1.Volume = 4
  1984.             sound1.SoundId = "rbxassetid://4299584756"
  1985.             sound1.Parent = root
  1986.             sound1:Play()
  1987.             local ending = assets.Effects.endShot:Clone()
  1988.             ending.Parent = workspace
  1989.             client_fx(50, cam_shake, {5, 30, -5, 10}, Vector3.one * 10)
  1990.             for v = 1, 16 do
  1991.                 task.wait(0.065)
  1992.                 ending.CFrame = root.CFrame
  1993.                 local hitbox2 = hitboxes.CreateHitbox()
  1994.                 hitbox2.Size = Vector3.new(30, 30, 30)
  1995.                 hitbox2.CFrame = root.CFrame
  1996.                 local params = OverlapParams.new()
  1997.                 params.FilterType = Enum.RaycastFilterType.Exclude
  1998.                 params.FilterDescendantsInstances = {character:GetChildren()}
  1999.                 hitbox2.OverlapParams = params
  2000.                 hitbox2.Touched:Connect(function(hit, hum)
  2001.                     local hit_character = hit.Parent
  2002.                     if not hit_character then return end
  2003.                     local hum = hit_character:FindFirstChildOfClass("Humanoid")
  2004.                     if not hum or hum.Health <= 0 then return end
  2005.                     local torso = hit_character:FindFirstChild("Torso") or hit_character:FindFirstChild("UpperTorso")
  2006.                     if not torso then return end
  2007.                     local hit_effect = assets.Effects.hit.Attachment:Clone()
  2008.                     hit_effect.Parent = torso
  2009.                     for _, v in pairs(hit_effect:GetDescendants()) do
  2010.                         if v:IsA("ParticleEmitter") then
  2011.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2012.                         end
  2013.                     end
  2014.                     hum:TakeDamage(3)
  2015.                     stun(hum, 0.8)
  2016.                 end)
  2017.                 hitbox2:Start()
  2018.                 for _,v in pairs(ending.Attachmentyay:GetDescendants()) do
  2019.                     if v:IsA("ParticleEmitter") then
  2020.                         v:Emit(v:GetAttribute("EmitCount"))
  2021.                     end
  2022.                 end
  2023.                 task.wait()
  2024.                 task.delay(3, function()
  2025.                     ending:Destroy()
  2026.                 end)
  2027.                 hitbox2:Stop()
  2028.                 for _,v in pairs(ending.Attachmentyay2:GetDescendants()) do
  2029.                     if v:IsA("ParticleEmitter") then
  2030.                         v:Emit(v:GetAttribute("EmitCount"))
  2031.                     end
  2032.                 end
  2033.             end
  2034.         end)
  2035.         anim:GetMarkerReachedSignal("8"):Once(function()
  2036.             camerastuff.TweenFOV({player, nil}, 40, {Length = 0.01, EasingStyle = "Sine", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, true)
  2037.             client_fx(150, brightness, nil, 1, 1)
  2038.             client_fx(150, cam_shake, {5, 10, 0, 3}, Vector3.one * 3)
  2039.             local ending = assets.Effects.sorrow_end:Clone()
  2040.             ending.Parent = workspace
  2041.             ending.CFrame = root.CFrame
  2042.             task.wait()
  2043.             for _, v in pairs(ending:GetDescendants()) do
  2044.                 if v:IsA("ParticleEmitter") then
  2045.                     v:Emit(v:GetAttribute("EmitCount") or 1)
  2046.                 end
  2047.             end
  2048.             local sound1 = Instance.new("Sound")
  2049.             sound1.Name = "jingle5"
  2050.             sound1.Volume = 4
  2051.             sound1.SoundId = "rbxassetid://4307069862"
  2052.             sound1.Parent = root
  2053.             sound1:Play()
  2054.             task.wait(1)
  2055.             debounce = false
  2056.             humanoid.WalkSpeed = 25
  2057.             humanoid.AutoRotate = true
  2058.         end)
  2059.     elseif action == "ego" then
  2060.         if ego <= 10 and ammo <= 30 then
  2061.             print("not enough")
  2062.         else
  2063.             debounce = true
  2064.             if ego >= max_ego then
  2065.                 for _, v in pairs(character:GetChildren()) do
  2066.                     if v:IsA("Shirt") then
  2067.                         print("yes")
  2068.                         leftarm["Left Arm"].Color = character["Left Arm"].Color
  2069.                         rightarm["Right Arm"].Color = character["Right Arm"].Color
  2070.                         middlearm["Left Arm"].Color = character["Torso"].Color
  2071.                         local clonedShirt = v:Clone()
  2072.                         clonedShirt.Parent = leftarm
  2073.                         clonedShirt:Clone().Parent = rightarm
  2074.                         clonedShirt:Clone().Parent = middlearm
  2075.                     end
  2076.                 end
  2077.                 ego = 0
  2078.                 local victim = nil
  2079.                 local anim = animator.new()
  2080.                 anim:setAnimation(require(animations.egostart))
  2081.                 anim:setRig(character)
  2082.                 anim:AdjustWeight(2)
  2083.                 anim.Looped = false
  2084.                 anim:Play()
  2085.                 anim:GetMarkerReachedSignal("Hit"):Wait()
  2086.                 local shoot = assets.Effects.solemn_white:Clone()
  2087.                 shoot.Parent = workspace
  2088.                 shoot.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2089.                 task.wait()
  2090.                 task.delay(2, function()
  2091.                     shoot:Destroy()
  2092.                 end)
  2093.                 for _, v in pairs(shoot:GetDescendants()) do
  2094.                     if v:IsA("ParticleEmitter") then
  2095.                         v:Emit(v:GetAttribute("EmitCount") or 1)
  2096.                     end
  2097.                 end
  2098.                 local hitbox1 = Instance.new("Part", workspace)
  2099.                 hitbox1.Name = "Hitbox"
  2100.                 hitbox1.Anchored = true
  2101.                 hitbox1.Size = Vector3.new(5, 5, 40)
  2102.                 hitbox1.CanCollide = false
  2103.                 hitbox1.Transparency = 0
  2104.                 hitbox1.CFrame = root.CFrame * CFrame.new(0, 0, -25)
  2105.                 local params = OverlapParams.new()
  2106.                 params.FilterType = Enum.RaycastFilterType.Exclude
  2107.                 params.FilterDescendantsInstances = {character}
  2108.                 task.wait(0.025)
  2109.                 hitbox1:Destroy()
  2110.                 local hitParts = workspace:GetPartsInPart(hitbox1, params)
  2111.                 for _, part in ipairs(hitParts) do
  2112.                     local humanoid = part.Parent:FindFirstChildOfClass("Humanoid")
  2113.                     if humanoid and humanoid.Parent ~= character then
  2114.                         victim = humanoid.Parent
  2115.                         print("Hit:", victim.Name)
  2116.                         local hit_effect = assets.Effects.hit.Attachment:Clone()
  2117.                         hit_effect.Parent = victim.Torso
  2118.                         for _, v in pairs(hit_effect:GetDescendants()) do
  2119.                             if v:IsA("ParticleEmitter") then
  2120.                                 v:Emit(v:GetAttribute("EmitCount") or 1)
  2121.                             end
  2122.                         end
  2123.                         humanoid:TakeDamage(2)
  2124.                         stun(humanoid, 13)
  2125.                         break
  2126.                     end
  2127.                 end
  2128.                 if not victim then
  2129.                     print("none")
  2130.                     client_fx(200, brightness, nil, 1, 0.9)
  2131.                     client_fx(200, cam_shake, {5, 10, 0, 3}, Vector3.one * 3)
  2132.                 else
  2133.                     debounce = true
  2134.                     root.Anchored = true
  2135.                     local victimPlayer = game.Players:GetPlayerFromCharacter(victim)
  2136.                     local function cutscene(targets: {Player})
  2137.                         if not targets then return end
  2138.                         for _, player in pairs(targets) do
  2139.                             if player and player:FindFirstChild("PlayerGui") then
  2140.                                 local cutscene = assets.Animations.CameraAnimations.Funeral.Camera:Clone()
  2141.                                 cutscene.Enabled = true
  2142.                                 cutscene.Origin.Value = root.CFrame
  2143.                                 cutscene.Parent = player.PlayerGui
  2144.                                 game:GetService("Debris"):AddItem(cutscene, 15)
  2145.                             end
  2146.                         end
  2147.                     end
  2148.                     brightness(player, nil, 1, 0.9)
  2149.                     cam_shake(player, {10, 10, 0, 10}, Vector3.one * 0.9)
  2150.                     camerastuff.TweenFOV({player}, 20, {Length = 0.9, EasingStyle = "Sine", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, true)
  2151.                
  2152.                     if victimPlayer then
  2153.                         brightness(victimPlayer, nil, 1, 0.9)
  2154.                         cam_shake(victimPlayer, {10, 10, 0, 10}, Vector3.one * 0.9)
  2155.                         camerastuff.TweenFOV({victimPlayer}, 20, {Length = 0.9, EasingStyle = "Sine", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, true)
  2156.                     end
  2157.                     task.wait(0.9)
  2158.                     local stunanim = animator.new()
  2159.                     stunanim:setAnimation(require(animations.hit))
  2160.                     stunanim:setRig(victim)
  2161.                     stunanim:AdjustWeight(7)
  2162.                     stunanim.Looped = true
  2163.                     stunanim:Play()
  2164.                     local hit_vic_torso = victim:FindFirstChild("Torso") or victim:FindFirstChild("UpperTorso") or victim:FindFirstChild("HumanoidRootPart")
  2165.                     local hit_vic_hum = victim:FindFirstChild("Humanoid")
  2166.                     hit_vic_torso.CFrame = root.CFrame * CFrame.new(0,0, -35)
  2167.                     hit_vic_hum.AutoRotate = false
  2168.                     hit_vic_torso.CFrame = CFrame.lookAt(victim.HumanoidRootPart.Position,root.Position)
  2169.                     hit_vic_torso.Anchored = true
  2170.                     humanoid.AutoRotate = false
  2171.                     local ego = animator.new()
  2172.                     ego:setAnimation(require(animations.funeral))
  2173.                     ego:setRig(character)
  2174.                     ego:AdjustWeight(1)
  2175.                     ego.Looped = false
  2176.  
  2177.                     root.Anchored = true
  2178.                     root.CFrame = CFrame.lookAt(root.Position, hit_vic_torso.Position)
  2179.  
  2180.                     anim:Stop()
  2181.                     client_fx(50, brightness, nil, 1, 1)
  2182.                     ego:Play()
  2183.                     cutscene({player, victimPlayer})
  2184.                     egobar.Enabled = false
  2185.                     funeral_head.Parent = storage
  2186.                     coffin2.Parent = game.TestService
  2187.                     coffin.Parent = character
  2188.                     leftarm.Parent = character
  2189.                     rightarm.Parent = character
  2190.                     middlearm.Parent = character
  2191.                     leftarm["Left Arm"].Transparency = 0
  2192.                     rightarm["Right Arm"].Transparency = 0
  2193.                     middlearm["Left Arm"].Transparency = 0
  2194.                     whitegun.Transparency = 1
  2195.                     blackgun.Transparency = 1
  2196.                     ego:GetMarkerReachedSignal("1"):Wait()
  2197.                     local body_collapse01 = Instance.new("Sound")
  2198.                     body_collapse01.Name = "body-collapse01"
  2199.                     body_collapse01.Volume = 2
  2200.                     body_collapse01.SoundId = "rbxassetid://2609993518"
  2201.                     body_collapse01.Parent = character["Right Leg"]
  2202.                     body_collapse01:Play()
  2203.                     ego:GetMarkerReachedSignal("2"):Wait()
  2204.                     local body_collapse01 = Instance.new("Sound")
  2205.                     body_collapse01.Name = "body-collapse01"
  2206.                     body_collapse01.Volume = 2
  2207.                     body_collapse01.SoundId = "rbxassetid://4086035815"
  2208.                     body_collapse01.Parent = root
  2209.                     body_collapse01:Play()
  2210.                     local body_collapse02 = Instance.new("Sound")
  2211.                     body_collapse02.Name = "body-collapse01"
  2212.                     body_collapse02.Volume = 2
  2213.                     body_collapse02.SoundId = "rbxassetid://182306090"
  2214.                     body_collapse02.Parent = root
  2215.                     body_collapse02:Play()
  2216.                     ego:GetMarkerReachedSignal("3"):Wait()
  2217.                     local body_collapse01 = Instance.new("Sound")
  2218.                     body_collapse01.Name = "body-collapse01"
  2219.                     body_collapse01.Volume = 2
  2220.                     body_collapse01.SoundId = "rbxassetid://5137964328"
  2221.                     body_collapse01.Parent = root
  2222.                     body_collapse01:Play()
  2223.                     ego:GetMarkerReachedSignal("4"):Wait()
  2224.                     local body_collapse01 = Instance.new("Sound")
  2225.                     body_collapse01.Name = "body-collapse01"
  2226.                     body_collapse01.Volume = 2
  2227.                     body_collapse01.SoundId = "rbxassetid://3908308607"
  2228.                     body_collapse01.Parent = root
  2229.                     body_collapse01:Play()
  2230.                     ego:GetMarkerReachedSignal("5"):Wait()
  2231.                     local body_collapse01 = Instance.new("Sound")
  2232.                     body_collapse01.Name = "body-collapse01"
  2233.                     body_collapse01.Volume = 2
  2234.                     body_collapse01.SoundId = "rbxassetid://9125626784"
  2235.                     body_collapse01.PlaybackSpeed = 1.2
  2236.                     body_collapse01.Parent = root
  2237.                     body_collapse01:Play()
  2238.                     local down_particles = assets.Effects.coffinDown:Clone()
  2239.                     down_particles.Parent = workspace
  2240.                     down_particles.CFrame = coffin.Open.CFrame
  2241.                     task.wait()
  2242.                     task.delay(1, function()
  2243.                         down_particles:Destroy()
  2244.                     end)
  2245.                     for _,v in pairs(down_particles:GetDescendants()) do
  2246.                         if v:IsA("ParticleEmitter") then
  2247.                             v:Emit(v:GetAttribute("EmitCount"))
  2248.                         end
  2249.                     end
  2250.                     ego:GetMarkerReachedSignal("6"):Wait()
  2251.                     local body_collapse01 = Instance.new("Sound")
  2252.                     body_collapse01.Name = "body-collapse01"
  2253.                     body_collapse01.Volume = 2
  2254.                     body_collapse01.SoundId = "rbxassetid://1843023345"
  2255.                     --body_collapse01.PlaybackSpeed = 1.2
  2256.                     body_collapse01.Parent = root
  2257.                     body_collapse01:Play()
  2258.                     butterfly(player, "White", 2)
  2259.                     butterfly(player, "Black", 2)
  2260.                     if victimPlayer then
  2261.                         butterfly(victimPlayer, "White", 2)
  2262.                         butterfly(victimPlayer, "Black", 2)
  2263.                     end
  2264.                     local sound1 = assets.Sounds.White:Clone()
  2265.                     sound1.Parent = root
  2266.                     sound1:Play()
  2267.                     local sound2 = assets.Sounds.Black:Clone()
  2268.                     sound2.Parent = root
  2269.                     sound2:Play()
  2270.                     local final = Instance.new("Sound")
  2271.                     final.Name = "idk lol"
  2272.                     final.Volume = 5
  2273.                     final.SoundId = "rbxassetid://1843023345"
  2274.                     --body_collapse01.PlaybackSpeed = 1.2
  2275.                     final.Parent = root
  2276.                     final:Play()
  2277.                     local funeral_shpt = assets.Effects.funeral_shot:Clone()
  2278.                     funeral_shpt.Parent = workspace
  2279.                     funeral_shpt.CFrame = root.CFrame * CFrame.new(0, 1, -47)
  2280.                     task.wait()
  2281.                     task.delay(3, function()
  2282.                         funeral_shpt:Destroy()
  2283.                     end)
  2284.                     for _,v in pairs(funeral_shpt:GetDescendants()) do
  2285.                         if v:IsA("ParticleEmitter") then
  2286.                             v.Enabled = true
  2287.                         end
  2288.                     end
  2289.                     for i = 1,60 do
  2290.                         task.wait(0.025)
  2291.                         if victim.Humanoid.Health - 5 <= 0 then
  2292.                             victim.Humanoid.Health = 1
  2293.                         else
  2294.                             victim.Humanoid:TakeDamage(5)
  2295.                         end
  2296.                     end
  2297.                     ego:GetMarkerReachedSignal("7"):Once(function()
  2298.                         --ego.Speed = 1.1
  2299.                         for _,v in pairs(funeral_shpt:GetDescendants()) do
  2300.                             if v:IsA("ParticleEmitter") then
  2301.                                 v.Enabled = false
  2302.                             end
  2303.                         end
  2304.                         local fade = assets.FX.Fade:Clone()
  2305.                         fade.Parent = player.PlayerGui
  2306.                         if victimPlayer then
  2307.                             local fade2 =  assets.FX.Fade:Clone()
  2308.                             fade2.Parent = victimPlayer.PlayerGui
  2309.                         end
  2310.                         local idleflies = assets.Effects.idle_butterflies:Clone()
  2311.                         idleflies.Parent = workspace
  2312.                         idleflies.CFrame = root.CFrame
  2313.                         for _,v in pairs(idleflies:GetChildren()) do
  2314.                             if v:IsA("ParticleEmitter") then
  2315.                                 v:Emit(v:GetAttribute("EmitCount") or 1)
  2316.                             end
  2317.                         end
  2318.                         local charge = Instance.new("Sound")
  2319.                         charge.Name = "Bell Toll"
  2320.                         charge.Volume = 3
  2321.                         charge.SoundId = "rbxassetid://9058393493"
  2322.                         charge.PlaybackSpeed = 0.8
  2323.                         charge.Parent = root
  2324.                         charge:Play()
  2325.                     end)
  2326.                     ego:GetMarkerReachedSignal("8"):Once(function()
  2327.                         local fade = assets.FX.Funeral_Effects:Clone()
  2328.                         fade.Parent = player.PlayerGui
  2329.                         clientmodule.scene(player, 4, Color3.fromRGB(255, 255, 255))
  2330.                         if victimPlayer then
  2331.                             clientmodule.scene(victimPlayer, 4, Color3.fromRGB(255, 255, 255))
  2332.                             local fade2 = assets.FX.Funeral_Effects:Clone()
  2333.                             fade2.Parent = victimPlayer.PlayerGui
  2334.                         end
  2335.                         local sound2 = assets.Sounds.Funeral_End:Clone()
  2336.                         sound2.Parent = root
  2337.                         sound2:Play()
  2338.                         local sound3 = assets.Sounds.Black:Clone()
  2339.                         sound3.Parent = root
  2340.                         sound3:Play()
  2341.                         local final = Instance.new("Sound")
  2342.                         final.Name = "idk lol"
  2343.                         final.Volume = 5
  2344.                         final.SoundId = "rbxassetid://1843027458"
  2345.                         --body_collapse01.PlaybackSpeed = 1.2
  2346.                         final.Parent = root
  2347.                         final:Play()
  2348.                         local final_shot = assets.Effects.funeral_shot2:Clone()
  2349.                         final_shot.Parent = workspace
  2350.                         final_shot.CFrame = root.CFrame * CFrame.new(0, 1, -48)
  2351.                         task.wait()
  2352.                         if victim.Humanoid.Health - 250 <= 0 then
  2353.                             victim.Humanoid.Health = 1
  2354.                         else
  2355.                             victim.Humanoid:TakeDamage(250)
  2356.                         end
  2357.                         butterfly(player, "Black", 4)
  2358.                         if victimPlayer then
  2359.                             butterfly(victimPlayer, "Black", 4)
  2360.                         end
  2361.                         task.delay(4, function()
  2362.                             final_shot:Destroy()
  2363.                         end)
  2364.                         for _,v in pairs(final_shot.Attachmentyay2:GetChildren()) do
  2365.                             if v:IsA("ParticleEmitter") then
  2366.                                 v:Emit(v:GetAttribute("EmitCount"))
  2367.                                 game:GetService("TweenService"):Create(v, TweenInfo.new(0.2, Enum.EasingStyle.Sine), {TimeScale = 0.1}):Play()
  2368.                             end
  2369.                         end
  2370.                     end)
  2371.                     --[[ego:GetMarkerReachedSignal("9"):Once(function()
  2372.                     end)]]
  2373.                     ego:GetMarkerReachedSignal("10"):Once(function()
  2374.                         local ende = Instance.new("Sound")
  2375.                         ende.Name = "body-collapse01"
  2376.                         ende.Volume = 0.5
  2377.                         ende.PlaybackSpeed = 0.714
  2378.                         ende.SoundId = "rbxassetid://5743541912"
  2379.                         ende.Parent = root
  2380.                         ende:Play()
  2381.                         local sound2 = assets.Sounds.Funeral_End2:Clone()
  2382.                         sound2.Parent = root
  2383.                         sound2:Play()
  2384.                         clientmodule.scene(player, 4)
  2385.                         if victimPlayer then
  2386.                             clientmodule.scene(victimPlayer, 4)
  2387.                         end
  2388.                         task.wait(1)
  2389.                         task.delay(3, function()
  2390.                         camerastuff.NormalizeCamera({player, victimPlayer}, {
  2391.                         Length = 0.0001,
  2392.                         EasingStyle = "Sine",
  2393.                         EasingDirection = "Out",
  2394.                         RepeatCount = 0,
  2395.                         Reverses = false,
  2396.                         DelayTime = 0
  2397.                     }) 
  2398.                     end)
  2399.                         clientmodule.scene(player,3, Color3.fromRGB(0, 0, 0))
  2400.                         if victimPlayer then
  2401.                             clientmodule.scene(victimPlayer,3, Color3.fromRGB(0, 0, 0))
  2402.                         end
  2403.                         task.wait(3)
  2404.                         debounce = false
  2405.                         leftarm["Left Arm"].Transparency = 1
  2406.                         rightarm["Right Arm"].Transparency = 1
  2407.                         middlearm["Left Arm"].Transparency = 1
  2408.                         coffin2.Parent = character
  2409.                         coffin.Parent = game.TestService
  2410.                         funeral_head.Parent = game.TestService
  2411.                         leftarm.Parent = storage
  2412.                         rightarm.Parent = storage
  2413.                         middlearm.Parent = storage
  2414.                         whitegun.Transparency = 0
  2415.                         blackgun.Transparency = 0
  2416.                         egobar.Enabled = true
  2417.                         humanoid.AutoRotate = true
  2418.                         root.Anchored = false
  2419.                         humanoid.WalkSpeed = 25
  2420.                         root.Anchored = false
  2421.                         ego:Stop()
  2422.                         stunanim:Stop()
  2423.                         hit_vic_torso.Anchored = false
  2424.                         victim.Humanoid.AutoRotate = true
  2425.                     end)
  2426.                 end
  2427.             else
  2428.                 ego = math.max(ego - 40, 0)
  2429.                 local victim = nil
  2430.                 local anim = animator.new()
  2431.                 anim:setAnimation(require(animations.egostart))
  2432.                 anim:setRig(character)
  2433.                 anim:AdjustWeight(1)
  2434.                 anim.Looped = false
  2435.                 anim:Play()
  2436.                 anim:GetMarkerReachedSignal("Hit"):Wait()
  2437.                 local shoot = assets.Effects.solemn_white:Clone()
  2438.                 shoot.Parent = workspace
  2439.                 shoot.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2440.                 task.wait()
  2441.                 task.delay(2, function()
  2442.                     shoot:Destroy()
  2443.                 end)
  2444.                 for _, v in pairs(shoot:GetDescendants()) do
  2445.                     if v:IsA("ParticleEmitter") then
  2446.                         v:Emit(v:GetAttribute("EmitCount") or 1)
  2447.                     end
  2448.                 end
  2449.                 local hitbox1 = Instance.new("Part", workspace)
  2450.                 hitbox1.Name = "Hitbox"
  2451.                 hitbox1.Anchored = true
  2452.                 hitbox1.Size = Vector3.new(5, 5, 40)
  2453.                 hitbox1.CanCollide = false
  2454.                 hitbox1.Transparency = 0
  2455.                 hitbox1.CFrame = root.CFrame * CFrame.new(0, 0, -25)
  2456.                 local params = OverlapParams.new()
  2457.                 params.FilterType = Enum.RaycastFilterType.Exclude
  2458.                 params.FilterDescendantsInstances = {character}
  2459.                 task.wait(0.025)
  2460.                 hitbox1:Destroy()
  2461.                 local hitParts = workspace:GetPartsInPart(hitbox1, params)
  2462.                 for _, part in ipairs(hitParts) do
  2463.                     local humanoid = part.Parent:FindFirstChildOfClass("Humanoid")
  2464.                     if humanoid and humanoid.Parent ~= character then
  2465.                         victim = humanoid.Parent
  2466.                         print("Hit:", victim.Name)
  2467.                         local hit_effect = assets.Effects.hit.Attachment:Clone()
  2468.                         hit_effect.Parent = victim.Torso
  2469.                         for _, v in pairs(hit_effect:GetDescendants()) do
  2470.                             if v:IsA("ParticleEmitter") then
  2471.                                 v:Emit(v:GetAttribute("EmitCount") or 1)
  2472.                             end
  2473.                         end
  2474.                         stun(humanoid, 15)
  2475.                         break
  2476.                     end
  2477.                 end
  2478.                 if not victim then
  2479.                     print("none")
  2480.                     client_fx(200, brightness, nil, 1, 0.9)
  2481.                     client_fx(50, cam_shake, {5, 10, 0, 3}, Vector3.one * 3)
  2482.                 else
  2483.                     local victimPlayer = game.Players:GetPlayerFromCharacter(victim)
  2484.                     client_fx(200, brightness, nil, 1, 0.9)
  2485.                     client_fx(50, cam_shake, {10, 10, 0, 10}, Vector3.one * 0.9)
  2486.                     local victimPlayer = game.Players:GetPlayerFromCharacter(victim)
  2487.                     camerastuff.TweenFOV({player}, 20, {Length = 0.9, EasingStyle = "Sine", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, true)
  2488.                     if victimPlayer then
  2489.                         brightness(victimPlayer, nil, 1, 0.9)
  2490.                         cam_shake(victimPlayer, {10, 10, 0, 10}, Vector3.one * 0.9)
  2491.                         camerastuff.TweenFOV({victimPlayer}, 20, {Length = 0.9, EasingStyle = "Sine", EasingDirection = "Out", RepeatCount = 0, Reverses = false, DelayTime = 0}, true)
  2492.                     end
  2493.                     task.wait(0.9)
  2494.                     local stunanim = animator.new()
  2495.                     stunanim:setAnimation(require(animations.hit))
  2496.                     stunanim:setRig(victim)
  2497.                     stunanim:AdjustWeight(7)
  2498.                     stunanim.Looped = true
  2499.                     stunanim:Play()
  2500.                     victim.HumanoidRootPart.CFrame = root.CFrame * CFrame.new(0,0, -35)
  2501.                     victim.Humanoid.AutoRotate = false
  2502.                     victim.HumanoidRootPart.CFrame = CFrame.lookAt(victim.HumanoidRootPart.Position,root.Position)
  2503.                     victim.HumanoidRootPart.Anchored = true
  2504.                     humanoid.AutoRotate = false
  2505.                     root.Anchored = true
  2506.                     local ego = animator.new()
  2507.                     ego:setAnimation(require(animations.solemn))
  2508.                     ego:setRig(character)
  2509.                     ego:AdjustWeight()
  2510.                     ego.Looped = false
  2511.                     ego:Play()
  2512.                     anim:Stop()
  2513.                     butterflyarm.Parent = storage
  2514.                     local function cutscene(targets: {Player})
  2515.                         if not targets then return end
  2516.                         for _, player in pairs(targets) do
  2517.                             if player and player:FindFirstChild("PlayerGui") then
  2518.                                 local cutscene = assets.Animations.CameraAnimations.SolemnLament.Camera:Clone()
  2519.                                 cutscene.Enabled = true
  2520.                                 cutscene.Origin.Value = root.CFrame
  2521.                                 cutscene.Parent = player.PlayerGui
  2522.                                 game:GetService("Debris"):AddItem(cutscene, 15)
  2523.                             end
  2524.                         end
  2525.                     end
  2526.                     root.CFrame = CFrame.lookAt(root.Position,victim.HumanoidRootPart.Position)
  2527.                     cutscene({player, victimPlayer})
  2528.                     client_fx(50, brightness, nil, 1, 1)
  2529.                     ego:GetMarkerReachedSignal("1"):Wait()
  2530.                     local sound3 = assets.Sounds.Ding:Clone()
  2531.                     sound3.Parent = root
  2532.                     sound3:Play()
  2533.                     local ending = assets.Effects.sorrow_end:Clone()
  2534.                     ending.Parent = workspace
  2535.                     ending.CFrame = root.CFrame
  2536.                     task.wait()
  2537.                     task.delay(2, function()
  2538.                         ending:Destroy()
  2539.                     end)
  2540.                     for _, v in pairs(ending:GetDescendants()) do
  2541.                         if v:IsA("ParticleEmitter") then
  2542.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2543.                         end
  2544.                     end
  2545.                     ego:GetMarkerReachedSignal("2"):Wait()
  2546.                     local sound2 = assets.Sounds.Pistol_Click:Clone()
  2547.                     sound2.Parent = root
  2548.                     sound2:Play()
  2549.                     local ending = assets.Effects.solemn_swing:Clone()
  2550.                     ending.Parent = workspace
  2551.                     ending.CFrame = root.CFrame
  2552.                     task.wait()
  2553.                     task.delay(2, function()
  2554.                         ending:Destroy()
  2555.                     end)
  2556.                     for _, v in pairs(ending:GetDescendants()) do
  2557.                         if v:IsA("ParticleEmitter") then
  2558.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2559.                         end
  2560.                     end
  2561.                     ego:GetMarkerReachedSignal("3"):Wait()
  2562.                     if victim.Humanoid.Health - 45 <= 0 then
  2563.                         victim.Humanoid.Health = 1
  2564.                     else
  2565.                         victim.Humanoid:TakeDamage(45)
  2566.                     end
  2567.                     task.delay(0.00001, function()
  2568.                         butterfly(player, "White", 0.5)
  2569.                         if victimPlayer then
  2570.                             butterfly(victimPlayer, "White", 0.5)
  2571.                         end
  2572.                     end)
  2573.                     client_fx(50, brightness, nil, .1, .3)
  2574.                     local sound2 = assets.Sounds.White:Clone()
  2575.                     sound2.Parent = root
  2576.                     sound2:Play()
  2577.                     local ending = assets.Effects.solemn_white:Clone()
  2578.                     ending.Parent = workspace
  2579.                     ending.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2580.                     task.wait()
  2581.                     task.delay(2, function()
  2582.                         ending:Destroy()
  2583.                     end)
  2584.                     for _, v in pairs(ending:GetDescendants()) do
  2585.                         if v:IsA("ParticleEmitter") then
  2586.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2587.                         end
  2588.                     end
  2589.                     ego:GetMarkerReachedSignal("4"):Wait()
  2590.                     if victim.Humanoid.Health - 45 <= 0 then
  2591.                         victim.Humanoid.Health = 1
  2592.                     else
  2593.                         victim.Humanoid:TakeDamage(45)
  2594.                     end
  2595.                     task.delay(0.00001, function()
  2596.                         butterfly(player, "Black", 0.5)
  2597.                         if victimPlayer then
  2598.                             butterfly(victimPlayer, "Black", 0.5)
  2599.                         end
  2600.                     end)
  2601.                     client_fx(50, brightness, nil, .1, .3)
  2602.                     local sound2 = assets.Sounds.Black:Clone()
  2603.                     sound2.Parent = root
  2604.                     sound2:Play()
  2605.                     local ending = assets.Effects.solemn_black:Clone()
  2606.                     ending.Parent = workspace
  2607.                     ending.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2608.                     task.wait()
  2609.                     task.delay(2, function()
  2610.                         ending:Destroy()
  2611.                     end)
  2612.                     for _, v in pairs(ending:GetDescendants()) do
  2613.                         if v:IsA("ParticleEmitter") then
  2614.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2615.                         end
  2616.                     end
  2617.                     ego:GetMarkerReachedSignal("5"):Wait()
  2618.                     if victim.Humanoid.Health - 45 <= 0 then
  2619.                         victim.Humanoid.Health = 1
  2620.                     else
  2621.                         victim.Humanoid:TakeDamage(45)
  2622.                     end
  2623.                     task.delay(0.00001, function()
  2624.                         butterfly(player, "White", 0.5)
  2625.                         if victimPlayer then
  2626.                             butterfly(victimPlayer, "White", 0.5)
  2627.                         end
  2628.                     end)
  2629.                     client_fx(50, brightness, nil, .1, .3)
  2630.                     local sound2 = assets.Sounds.White:Clone()
  2631.                     sound2.Parent = root
  2632.                     sound2:Play()
  2633.                     local ending = assets.Effects.solemn_white:Clone()
  2634.                     ending.Parent = workspace
  2635.                     ending.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2636.                     task.wait()
  2637.                     task.delay(2, function()
  2638.                         ending:Destroy()
  2639.                     end)
  2640.                     for _, v in pairs(ending:GetDescendants()) do
  2641.                         if v:IsA("ParticleEmitter") then
  2642.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2643.                         end
  2644.                     end
  2645.                     ego:GetMarkerReachedSignal("6"):Wait()
  2646.                     if victim.Humanoid.Health - 45 <= 0 then
  2647.                         victim.Humanoid.Health = 1
  2648.                     else
  2649.                         victim.Humanoid:TakeDamage(45)
  2650.                     end
  2651.                     task.delay(0.00001, function()
  2652.                         butterfly(player, "Black", 0.5)
  2653.                         if victimPlayer then
  2654.                             butterfly(victimPlayer, "Black", 0.5)
  2655.                         end
  2656.                     end)
  2657.                     client_fx(50, brightness, nil, .1, .3)
  2658.                     local sound2 = assets.Sounds.Black:Clone()
  2659.                     sound2.Parent = root
  2660.                     sound2:Play()
  2661.                     local ending = assets.Effects.solemn_black:Clone()
  2662.                     ending.Parent = workspace
  2663.                     ending.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2664.                     task.wait()
  2665.                     task.delay(2, function()
  2666.                         ending:Destroy()
  2667.                     end)
  2668.                     for _, v in pairs(ending:GetDescendants()) do
  2669.                         if v:IsA("ParticleEmitter") then
  2670.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2671.                         end
  2672.                     end
  2673.                     ego:GetMarkerReachedSignal("7"):Wait()
  2674.                     local sound2 = assets.Sounds.Pistol_Click:Clone()
  2675.                     sound2.Parent = root
  2676.                     sound2:Play()
  2677.                     local ending = assets.Effects.solemn_spin1:Clone()
  2678.                     ending.Parent = workspace
  2679.                     ending.CFrame = root.CFrame --* CFrame.new(0, 0, 0)
  2680.                     task.wait()
  2681.                     task.delay(2, function()
  2682.                         ending:Destroy()
  2683.                     end)
  2684.                     for _, v in pairs(ending:GetDescendants()) do
  2685.                         if v:IsA("ParticleEmitter") then
  2686.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2687.                         end
  2688.                     end
  2689.                     ego:GetMarkerReachedSignal("8"):Wait()
  2690.                     if victim.Humanoid.Health - 45 <= 0 then
  2691.                         victim.Humanoid.Health = 1
  2692.                     else
  2693.                         victim.Humanoid:TakeDamage(45)
  2694.                     end
  2695.                     task.delay(0.00001, function()
  2696.                         butterfly(player, "Black", 0.5)
  2697.                         if victimPlayer then
  2698.                             butterfly(victimPlayer, "Black", 0.5)
  2699.                         end
  2700.                     end)
  2701.                     client_fx(50, brightness, nil, .1, .3)
  2702.                     local sound2 = assets.Sounds.Black:Clone()
  2703.                     sound2.Parent = root
  2704.                     sound2:Play()
  2705.                     local ending = assets.Effects.solemn_black:Clone()
  2706.                     ending.Parent = workspace
  2707.                     ending.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2708.                     task.wait()
  2709.                     task.delay(2, function()
  2710.                         ending:Destroy()
  2711.                     end)
  2712.                     for _, v in pairs(ending:GetDescendants()) do
  2713.                         if v:IsA("ParticleEmitter") then
  2714.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2715.                         end
  2716.                     end
  2717.                     ego:GetMarkerReachedSignal("9"):Wait()
  2718.                     if victim.Humanoid.Health - 45 <= 0 then
  2719.                         victim.Humanoid.Health = 1
  2720.                     else
  2721.                         victim.Humanoid:TakeDamage(45)
  2722.                     end
  2723.                     task.delay(0.00001, function()
  2724.                         butterfly(player, "White", 0.5)
  2725.                         if victimPlayer then
  2726.                             butterfly(victimPlayer, "White", 0.5)
  2727.                         end
  2728.                     end)
  2729.                     local sound2 = assets.Sounds.White:Clone()
  2730.                     sound2.Parent = root
  2731.                     sound2:Play()
  2732.                     local ending = assets.Effects.solemn_white:Clone()
  2733.                     ending.Parent = workspace
  2734.                     ending.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2735.                     task.wait()
  2736.                     task.delay(2, function()
  2737.                         ending:Destroy()
  2738.                     end)
  2739.                     for _, v in pairs(ending:GetDescendants()) do
  2740.                         if v:IsA("ParticleEmitter") then
  2741.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2742.                         end
  2743.                     end
  2744.                     ego:GetMarkerReachedSignal("10"):Wait()
  2745.                     if victim.Humanoid.Health - 45 <= 0 then
  2746.                         victim.Humanoid.Health = 1
  2747.                     else
  2748.                         victim.Humanoid:TakeDamage(45)
  2749.                     end
  2750.                     task.delay(0.00001, function()
  2751.                         butterfly(player, "Black", 0.5)
  2752.                         if victimPlayer then
  2753.                             butterfly(victimPlayer, "Black", 0.5)
  2754.                         end
  2755.                     end)
  2756.                     local sound2 = assets.Sounds.Black:Clone()
  2757.                     sound2.Parent = root
  2758.                     sound2:Play()
  2759.                     local ending = assets.Effects.solemn_black:Clone()
  2760.                     ending.Parent = workspace
  2761.                     ending.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2762.                     task.wait()
  2763.                     task.delay(2, function()
  2764.                         ending:Destroy()
  2765.                     end)
  2766.                     for _, v in pairs(ending:GetDescendants()) do
  2767.                         if v:IsA("ParticleEmitter") then
  2768.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2769.                         end
  2770.                     end
  2771.                     ego:GetMarkerReachedSignal("11"):Wait()
  2772.                     if victim.Humanoid.Health - 45 <= 0 then
  2773.                         victim.Humanoid.Health = 1
  2774.                     else
  2775.                         victim.Humanoid:TakeDamage(45)
  2776.                     end
  2777.                     task.delay(0.00001, function()
  2778.                         butterfly(player, "White", 0.5)
  2779.                         if victimPlayer then
  2780.                             butterfly(victimPlayer, "White", 0.5)
  2781.                         end
  2782.                     end)
  2783.                     local sound2 = assets.Sounds.White:Clone()
  2784.                     sound2.Parent = root
  2785.                     sound2:Play()
  2786.                     local ending = assets.Effects.solemn_white:Clone()
  2787.                     ending.Parent = workspace
  2788.                     ending.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2789.                     task.wait()
  2790.                     task.delay(2, function()
  2791.                         ending:Destroy()
  2792.                     end)
  2793.                     for _, v in pairs(ending:GetDescendants()) do
  2794.                         if v:IsA("ParticleEmitter") then
  2795.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2796.                         end
  2797.                     end
  2798.                     ego:GetMarkerReachedSignal("3.1"):Wait()
  2799.                     local sound2 = assets.Sounds.Pistol_Click:Clone()
  2800.                     sound2.Parent = root
  2801.                     sound2:Play()
  2802.                     local ending = assets.Effects.solemn_spin2:Clone()
  2803.                     ending.Parent = workspace
  2804.                     ending.CFrame = root.CFrame
  2805.                     task.wait()
  2806.                     task.delay(2, function()
  2807.                         ending:Destroy()
  2808.                     end)
  2809.                     for _, v in pairs(ending:GetDescendants()) do
  2810.                         if v:IsA("ParticleEmitter") then
  2811.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2812.                         end
  2813.                     end
  2814.                     ego:GetMarkerReachedSignal("13"):Wait()
  2815.                     if victim.Humanoid.Health - 45 <= 0 then
  2816.                         victim.Humanoid.Health = 1
  2817.                     else
  2818.                         victim.Humanoid:TakeDamage(45)
  2819.                     end
  2820.                     task.delay(0.00001, function()
  2821.                         butterfly(player, "White", 0.5)
  2822.                         if victimPlayer then
  2823.                             butterfly(victimPlayer, "White", 0.5)
  2824.                         end
  2825.                     end)
  2826.                     local sound2 = assets.Sounds.White:Clone()
  2827.                     sound2.Parent = root
  2828.                     sound2:Play()
  2829.                     local ending = assets.Effects.solemn_white:Clone()
  2830.                     ending.Parent = workspace
  2831.                     ending.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2832.                     task.wait()
  2833.                     task.delay(2, function()
  2834.                         ending:Destroy()
  2835.                     end)
  2836.                     for _, v in pairs(ending:GetDescendants()) do
  2837.                         if v:IsA("ParticleEmitter") then
  2838.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2839.                         end
  2840.                     end
  2841.                     ego:GetMarkerReachedSignal("14"):Wait()
  2842.                     if victim.Humanoid.Health - 25 <= 0 then
  2843.                         victim.Humanoid.Health = 1
  2844.                     else
  2845.                         victim.Humanoid:TakeDamage(25)
  2846.                     end
  2847.                     task.delay(0.00001, function()
  2848.                         butterfly(player, "Black", 0.5)
  2849.                         if victimPlayer then
  2850.                             butterfly(victimPlayer, "Black", 0.5)
  2851.                         end
  2852.                     end)
  2853.                     local sound2 = assets.Sounds.Black:Clone()
  2854.                     sound2.Parent = root
  2855.                     sound2:Play()
  2856.                     local ending = assets.Effects.solemn_black:Clone()
  2857.                     ending.Parent = workspace
  2858.                     ending.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2859.                     task.wait()
  2860.                     task.delay(2, function()
  2861.                         ending:Destroy()
  2862.                     end)
  2863.                     for _, v in pairs(ending:GetDescendants()) do
  2864.                         if v:IsA("ParticleEmitter") then
  2865.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2866.                         end
  2867.                     end
  2868.                     ego:GetMarkerReachedSignal("15"):Wait()
  2869.                     victim.Humanoid:TakeDamage(50)
  2870.                     task.delay(0.00001, function()
  2871.                         butterfly(player, "White", 2)
  2872.                         if victimPlayer then
  2873.                             butterfly(victimPlayer, "White", 2)
  2874.                         end
  2875.                     end)
  2876.                     local sound2 = assets.Sounds.White:Clone()
  2877.                     sound2.Parent = root
  2878.                     sound2:Play()
  2879.                     local sound3 = assets.Sounds.Ding:Clone()
  2880.                     sound3.Parent = root
  2881.                     sound3:Play()
  2882.                     local ending1 = assets.Effects.solemn_white:Clone()
  2883.                     ending1.Parent = workspace
  2884.                     ending1.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2885.                     task.wait()
  2886.                     for _, v in pairs(ending1:GetDescendants()) do
  2887.                         if v:IsA("ParticleEmitter") then
  2888.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2889.                             game:GetService("TweenService"):Create(v, TweenInfo.new(0.2, Enum.EasingStyle.Sine), {TimeScale = 0.1}, true):Play()
  2890.                         end
  2891.                     end
  2892.                     local ending2 = assets.Effects.solemn_black:Clone()
  2893.                     ending2.Parent = workspace
  2894.                     ending2.CFrame = root.CFrame * CFrame.new(0, 0, -50)
  2895.                     task.wait()
  2896.                     task.delay(10, function()
  2897.                         ending1:Destroy()
  2898.                         ending2:Destroy()
  2899.                     end)
  2900.                     for _, v in pairs(ending2:GetDescendants()) do
  2901.                         if v:IsA("ParticleEmitter") then
  2902.                             v:Emit(v:GetAttribute("EmitCount") or 1)
  2903.                             game:GetService("TweenService"):Create(v, TweenInfo.new(0.2, Enum.EasingStyle.Sine), {TimeScale = 0.1}, true):Play()
  2904.                         end
  2905.                     end
  2906.                    
  2907.                     task.wait(1.3)
  2908.                     task.delay(1.25, function()
  2909.                         camerastuff.NormalizeCamera({player, victimPlayer}, {
  2910.                         Length = 0.0001,
  2911.                         EasingStyle = "Sine",
  2912.                         EasingDirection = "Out",
  2913.                         RepeatCount = 0,
  2914.                         Reverses = false,
  2915.                         DelayTime = 0
  2916.                     }) 
  2917.                     end)
  2918.                     clientmodule.scene(player, 1.25, Color3.fromRGB(0, 0, 0))
  2919.                    
  2920.                     if victimPlayer then
  2921.                         clientmodule.scene(victimPlayer, 1.25, Color3.fromRGB(0, 0, 0))
  2922.                     end
  2923.                     task.wait(2)
  2924.                     for _, v in pairs(ending1:GetDescendants()) do
  2925.                         if v:IsA("ParticleEmitter") then
  2926.                             game:GetService("TweenService"):Create(v, TweenInfo.new(0.2, Enum.EasingStyle.Sine), {TimeScale = 1}):Play()
  2927.                         end
  2928.                     end
  2929.                     for _, v in pairs(ending2:GetDescendants()) do
  2930.                         if v:IsA("ParticleEmitter") then
  2931.                             game:GetService("TweenService"):Create(v, TweenInfo.new(0.2, Enum.EasingStyle.Sine), {TimeScale = 1}):Play()
  2932.                         end
  2933.                     end
  2934.                     stunanim:Stop()
  2935.                     victim.HumanoidRootPart.CFrame = root.CFrame * CFrame.new(0,0, -35)
  2936.                     victim.Humanoid.AutoRotate = true
  2937.                     victim.HumanoidRootPart.Anchored = false
  2938.                     humanoid.AutoRotate = false
  2939.                     humanoid.WalkSpeed = 25
  2940.                     humanoid.AutoRotate = true
  2941.                     root.Anchored = false
  2942.                     butterflyarm.Parent = game.TestService
  2943.                 end
  2944.             end
  2945.         end
  2946.         task.wait(1)
  2947.         debounce = false
  2948.     end
  2949. end)
  2950. game:GetService("RunService").Stepped:Connect(function()
  2951.     update_bar()
  2952. end)
  2953.  
  2954. local previous_health = humanoid.Health
  2955.  
  2956. humanoid:GetPropertyChangedSignal("Health"):Connect(function()
  2957.     local current_health = humanoid.Health
  2958.     if current_health < previous_health then
  2959.         ego = math.max(ego + 0.8, 0)
  2960.     end
  2961. end)
  2962. print("loaded!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement