Advertisement
ILovePotato

Untitled

Jan 25th, 2025
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.38 KB | None | 0 0
  1. local a = game:GetService("StarterGui")
  2. a:SetCore("SendNotification", { Title = "KJ HUB V2"; Text = "MADE BY KJ HUB AND EPICEDITEMPORIUM."; Duration = 5; Icon = "rbxassetid://17140853847" })
  3.  
  4. game.StarterGui:SetCore("SendNotification", {
  5. Title = "NOTIFICATION";
  6. Text = "This Character is based on KJ's Final Ride & KJ Kills Day Credits to Kilojoule & Stealth";
  7. Duration = 5;
  8. Icon = "rbxassetid://0"; -- leave it like that if you don't want the icon
  9. })
  10. -- remove this script at bottom if you don't wan tsb notification sound
  11. s= Instance.new("Sound")
  12. s.SoundId = "rbxassetid://3398620867"
  13. s:Play()
  14. s.Volume = 1
  15.  
  16.  
  17. local Animation = 17325160621
  18.  
  19. -- dont change anything here
  20. local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local function isLookingAt(target, distance) local head = character:WaitForChild("Head") local direction = (target.Position - head.Position).unit local lookVector = head.CFrame.LookVector local dotThreshold = 0 if distance <= 2.5 then dotThreshold = 0 elseif distance <= 4.1 then dotThreshold = 0.6 end return direction:Dot(lookVector) > dotThreshold end for _, m in pairs(workspace.Live:GetChildren()) do if m:IsA("Model") and m:FindFirstChild("Humanoid") then local distance = (m.HumanoidRootPart.Position - character.HumanoidRootPart.Position).Magnitude if distance <= 6 and isLookingAt(m.HumanoidRootPart, distance) then local origin = character.Head.Position local direction = (m.HumanoidRootPart.Position - origin) local raycastParams = RaycastParams.new() raycastParams.FilterDescendantsInstances = {character} local result = workspace:Raycast(origin, direction, raycastParams) if result and result.Instance == m.HumanoidRootPart then local a = Instance.new("Animation") a.AnimationId = "rbxassetid://" .. Animation local e = m.Humanoid:LoadAnimation(a) e:Play() end end end end
  21. local p = game.Players.LocalPlayer
  22. local s = function(c)
  23. local r = game:GetService("ReplicatedStorage")
  24. local t = r:FindFirstChild("Resources")
  25. if t then
  26. local u = t:FindFirstChild("le phone")
  27. if u then
  28. local v = u:Clone()
  29. v.Parent = c
  30.  
  31.  
  32. local w = c:FindFirstChild("RightHand") or c:FindFirstChild("Right Arm")
  33. if w then
  34. if not v.PrimaryPart then
  35. local basePart = v:FindFirstChildWhichIsA("BasePart")
  36. if basePart then
  37. v.PrimaryPart = basePart
  38. else
  39. return
  40. end
  41. end
  42.  
  43. local x = Instance.new("Weld")
  44. x.Part0 = w
  45. x.Part1 = v.PrimaryPart
  46. x.C0 = CFrame.new(0, -1, 0)
  47. x.Parent = w
  48.  
  49.  
  50. v:SetPrimaryPartCFrame(w.CFrame * CFrame.new(0, -1, 0))
  51.  
  52.  
  53. -- Play the animation
  54. local anim = Instance.new("Animation")
  55. anim.AnimationId = "rbxassetid://17325160621"
  56.  
  57. local animTrack = c.Humanoid:LoadAnimation(anim)
  58. animTrack:Play()
  59.  
  60.  
  61. -- Create and play the sound
  62. local sound = Instance.new("Sound")
  63. sound.SoundId = "rbxassetid://17325174223"
  64. sound.Parent = c.Torso or c:FindFirstChild("UpperTorso") -- Adjust if using R6 or R15
  65. sound:Play()
  66.  
  67. -- Delete the model after 1.0 seconds
  68. delay(1.0, function()
  69. if v and v.Parent then
  70. v:Destroy()
  71.  
  72.  
  73. local p = game.Players.LocalPlayer
  74. local a = p.Character
  75. local x = game:GetService("ReplicatedStorage")
  76. local v = game:GetService("Workspace")
  77.  
  78.  
  79. local function r()
  80. local s = x:FindFirstChild("Resources")
  81. if not s then return end
  82.  
  83.  
  84. local m = s:FindFirstChild("PhonePhysicsTest")
  85. if not m then return end
  86.  
  87.  
  88. local c = m:Clone()
  89.  
  90.  
  91. local h = a:FindFirstChild("Head")
  92. if not h then return end
  93.  
  94.  
  95. local d = h.CFrame.LookVector
  96. local o = h.Position + d * 0.5
  97.  
  98.  
  99. c:SetPrimaryPartCFrame(CFrame.new(o))
  100. c.Parent = v
  101.  
  102.  
  103. wait(5.3)
  104. if c and c.Parent then
  105. c:Destroy()
  106. end
  107. end
  108.  
  109.  
  110. r()
  111.  
  112.  
  113. end
  114. end)
  115. end
  116. end
  117. end
  118. end
  119.  
  120.  
  121. p.CharacterAdded:Connect(s)
  122. if p.Character then
  123. s(p.Character)
  124. end
  125.  
  126. local Sound = 17325174223
  127. local Volume = 1
  128. local Speed = 1
  129.  
  130. s= Instance.new("Sound", game.Players.LocalPlayer.Character.HumanoidRootPart)
  131. s.SoundId = "rbxassetid://" .. Sound
  132. s:Play()
  133. s.Volume = Volume
  134. s.PlaybackSpeed = Speed
  135.  
  136. local Sound = 17325206534
  137. local Volume = 1
  138. local Speed = 1
  139.  
  140. s= Instance.new("Sound", game.Players.LocalPlayer.Character.HumanoidRootPart)
  141. s.SoundId = "rbxassetid://" .. Sound
  142. s:Play()
  143. s.Volume = Volume
  144. s.PlaybackSpeed = Speed
  145.  
  146.  
  147. local OriginalAnimation = 10469493270
  148. local Sound = 17325528680
  149. local Volume = 2
  150.  
  151. local player = game.Players.LocalPlayer
  152. local character = player.Character or player.CharacterAdded:Wait()
  153. local humanoid = character:WaitForChild("Humanoid")
  154. local function onAnimationPlayed(animationTrack)
  155. if animationTrack.Animation.AnimationId == "rbxassetid://" .. OriginalAnimation then
  156. local p = game.Players.LocalPlayer
  157. local Humanoid = p.Character:WaitForChild("Humanoid")
  158. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  159. animTrack:Stop()
  160. end
  161. local s = Instance.new("Sound", p.Character.Torso)
  162. s.SoundId = "rbxassetid://" .. Sound
  163. s:Play()
  164. s.Volume = Volume
  165. end
  166. end
  167.  
  168. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  169.  
  170.  
  171. local OriginalAnimation = 10469630950
  172. local Sound = 17325528583
  173. local Volume = 2
  174.  
  175. local player = game.Players.LocalPlayer
  176. local character = player.Character or player.CharacterAdded:Wait()
  177. local humanoid = character:WaitForChild("Humanoid")
  178. local function onAnimationPlayed(animationTrack)
  179. if animationTrack.Animation.AnimationId == "rbxassetid://" .. OriginalAnimation then
  180. local p = game.Players.LocalPlayer
  181. local Humanoid = p.Character:WaitForChild("Humanoid")
  182. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  183. animTrack:Stop()
  184. end
  185. local s = Instance.new("Sound", p.Character.Torso)
  186. s.SoundId = "rbxassetid://" .. Sound
  187. s:Play()
  188. s.Volume = Volume
  189. end
  190. end
  191.  
  192. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  193.  
  194. local OriginalAnimation = 10469639222
  195. local Sound = 17325528509
  196. local Volume = 2
  197.  
  198. local player = game.Players.LocalPlayer
  199. local character = player.Character or player.CharacterAdded:Wait()
  200. local humanoid = character:WaitForChild("Humanoid")
  201. local function onAnimationPlayed(animationTrack)
  202. if animationTrack.Animation.AnimationId == "rbxassetid://" .. OriginalAnimation then
  203. local p = game.Players.LocalPlayer
  204. local Humanoid = p.Character:WaitForChild("Humanoid")
  205. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  206. animTrack:Stop()
  207. end
  208. local s = Instance.new("Sound", p.Character.Torso)
  209. s.SoundId = "rbxassetid://" .. Sound
  210. s:Play()
  211. s.Volume = Volume
  212. end
  213. end
  214.  
  215. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  216.  
  217. local OriginalAnimation = 10469643643
  218. local Sound = 17325528401
  219. local Volume = 2
  220.  
  221. local player = game.Players.LocalPlayer
  222. local character = player.Character or player.CharacterAdded:Wait()
  223. local humanoid = character:WaitForChild("Humanoid")
  224. local function onAnimationPlayed(animationTrack)
  225. if animationTrack.Animation.AnimationId == "rbxassetid://" .. OriginalAnimation then
  226. local p = game.Players.LocalPlayer
  227. local Humanoid = p.Character:WaitForChild("Humanoid")
  228. for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
  229. animTrack:Stop()
  230. end
  231. local s = Instance.new("Sound", p.Character.Torso)
  232. s.SoundId = "rbxassetid://" .. Sound
  233. s:Play()
  234. s.Volume = Volume
  235. end
  236. end
  237.  
  238. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  239.  
  240.  
  241. local function handleAnimationDetection(animIdsToStop, replacementAnimId)
  242. local humanoid = game.Players.LocalPlayer.Character.Humanoid
  243.  
  244. local function onAnimPlayed(animationTrack)
  245. local animId = tonumber(string.match(animationTrack.Animation.AnimationId, "%d+"))
  246.  
  247. for _, stopId in ipairs(animIdsToStop) do
  248. if animId == stopId then
  249. animationTrack:Stop()
  250. local player = game.Players.LocalPlayer
  251. repeat wait() until player.Character.Humanoid
  252. local humanoid = player.Character.Humanoid
  253. local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
  254. local UserInputService = game:GetService("UserInputService")
  255. debounce = false -- Activate debounce
  256. local anim = Instance.new("Animation")
  257. anim.AnimationId = "rbxassetid://" .. replacementAnimId
  258. local playAnim = humanoid:LoadAnimation(anim)
  259. anim.AnimationId = "rbxassetid://0" -- don't change anything here
  260.  
  261. spawn(function()
  262. wait(1)
  263. debounce = true
  264. end)
  265.  
  266. playAnim:Play()
  267. playAnim:AdjustSpeed(1)
  268.  
  269. local Players = game:GetService("Players")
  270. local Character = Players.LocalPlayer.Character or Players.LocalPlayer.CharacterAdded:Wait()
  271.  
  272. local animationPlayed = false -- Flag to track if the animation has already been played
  273. end
  274. end
  275. end
  276.  
  277. humanoid.AnimationPlayed:Connect(onAnimPlayed)
  278. end
  279.  
  280. -- First set of animations
  281. local firstAnimIdsToStop = {10469493270, 13532562418, 13491635433, 13370310513, 14004222985, 15259161390, 16515503507, 17889458563}
  282. local m1 = 17325510002
  283. handleAnimationDetection(firstAnimIdsToStop, m1)
  284.  
  285. -- Second set of animations
  286. local secondAnimIdsToStop = {10469630950, 13532600125, 13296577783, 13390230973, 13997092940, 15240216931, 16515520431, 17889461810}
  287. local m2 = 17325513870
  288. handleAnimationDetection(secondAnimIdsToStop, m2)
  289.  
  290. -- Third set of animations
  291. local thirdAnimIdsToStop = {10469639222, 13532604085, 13295919399, 13378751717, 14001963401, 15240176873, 16515448089, 17889471098}
  292. local m3 = 17325522388
  293. handleAnimationDetection(thirdAnimIdsToStop, m3)
  294.  
  295. -- Fourth set of animations
  296. local fourthAnimIdsToStop = {10469643643, 13294471966, 13295936866, 13378708199, 14136436157, 15162694192, 16552234590, 17889290569}
  297. local m4 = 17325537719
  298. handleAnimationDetection(fourthAnimIdsToStop, m4)
  299.  
  300.  
  301. for _, tools in ipairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  302. if tools:IsA("Tool") then
  303. tools:Destroy()
  304. end
  305. end
  306.  
  307. local UltBarName = "20 SERIES"
  308.  
  309. -- don't chabge anything here
  310. local Players = game:GetService("Players")
  311. local player = Players.LocalPlayer
  312. local playerGui = player:WaitForChild("PlayerGui")
  313.  
  314. local function findGuiAndSetText()
  315. local screenGui = playerGui:FindFirstChild("ScreenGui")
  316. if screenGui then
  317. local magicHealthFrame = screenGui:FindFirstChild("MagicHealth")
  318. if magicHealthFrame then
  319. local textLabel = magicHealthFrame:FindFirstChild("TextLabel")
  320. if textLabel then
  321. textLabel.Text = UltBarName
  322. end
  323. end
  324. end
  325. end
  326.  
  327. playerGui.DescendantAdded:Connect(function(descendant)
  328. if descendant:IsDescendantOf(playerGui:FindFirstChild("ScreenGui")) then
  329. findGuiAndSetText()
  330. end
  331. end)
  332.  
  333. findGuiAndSetText()
  334.  
  335.  
  336.  
  337. local p = game.Players.LocalPlayer
  338. local r = p.Backpack:FindFirstChild("Ravage")
  339. if r then
  340. local a = r:Destroy()
  341. end
  342. local p = game.Players.LocalPlayer
  343. local b = p.Backpack
  344. local t = Instance.new("Tool")
  345. t.Name = "Ravage"
  346. t.RequiresHandle = false
  347. t.Parent = b
  348. local clr = Color3.fromRGB(70, 166, 255)
  349. local c = true
  350. local function rv()
  351. if not c then
  352. return
  353. end
  354.  
  355. c = false
  356.  
  357. delay(18, function()
  358. c = true
  359. end)
  360.  
  361. for _, a in ipairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  362. if a:IsA("Tool") then
  363. a.RequiresHandle = true
  364. end
  365. end
  366. local c = game.Players.LocalPlayer
  367. local d = c:WaitForChild("PlayerGui")
  368. local e = d:WaitForChild("Hotbar")
  369. local f = e:WaitForChild("Backpack")
  370. local g = f:WaitForChild("Hotbar")
  371. local ToolNumber = 1
  372. local cooldownTime = 18
  373.  
  374. -- Get the player and the GUI elements
  375. local player = game.Players.LocalPlayer
  376. local playerGui = player:WaitForChild("PlayerGui")
  377. local hotbar = playerGui:WaitForChild("Hotbar")
  378. local backpack = hotbar:WaitForChild("Backpack")
  379. local localScript = backpack:WaitForChild("LocalScript")
  380.  
  381. -- Get the Cooldown from the LocalScript
  382. local cooldown = localScript:WaitForChild("Cooldown")
  383.  
  384. -- Clone the Cooldown object
  385. local clonedCooldown = cooldown:Clone()
  386.  
  387. -- Get the destination path where the cloned object will be moved
  388. local hotbarSlot1 = hotbar:WaitForChild("Backpack"):WaitForChild("Hotbar"):WaitForChild(ToolNumber):WaitForChild("Base")
  389.  
  390. -- Move the cloned Cooldown to the desired location
  391. clonedCooldown.Parent = hotbarSlot1
  392. clonedCooldown.BackgroundColor3 = clr
  393.  
  394. local startSize = clonedCooldown.Size
  395. local endSize = UDim2.new(startSize.X.Scale, startSize.X.Offset, 0, 0) -- Fully hidden (height is zero)
  396.  
  397. -- Animate the cooldown to resize downwards
  398. spawn(function()
  399. local startTime = tick()
  400. local initialSize = clonedCooldown.Size
  401.  
  402. while tick() - startTime < cooldownTime do
  403. local elapsed = tick() - startTime
  404. local progress = elapsed / cooldownTime
  405.  
  406. -- Calculate the new size based on progress
  407. local newSize = UDim2.new(
  408. initialSize.X.Scale, -- Keep X size the same
  409. initialSize.X.Offset,
  410. initialSize.Y.Scale * (1 - progress), -- Decrease height
  411. initialSize.Y.Offset * (1 - progress)
  412. )
  413.  
  414. -- Update the Cooldown's size
  415. clonedCooldown.Size = newSize
  416.  
  417. wait()
  418. end
  419.  
  420. -- Ensure final size is set and destroy the cooldown
  421. clonedCooldown.Size = endSize
  422. clonedCooldown:Destroy()
  423. end)
  424. local p = game.Players.LocalPlayer
  425. local c = p.Character or p.CharacterAdded:Wait()
  426. local h = c:WaitForChild("HumanoidRootPart")
  427. h.Anchored = true
  428.  
  429. delay(0.9, function()
  430.  
  431. local p = game.Players.LocalPlayer
  432. local c = p.Character or p.CharacterAdded:Wait()
  433. local h = c:WaitForChild("HumanoidRootPart")
  434. h.Anchored = false
  435.  
  436. end)
  437.  
  438. local a = "rbxassetid://7815618175"
  439. local b = game.Players.LocalPlayer
  440. local c = b.Character or b.CharacterAdded:Wait()
  441. local d = c:WaitForChild("Humanoid")
  442. local e = game:GetService("RunService")
  443.  
  444. local f
  445.  
  446. local function checkAnimation()
  447. for _, g in ipairs(d:GetPlayingAnimationTracks()) do
  448. if g.Animation.AnimationId == a then
  449. g:Stop()
  450. end
  451. end
  452. end
  453.  
  454. f = e.RenderStepped:Connect(checkAnimation)
  455.  
  456. task.delay(0.9, function()
  457. f:Disconnect()
  458. end)
  459.  
  460. local P = game.Players.LocalPlayer
  461. local H = P.Character:WaitForChild("Humanoid")
  462.  
  463. local A = Instance.new("Animation")
  464. A.AnimationId = "rbxassetid://16945573694"
  465. local T = H:LoadAnimation(A)
  466. A.AnimationId = "rbxassetid://0"
  467. T:Play()
  468.  
  469. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  470. k.Name = "start"
  471. k.SoundId = "rbxassetid://16945495411"
  472. k.Volume = 2
  473. k:Play()
  474.  
  475. task.delay(0.67, function()
  476. local p = game.Players.LocalPlayer
  477. local c = p.Character or p.CharacterAdded:Wait()
  478. local r = c:WaitForChild("HumanoidRootPart")
  479.  
  480. local params = RaycastParams.new()
  481. params.FilterDescendantsInstances = {c}
  482. params.FilterType = Enum.RaycastFilterType.Blacklist
  483.  
  484. local rayCount = 36
  485. local radius = 4
  486. local m
  487. local function checkAllDirections()
  488. for i = 1, rayCount do
  489. local angle = math.rad((i / rayCount) * 360)
  490. local direction = Vector3.new(math.cos(angle), 0, math.sin(angle)) * radius
  491. local result = workspace:Raycast(r.Position, direction, params)
  492.  
  493. if result and result.Instance.Parent:FindFirstChild("HumanoidRootPart") then
  494. m = result.Instance.Parent
  495. local enemyPosition = m:FindFirstChild("HumanoidRootPart").Position
  496. local lookDirection = (enemyPosition - r.Position).Unit
  497. r.CFrame = CFrame.lookAt(r.Position, r.Position + lookDirection)
  498.  
  499. return m
  500. end
  501. end
  502. return nil
  503. end
  504.  
  505. local mr = checkAllDirections()
  506. if mr then
  507. local h = m:FindFirstChild("HumanoidRootPart")
  508. local hu = m:FindFirstChild("Humanoid")
  509. m.HumanoidRootPart.Anchored = true
  510. if h and hu then
  511. h.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -3)
  512. h.CFrame = CFrame.lookAt(h.Position, game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
  513.  
  514. local a = Instance.new("Animation")
  515. a.AnimationId = "rbxassetid://16945557433"
  516. local t = hu:LoadAnimation(a)
  517. t:Play()
  518. t.Stopped:Connect(function()
  519. m.HumanoidRootPart.Anchored = false
  520. for _, al in ipairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  521. if al:IsA("Tool") then
  522. al.RequiresHandle = false
  523. end
  524. end
  525. wait(0.5)
  526. game.Workspace.Live["Weakest Dummy"].HumanoidRootPart.CFrame = game.Workspace.Live["Weakest Dummy"].Part.CFrame
  527. game.Workspace.Live["Weakest Dummy"].HumanoidRootPart.CFrame = game.Workspace.Live["Weakest Dummy"].Part.CFrame * CFrame.Angles(math.rad(-90), 0, 0)
  528. end)
  529. local P = game.Players.LocalPlayer
  530. local H = P.Character:WaitForChild("Humanoid")
  531.  
  532. local A = Instance.new("Animation")
  533. A.AnimationId = "rbxassetid://16945550029"
  534. local T = H:LoadAnimation(A)
  535. A.AnimationId = "rbxassetid://0"
  536. T:Play()
  537.  
  538. local a = "rbxassetid://7815618175"
  539. local b = game.Players.LocalPlayer
  540. local c = b.Character or b.CharacterAdded:Wait()
  541. local d = c:WaitForChild("Humanoid")
  542. local e = game:GetService("RunService")
  543.  
  544. local f
  545.  
  546. local function checkAnimation()
  547. for _, g in ipairs(d:GetPlayingAnimationTracks()) do
  548. if g.Animation.AnimationId == a then
  549. g:Stop()
  550. end
  551. end
  552. end
  553.  
  554. f = e.RenderStepped:Connect(checkAnimation)
  555.  
  556. task.delay(6.2, function()
  557. f:Disconnect()
  558. end)
  559. task.spawn(function()
  560. if game.Players.LocalPlayer:GetAttribute("S_ReducedCamshake") == false then
  561. local RunService = game:GetService("RunService")
  562. local player = game.Players.LocalPlayer
  563. local camera = workspace.CurrentCamera
  564.  
  565. local shakeMagnitude = 1
  566. local shakeDuration = 0.1
  567. local shakeSpeed = 100
  568. local resetDelay = 0
  569.  
  570. local originalCFrame = camera.CFrame
  571.  
  572. local function shakeCamera(duration, magnitude, delayAfter)
  573. local startTime = tick()
  574. local connection
  575.  
  576. connection = RunService.RenderStepped:Connect(function()
  577. local elapsed = tick() - startTime
  578. if elapsed < duration then
  579. local shakeX = math.sin(elapsed * shakeSpeed) * magnitude
  580. local shakeY = math.cos(elapsed * shakeSpeed) * magnitude
  581. camera.CFrame = camera.CFrame * CFrame.Angles(math.rad(shakeX), math.rad(shakeY), 0)
  582. else
  583. connection:Disconnect()
  584. wait(delayAfter)
  585. camera.CFrame = originalCFrame
  586. end
  587. end)
  588. end
  589.  
  590. shakeCamera(shakeDuration, shakeMagnitude, resetDelay)
  591. wait(5.5)
  592. local RunService = game:GetService("RunService")
  593. local player = game.Players.LocalPlayer
  594. local camera = workspace.CurrentCamera
  595.  
  596. local shakeMagnitude = 1
  597. local shakeDuration = 0.1
  598. local shakeSpeed = 100
  599. local resetDelay = 0
  600.  
  601. local originalCFrame = camera.CFrame
  602.  
  603. local function shakeCamera(duration, magnitude, delayAfter)
  604. local startTime = tick()
  605. local connection
  606.  
  607. connection = RunService.RenderStepped:Connect(function()
  608. local elapsed = tick() - startTime
  609. if elapsed < duration then
  610. local shakeX = math.sin(elapsed * shakeSpeed) * magnitude
  611. local shakeY = math.cos(elapsed * shakeSpeed) * magnitude
  612. camera.CFrame = camera.CFrame * CFrame.Angles(math.rad(shakeX), math.rad(shakeY), 0)
  613. else
  614. connection:Disconnect()
  615. wait(delayAfter)
  616. camera.CFrame = originalCFrame
  617. end
  618. end)
  619. end
  620.  
  621. shakeCamera(shakeDuration, shakeMagnitude, resetDelay)
  622. else
  623. wait()
  624. end
  625. end)
  626. task.spawn(function()
  627. local player = game.Players.LocalPlayer
  628. local character = player.Character or player.CharacterAdded:Wait()
  629. local humanoid = character:WaitForChild("Humanoid")
  630.  
  631. -- Function to check if the player is looking at the target
  632. local function isLookingAt(target)
  633. local head = character:WaitForChild("Head")
  634. local direction = (target.Position - head.Position).unit
  635. local lookVector = head.CFrame.LookVector
  636. return (direction:Dot(lookVector) > 0.7) -- Adjust the threshold for how "looking at" is defined
  637. end
  638.  
  639. -- Function to update the health text in the BillboardGui for Weakest Dummy
  640. local function updateHealthText(dummyHumanoid)
  641. local billboardGui = dummyHumanoid.Parent:FindFirstChild("Head"):FindFirstChild("BillboardGui")
  642. if billboardGui then
  643. local textLabel = billboardGui:FindFirstChild("TextLabel")
  644. if textLabel then
  645. local currentHealth = dummyHumanoid.Health
  646. local maxHealth = dummyHumanoid.MaxHealth
  647. local healthPercentage = math.floor((currentHealth / maxHealth) * 100) -- Calculate the percentage
  648. textLabel.Text = healthPercentage .. "%" -- Update the TextLabel to show the percentage
  649.  
  650. -- Change color to red
  651. textLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  652.  
  653. -- Wait for 1 second, then change color back to white
  654. wait(1)
  655. textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  656.  
  657. -- Reset the health text to 100% if it reaches 0
  658. if currentHealth == 0 then
  659. dummyHumanoid.Health = maxHealth
  660. textLabel.Text = "100%"
  661. end
  662. end
  663. end
  664. end
  665.  
  666. -- Function to check for nearby characters and reduce health
  667. local function checkForNearbyCharacters()
  668. for _, targetCharacter in pairs(workspace.Live:GetChildren()) do
  669. if targetCharacter:IsA("Model") and targetCharacter:FindFirstChild("Humanoid") then
  670. local targetHumanoid = targetCharacter:FindFirstChild("Humanoid")
  671. local distance = (targetCharacter.HumanoidRootPart.Position - character.HumanoidRootPart.Position).magnitude
  672.  
  673. -- Check if the target is nearby and the player is looking at it
  674. if distance <= 6 and isLookingAt(targetCharacter.HumanoidRootPart) then
  675. -- Reduce health by 1
  676. targetHumanoid.Health = math.max(0, targetHumanoid.Health - 2)
  677. if targetHumanoid.Health == 0 then
  678. targetHumanoid.Health = targetHumanoid.MaxHealth
  679. end
  680. -- Check if the character is the "Weakest Dummy" for updating the text label
  681. if targetCharacter.Name == "Weakest Dummy" then
  682. -- Update the health text in the BillboardGui for Weakest Dummy
  683. updateHealthText(targetHumanoid)
  684. end
  685.  
  686. -- Break after reducing health once
  687. return
  688. end
  689. end
  690. end
  691. end
  692.  
  693. -- Call the function once when the script runs
  694. checkForNearbyCharacters()
  695. wait(0.15)
  696. local player = game.Players.LocalPlayer
  697. local character = player.Character or player.CharacterAdded:Wait()
  698. local humanoid = character:WaitForChild("Humanoid")
  699.  
  700. -- Function to update the health text in the BillboardGui for Weakest Dummy
  701. local function updateHealthText(dummyHumanoid)
  702. local billboardGui = dummyHumanoid.Parent:FindFirstChild("Head"):FindFirstChild("BillboardGui")
  703. if billboardGui then
  704. local textLabel = billboardGui:FindFirstChild("TextLabel")
  705. if textLabel then
  706. local currentHealth = dummyHumanoid.Health
  707. local maxHealth = dummyHumanoid.MaxHealth
  708. local healthPercentage = math.floor((currentHealth / maxHealth) * 100) -- Calculate the percentage
  709. textLabel.Text = healthPercentage .. "%" -- Update the TextLabel to show the percentage
  710.  
  711. -- Change color to red
  712. textLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  713.  
  714. -- Wait for 1 second, then change color back to white
  715. task.delay(1, function()
  716. textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  717. end)
  718.  
  719. -- Reset the health text to 100% if it reaches 0
  720. if currentHealth == 0 then
  721. dummyHumanoid.Health = maxHealth
  722. textLabel.Text = "100%"
  723. end
  724. end
  725. end
  726. end
  727.  
  728. -- Function to check for nearby characters and reduce health
  729. local function checkForNearbCharacters()
  730. for _, targetCharacter in pairs(workspace.Live:GetChildren()) do
  731. if targetCharacter:IsA("Model") and targetCharacter:FindFirstChild("Humanoid") then
  732. local targetHumanoid = targetCharacter:FindFirstChild("Humanoid")
  733. local distance = (targetCharacter.HumanoidRootPart.Position - character.HumanoidRootPart.Position).magnitude
  734.  
  735. -- Check if the target is nearby and the player is looking at it
  736. if targetCharacter ~= character and distance <= 6 then
  737. -- Reduce health by 2
  738. targetHumanoid.Health = math.max(0, targetHumanoid.Health - 2)
  739. if targetHumanoid.Health == 0 then
  740. targetHumanoid.Health = targetHumanoid.MaxHealth
  741. end
  742. -- Check if the character is the "Weakest Dummy" for updating the text label
  743. if targetCharacter.Name == "Weakest Dummy" then
  744. -- Update the health text in the BillboardGui for Weakest Dummy
  745. updateHealthText(targetHumanoid)
  746. end
  747.  
  748. -- Break after reducing health once
  749. return
  750. end
  751. end
  752. end
  753. end
  754.  
  755. -- Call the function twice, once after the other
  756. checkForNearbCharacters()
  757. wait(0.4) -- Wait before executing again
  758. checkForNearbCharacters()
  759. wait(0.5)
  760. local player = game.Players.LocalPlayer
  761. local character = player.Character or player.CharacterAdded:Wait()
  762. local humanoid = character:WaitForChild("Humanoid")
  763. local camera = workspace.CurrentCamera
  764.  
  765. local speed = 0.06595 -- How fast the health reduces (seconds between each health reduction)
  766. local duration = 1.3 -- Total time to keep reducing health (in seconds)
  767. local damageAmount = 1 -- The amount of health to reduce on each hit
  768.  
  769. -- Function to update the health text in the BillboardGui for Weakest Dummy
  770. local function updateHealthText(dummyHumanoid)
  771. local billboardGui = dummyHumanoid.Parent:FindFirstChild("Head"):FindFirstChild("BillboardGui")
  772. if billboardGui then
  773. local textLabel = billboardGui:FindFirstChild("TextLabel")
  774. if textLabel then
  775. local currentHealth = dummyHumanoid.Health
  776. local maxHealth = dummyHumanoid.MaxHealth
  777. local healthPercentage = math.floor((currentHealth / maxHealth) * 100) -- Calculate the percentage
  778. textLabel.Text = healthPercentage .. "%" -- Update the TextLabel to show the percentage
  779.  
  780. -- Change color to red for the entire barrage duration
  781. textLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  782. end
  783. end
  784. end
  785.  
  786. -- Function to revert the text color back to white after the barrage ends
  787. local function revertTextColor(dummyHumanoid)
  788. local billboardGui = dummyHumanoid.Parent:FindFirstChild("Head"):FindFirstChild("BillboardGui")
  789. if billboardGui then
  790. local textLabel = billboardGui:FindFirstChild("TextLabel")
  791. if textLabel then
  792. textLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- Revert back to white
  793. end
  794. end
  795. end
  796.  
  797. -- Function to reset the health to 100 if it reaches 0
  798. local function resetHealthIfZero(dummyHumanoid)
  799. if dummyHumanoid.Health <= 0 then
  800. dummyHumanoid.Health = dummyHumanoid.MaxHealth -- Reset to 100
  801. updateHealthText(dummyHumanoid) -- Update the TextLabel to show 100%
  802. end
  803. end
  804.  
  805. -- Function to check for nearby characters and reduce health
  806. local function checkForNearbyCharacters()
  807. for _, targetCharacter in pairs(workspace.Live:GetChildren()) do
  808. if targetCharacter:IsA("Model") and targetCharacter:FindFirstChild("Humanoid") then
  809. local targetHumanoid = targetCharacter:FindFirstChild("Humanoid")
  810. local distance = (targetCharacter.HumanoidRootPart.Position - character.HumanoidRootPart.Position).magnitude
  811.  
  812. -- Check if the target is nearby and the player is looking at it
  813. if targetCharacter ~= character and distance <= 10 then
  814. -- Reduce health by the specified amount
  815. targetHumanoid.Health = math.max(0, targetHumanoid.Health - damageAmount)
  816. if targetHumanoid.Health == 0 then
  817. targetHumanoid.Health = targetHumanoid.MaxHealth
  818. end
  819. -- If the character is "Weakest Dummy", update the text label
  820. if targetCharacter.Name == "Weakest Dummy" then
  821. updateHealthText(targetHumanoid)
  822. resetHealthIfZero(targetHumanoid)
  823. end
  824. end
  825. end
  826. end
  827. end
  828.  
  829. -- Function to repeatedly reduce health over the given duration
  830. local function barrageAttack()
  831. local startTime = tick() -- Record the start time
  832.  
  833. -- Loop while the total time has not yet reached the duration
  834. while tick() - startTime < duration do
  835. checkForNearbyCharacters() -- Reduce health
  836. wait(speed) -- Wait for the speed interval before reducing health again
  837. end
  838.  
  839. -- After the barrage ends, revert the color for "Weakest Dummy"
  840. for _, targetCharacter in pairs(workspace.Live:GetChildren()) do
  841. if targetCharacter:IsA("Model") and targetCharacter.Name == "Weakest Dummy" and targetCharacter:FindFirstChild("Humanoid") then
  842. local targetHumanoid = targetCharacter:FindFirstChild("Humanoid")
  843. revertTextColor(targetHumanoid)
  844. end
  845. end
  846. end
  847.  
  848. -- Execute the barrage attack
  849. barrageAttack()
  850. wait(2)
  851. local player = game.Players.LocalPlayer
  852. local character = player.Character or player.CharacterAdded:Wait()
  853. local humanoid = character:WaitForChild("Humanoid")
  854.  
  855. -- Function to update the health text in the BillboardGui for Weakest Dummy
  856. local function updateHealthText(dummyHumanoid)
  857. local billboardGui = dummyHumanoid.Parent:FindFirstChild("Head"):FindFirstChild("BillboardGui")
  858. if billboardGui then
  859. local textLabel = billboardGui:FindFirstChild("TextLabel")
  860. if textLabel then
  861. local currentHealth = dummyHumanoid.Health
  862. local maxHealth = dummyHumanoid.MaxHealth
  863. local healthPercentage = math.floor((currentHealth / maxHealth) * 100) -- Calculate the percentage
  864. textLabel.Text = healthPercentage .. "%" -- Update the TextLabel to show the percentage
  865.  
  866. -- Change color to red
  867. textLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  868.  
  869. -- Wait for 1 second, then change color back to white
  870. wait(1)
  871. textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  872.  
  873. -- Reset the health text to 100% if it reaches 0
  874. if currentHealth == 0 then
  875. dummyHumanoid.Health = maxHealth
  876. textLabel.Text = "100%"
  877. end
  878. end
  879. end
  880. end
  881.  
  882. -- Function to check for nearby characters and reduce health
  883. local function checkForNearbyCharacters()
  884. for _, targetCharacter in pairs(workspace.Live:GetChildren()) do
  885. if targetCharacter:IsA("Model") and targetCharacter:FindFirstChild("Humanoid") then
  886. local targetHumanoid = targetCharacter:FindFirstChild("Humanoid")
  887. local distance = (targetCharacter.HumanoidRootPart.Position - character.HumanoidRootPart.Position).magnitude
  888.  
  889. -- Check if the target is nearby and the player is looking at it
  890. if targetCharacter ~= character and distance <= 10 then
  891. -- Reduce health by 1
  892. targetHumanoid.Health = math.max(0, targetHumanoid.Health - 2)
  893. if targetHumanoid.Health == 0 then
  894. targetHumanoid.Health = targetHumanoid.MaxHealth
  895. end
  896. -- Check if the character is the "Weakest Dummy" for updating the text label
  897. if targetCharacter.Name == "Weakest Dummy" then
  898. -- Update the health text in the BillboardGui for Weakest Dummy
  899. updateHealthText(targetHumanoid)
  900. end
  901.  
  902. -- Break after reducing health once
  903. return
  904. end
  905. end
  906. end
  907. end
  908.  
  909. -- Call the function once when the script runs
  910. checkForNearbyCharacters()
  911. end)
  912. task.spawn(function()
  913.  
  914. task.delay(5.1, function()
  915.  
  916. task.spawn(function()
  917.  
  918.  
  919. local Attachment = game.ReplicatedStorage.Resources.KJEffects["lastkick"].Attachment:Clone()
  920. Attachment.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  921. for _, child in ipairs(Attachment:GetChildren()) do
  922. if child:IsA("ParticleEmitter") then
  923. child:Emit(7)
  924. end
  925. end
  926.  
  927. local smoker = game.ReplicatedStorage.Resources.KJEffects["lastkick"].smoker:Clone()
  928. smoker.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  929. for _, child in ipairs(smoker:GetChildren()) do
  930. if child:IsA("ParticleEmitter") then
  931. child:Emit(8)
  932. end
  933. end
  934.  
  935. end)
  936.  
  937. local r = game:GetService("ReplicatedStorage")
  938. local p = game.Players.LocalPlayer
  939. local c = p.Character or p.CharacterAdded:Wait()
  940. local h = c:WaitForChild("HumanoidRootPart")
  941. local e = r:WaitForChild("Resources"):WaitForChild("KJEffects")
  942. local s = {"Start", "End", "KickShockwave", "KickShockwave2"}
  943.  
  944. for _, v in ipairs(s) do
  945. local f = e:WaitForChild(v):Clone()
  946. f.Parent = workspace
  947. f.CFrame = h.CFrame * CFrame.new(0, 0, -5) * CFrame.Angles(math.rad(-90), 0, 0)
  948.  
  949. task.delay(0.05, function()
  950. f:Destroy()
  951. end)
  952. end
  953.  
  954. end)
  955.  
  956. delay(5.4, function()
  957.  
  958. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  959. k.Name = "explode"
  960. k.SoundId = "rbxassetid://16945723339"
  961. k.Volume = 2
  962. k:Play()
  963.  
  964. task.delay(0.8, function()
  965.  
  966. local p = game.Workspace:FindFirstChild("NoRotation")
  967. if p then
  968. p:Destroy()
  969. end
  970.  
  971. end)
  972.  
  973. end)
  974.  
  975. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  976. k.Name = "hit (1)"
  977. k.SoundId = "rbxassetid://16945517708"
  978. k.Volume = 2
  979. k:Play()
  980.  
  981. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  982. k.Name = "consecutive"
  983. k.SoundId = "rbxassetid://16945593216"
  984. k.Volume = 2
  985. k:Play()
  986.  
  987. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  988. k.Name = "wind"
  989. k.SoundId = "rbxassetid://16945691441"
  990. k.Volume = 2
  991. k:Play()
  992.  
  993. local p = game.Players.LocalPlayer
  994. local c = p.Character or p.CharacterAdded:Wait()
  995. local h = c:WaitForChild("HumanoidRootPart")
  996.  
  997. local a = Instance.new("Part")
  998. a.Size = Vector3.new(1, 1, 1)
  999. a.Anchored = true
  1000. a.CanCollide = true
  1001. a.Position = h.Position
  1002. a.Transparency = 1
  1003. a.Name = "NoRotation"
  1004. a.Parent = workspace
  1005.  
  1006. local w = Instance.new("WeldConstraint")
  1007. w.Part0 = a
  1008. w.Part1 = h
  1009. w.Parent = a
  1010.  
  1011. end)
  1012.  
  1013. local rs = game:GetService("ReplicatedStorage")
  1014. local ws = game:GetService("Workspace")
  1015. local plr = game.Players.LocalPlayer
  1016.  
  1017. local r = rs:WaitForChild("Resources")
  1018. local k = r:WaitForChild("KJEffects")
  1019. local p = k:WaitForChild("Ultikwind1")
  1020.  
  1021. local c = p:Clone()
  1022. c.Parent = ws:WaitForChild("Thrown")
  1023.  
  1024. local char = plr.Character or plr.CharacterAdded:Wait()
  1025. local hrp = char:WaitForChild("HumanoidRootPart")
  1026.  
  1027. local pos = hrp.Position + (hrp.CFrame.LookVector * 2)
  1028. c.Position = pos
  1029. c.CFrame = CFrame.new(pos, hrp.Position) * CFrame.Angles(0, math.rad(-90), 0)
  1030.  
  1031. for _, v in ipairs(c:GetChildren()) do
  1032. if v:IsA("SpecialMesh") then
  1033. v.Scale = Vector3.new(0.14, 0.30, 0.30)
  1034. end
  1035. end
  1036.  
  1037. task.delay(0.04, function()
  1038.  
  1039. c:Destroy()
  1040.  
  1041. end)
  1042.  
  1043. task.delay(1.19, function()
  1044.  
  1045. local p = game.Players.LocalPlayer
  1046. local c = p.Character or p.CharacterAdded:Wait()
  1047. local h = c:WaitForChild("HumanoidRootPart")
  1048.  
  1049. local r = game:GetService("ReplicatedStorage")
  1050. local rs = r.Resources
  1051. local ke = rs.KJEffects
  1052. local p1 = ke["1and2"]
  1053. local p2 = ke["1and2smoke"]
  1054.  
  1055. local p1_c = p1:Clone()
  1056. p1_c.CFrame = h.CFrame * CFrame.new(0, 0, -3)
  1057.  
  1058. local p2_c = p2:Clone()
  1059. p2_c.CFrame = h.CFrame * CFrame.new(0, 0, -5)
  1060.  
  1061. local t = c:FindFirstChild("Thrown") or Instance.new("Folder", c)
  1062. t.Name = "Thrown"
  1063.  
  1064. p1_c.Parent = t
  1065. p2_c.Parent = t
  1066.  
  1067. local a1 = p1_c:FindFirstChild("1and2")
  1068. if a1 then
  1069. for _, e in pairs(a1:GetDescendants()) do
  1070. if e:IsA("ParticleEmitter") then
  1071. e:Emit(28)
  1072. end
  1073. end
  1074. end
  1075.  
  1076. local a2 = p2_c:FindFirstChild("1and2smoke")
  1077. if a2 then
  1078. for _, e in pairs(a2:GetDescendants()) do
  1079. if e:IsA("ParticleEmitter") then
  1080. e:Emit(18)
  1081. end
  1082. end
  1083. end
  1084.  
  1085. task.delay(0.48, function()
  1086.  
  1087. local p = game.Players.LocalPlayer
  1088. local c = p.Character or p.CharacterAdded:Wait()
  1089. local h = c:WaitForChild("HumanoidRootPart")
  1090.  
  1091. local r = game:GetService("ReplicatedStorage")
  1092. local rs = r.Resources
  1093. local ke = rs.KJEffects
  1094. local p1 = ke["1and2"]
  1095. local p2 = ke["1and2smoke"]
  1096.  
  1097. local p1_c = p1:Clone()
  1098. p1_c.CFrame = h.CFrame * CFrame.new(0, 0, -3)
  1099.  
  1100. local p2_c = p2:Clone()
  1101. p2_c.CFrame = h.CFrame * CFrame.new(0, 0, -5)
  1102.  
  1103. local t = c:FindFirstChild("Thrown") or Instance.new("Folder", c)
  1104. t.Name = "Thrown"
  1105.  
  1106. p1_c.Parent = t
  1107. p2_c.Parent = t
  1108.  
  1109. local a1 = p1_c:FindFirstChild("1and2")
  1110. if a1 then
  1111. for _, e in pairs(a1:GetDescendants()) do
  1112. if e:IsA("ParticleEmitter") then
  1113. e:Emit(28)
  1114. end
  1115. end
  1116. end
  1117.  
  1118. local a2 = p2_c:FindFirstChild("1and2smoke")
  1119. if a2 then
  1120. for _, e in pairs(a2:GetDescendants()) do
  1121. if e:IsA("ParticleEmitter") then
  1122. e:Emit(18)
  1123. end
  1124. end
  1125. end
  1126.  
  1127. delay(0.5, function()
  1128.  
  1129. local BARRAGESMOKE = game.ReplicatedStorage.Resources.KJEffects["BARRAGESMOKE"].BARRAGESMOKE:Clone()
  1130. BARRAGESMOKE.Parent = game.Players.LocalPlayer.Character["Torso"]
  1131. for _, child in ipairs(BARRAGESMOKE:GetChildren()) do
  1132. if child:IsA("ParticleEmitter") then
  1133. child:Emit(50)
  1134. child.Enabled = true
  1135. child.Rate = 10000
  1136. end
  1137. end
  1138.  
  1139. local a = game:GetService("ReplicatedStorage")
  1140. local b = game:GetService("Workspace")
  1141. local c = game:GetService("Players")
  1142. local d = c.LocalPlayer
  1143. local e = d.Character
  1144. if not e then
  1145. e = d.CharacterAdded:Wait()
  1146. end
  1147. local f = e:WaitForChild("HumanoidRootPart")
  1148. local g = a:FindFirstChild("Resources")
  1149. if not g then
  1150. return
  1151. end
  1152. local h = g:FindFirstChild("KJEffects")
  1153. if not h then
  1154. return
  1155. end
  1156. local i = h:FindFirstChild("barrage")
  1157. if not i then
  1158. return
  1159. end
  1160. local j = i:Clone()
  1161. j.Parent = b
  1162. local k = f.CFrame.LookVector * 3
  1163. local l = f.CFrame + k
  1164. local m = CFrame.Angles(math.rad(47), 0, 0)
  1165. j.CFrame = l * m
  1166.  
  1167. local r = game:GetService("RunService")
  1168.  
  1169. local function n(o)
  1170. for _, p in pairs(o:GetDescendants()) do
  1171. if p:IsA("ParticleEmitter") then
  1172. p.Enabled = true
  1173. local delay = math.random() * 0.2 + 0.2
  1174. r.Heartbeat:Connect(function()
  1175. if delay <= 0 then
  1176. p:Emit(7)
  1177. delay = math.random() * 0.2 + 0.2
  1178. else
  1179. delay = delay - r.Heartbeat:Wait()
  1180. end
  1181. end)
  1182. end
  1183. end
  1184. end
  1185.  
  1186. n(j)
  1187.  
  1188. delay(1.21, function()
  1189.  
  1190. j:Destroy()
  1191.  
  1192. local p = game.Players.LocalPlayer
  1193. local c = p.Character or p.CharacterAdded:Wait()
  1194.  
  1195. local function d()
  1196. local t = c:WaitForChild("Torso")
  1197. local a = t:FindFirstChild("BARRAGESMOKE")
  1198.  
  1199. if a then
  1200. a:Destroy()
  1201. end
  1202. end
  1203.  
  1204. d()
  1205.  
  1206. local TweenService = game:GetService("TweenService")
  1207.  
  1208. local v820 = {
  1209. Character = game.Players.LocalPlayer.Character,
  1210. ShowaveCF = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 9, 0) * CFrame.Angles(0, 0, math.rad(90)),
  1211. CF = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame,
  1212. }
  1213.  
  1214. local function v483(params)
  1215. local origin = params.orig
  1216. local direction = params.dir
  1217. local ray = Ray.new(origin, direction)
  1218. local part, position = workspace:FindPartOnRay(ray)
  1219. return part, position
  1220. end
  1221.  
  1222. local _ = v820.Character.PrimaryPart
  1223. local v1398 = game.ReplicatedStorage:WaitForChild("Resources"):WaitForChild("KJEffects")
  1224. local l_CF_0 = v820.CF
  1225. local l_ShowaveCF_0 = v820.ShowaveCF
  1226. local v1402 = v1398:WaitForChild("uppercutimpact"):Clone()
  1227. local v3 = TweenService
  1228.  
  1229. v1402.CFrame = l_CF_0
  1230. v1402.Parent = workspace:WaitForChild("Thrown")
  1231.  
  1232. v3:Create(v1402, TweenInfo.new(0.06, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {
  1233. CFrame = v1402.CFrame * CFrame.new(0, 7.076, 0)
  1234. }):Play()
  1235.  
  1236. v3:Create(v1402:FindFirstChild("Mesh"), TweenInfo.new(0.06, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {
  1237. Scale = Vector3.new(0.7, 0, 0)
  1238. }):Play()
  1239.  
  1240. local v1403 = v1398:WaitForChild("uppercutmesh"):Clone()
  1241. v1403.CFrame = l_ShowaveCF_0
  1242. v1403.Parent = workspace:WaitForChild("Thrown")
  1243.  
  1244. v3:Create(v1403, TweenInfo.new(0.25, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {
  1245. CFrame = v1403.CFrame * CFrame.new(-11.931, 0, 0) * CFrame.Angles(-math.pi, 0, 0)
  1246. }):Play()
  1247.  
  1248. v3:Create(v1403:FindFirstChild("Mesh"), TweenInfo.new(0.25, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {
  1249. Scale = Vector3.new(0, 0.6, 0.6)
  1250. }):Play()
  1251.  
  1252. v3:Create(v1403:FindFirstChild("Decal"), TweenInfo.new(0.25, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {
  1253. Transparency = 1
  1254. }):Play()
  1255.  
  1256. local v1404, v1405 = v483({
  1257. orig = l_CF_0.Position + Vector3.yAxis,
  1258. dir = Vector3.new(0, -50, 0)
  1259. })
  1260. if v1404 then
  1261. local l_Color_0 = v1404.Color
  1262. local v1407 = v1398:WaitForChild("UPPERCUTSMOKE"):Clone()
  1263. v1407.Size = Vector3.new(5, 5, 5)
  1264. v1407.Position = v1405
  1265. v1407.Parent = workspace:WaitForChild("Thrown")
  1266. v1407.UPPERCUTSMOKE["1"].Color = ColorSequence.new(l_Color_0)
  1267. v1407.UPPERCUTSMOKE["2"].Color = ColorSequence.new(l_Color_0)
  1268. for _, child in ipairs(v1407:GetChildren()) do
  1269. if child:IsA("ParticleEmitter") then
  1270. child:Emit(6)
  1271. end
  1272. end
  1273. game:GetService("Debris"):AddItem(v1407, 2)
  1274. end
  1275.  
  1276. game:GetService("Debris"):AddItem(v1403, 1)
  1277. game:GetService("Debris"):AddItem(v1402, 1)
  1278.  
  1279. local UPPERCUTSMOKE = game.ReplicatedStorage.Resources.KJEffects["UPPERCUTSMOKE"].UPPERCUTSMOKE:Clone()
  1280. UPPERCUTSMOKE.Parent = game.Players.LocalPlayer.Character:WaitForChild("Torso")
  1281. for _, child in ipairs(UPPERCUTSMOKE:GetChildren()) do
  1282. if child:IsA("ParticleEmitter") then
  1283. child:Emit(6)
  1284. end
  1285. end
  1286.  
  1287. task.delay(0.7, function()
  1288.  
  1289. local r = game.ReplicatedStorage.Resources.KJEffects
  1290. local s = r["Left Leg"].speedlines:Clone()
  1291. local t = r["Left Leg"].starries:Clone()
  1292.  
  1293. s.Parent = game.Players.LocalPlayer.Character["Left Leg"]
  1294. t.Parent = game.Players.LocalPlayer.Character["Left Leg"]
  1295.  
  1296. if s:IsA("ParticleEmitter") then
  1297. s.Enabled = true
  1298. s.Rate = 10
  1299. s:Emit(11)
  1300. end
  1301.  
  1302. if t:IsA("ParticleEmitter") then
  1303. t.Enabled = true
  1304. t.Rate = 10
  1305. t:Emit(11)
  1306.  
  1307. task.delay(1.2, function()
  1308.  
  1309. t.Rate = 0
  1310. t:Emit(11)
  1311.  
  1312. s.Rate = 0
  1313. s:Emit(11)
  1314.  
  1315. end)
  1316.  
  1317. end
  1318.  
  1319. local player = game.Players.LocalPlayer
  1320. local character = player.Character or player.CharacterAdded:Wait()
  1321. local torso = character:WaitForChild("HumanoidRootPart")
  1322.  
  1323.  
  1324. local function createRock(size)
  1325. local rock = Instance.new("Part")
  1326. rock.Size = size
  1327. rock.Shape = Enum.PartType.Block
  1328. rock.Anchored = false
  1329. rock.CanCollide = true
  1330. rock.Material = Enum.Material.Slate
  1331. rock.BrickColor = BrickColor.Gray()
  1332. rock.Parent = workspace
  1333.  
  1334. local bodyAngularVelocity = Instance.new("BodyAngularVelocity")
  1335. bodyAngularVelocity.MaxTorque = Vector3.new(4000, 4000, 4000)
  1336. bodyAngularVelocity.P = 3000
  1337. bodyAngularVelocity.Parent = rock
  1338.  
  1339. local randomDirection = Vector3.new(
  1340. math.random() * 2 - 1,
  1341. math.random() * 2 - 1,
  1342. math.random() * 2 - 1
  1343. ).unit
  1344. local spinSpeed = math.random(50, 150)
  1345. bodyAngularVelocity.AngularVelocity = randomDirection * spinSpeed
  1346.  
  1347. return rock, bodyAngularVelocity
  1348. end
  1349.  
  1350. local function rotateRocks(rotationSpeed, fallDelay, launchSpeed, verticalForce, spinSpeed, slideSpeed, slideDuration, shrinkDuration)
  1351. local rocks = {}
  1352. local numberOfRocks = 12
  1353. local radius = 10
  1354. local rockHeight = 0.3
  1355.  
  1356. for i = 1, numberOfRocks do
  1357. local angle = (i / numberOfRocks) * math.pi * 2
  1358. local size = Vector3.new(0.3, 0.3, 0.3)
  1359. if i % 2 == 0 then
  1360. size = Vector3.new(0.65, 0.65, 0.65)
  1361. end
  1362. local rock, bodyAngularVelocity = createRock(size)
  1363. local offsetX = math.cos(angle) * radius
  1364. local offsetZ = math.sin(angle) * radius
  1365.  
  1366. rock.Position = torso.Position + Vector3.new(offsetX, rockHeight, offsetZ)
  1367. table.insert(rocks, { rock = rock, bodyAngularVelocity = bodyAngularVelocity })
  1368. end
  1369.  
  1370. local runService = game:GetService("RunService")
  1371. local startTime = tick()
  1372. local connection
  1373. connection = runService.RenderStepped:Connect(function()
  1374. local elapsed = tick() - startTime
  1375. local angleStep = (elapsed * rotationSpeed) % (math.pi * 2)
  1376.  
  1377. if elapsed >= 0.6 then
  1378. rotationSpeed = math.max(rotationSpeed * 0.95, 1)
  1379. end
  1380.  
  1381. for i, rockData in ipairs(rocks) do
  1382. local rock = rockData.rock
  1383. local angle = (i / numberOfRocks) * math.pi * 2 + angleStep
  1384. local offsetX = math.cos(angle) * radius
  1385. local offsetZ = math.sin(angle) * radius
  1386. rock.Position = torso.Position + Vector3.new(offsetX, rockHeight, offsetZ)
  1387. end
  1388.  
  1389. if elapsed >= fallDelay then
  1390. connection:Disconnect()
  1391. for _, rockData in ipairs(rocks) do
  1392. local rock = rockData.rock
  1393. local bodyAngularVelocity = rockData.bodyAngularVelocity
  1394. if bodyAngularVelocity then
  1395. bodyAngularVelocity:Destroy()
  1396. end
  1397.  
  1398. local tangentialVelocity = launchSpeed * (1 + math.random(-10, 10) / 100)
  1399. local bodyVelocity = Instance.new("BodyVelocity")
  1400. local outwardDirection = (rock.Position - torso.Position).unit
  1401. local randomHorizontal = Vector3.new(math.random(-1, 1), 0, math.random(-1, 1)) * 0.3
  1402. bodyVelocity.Velocity = (outwardDirection + randomHorizontal).unit * tangentialVelocity + Vector3.new(0, verticalForce, 0)
  1403. bodyVelocity.P = 1000
  1404. bodyVelocity.Parent = rock
  1405.  
  1406. local dust = Instance.new("ParticleEmitter")
  1407. dust.Texture = "rbxassetid://3527866534"
  1408. dust.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2), NumberSequenceKeypoint.new(1, 0)})
  1409. dust.Lifetime = NumberRange.new(0.5, 1)
  1410. dust.Rate = 100
  1411. dust.Speed = NumberRange.new(5, 10)
  1412. dust.Parent = rock
  1413. dust:Emit(50)
  1414.  
  1415. rock.Touched:Connect(function(hit)
  1416. if hit:IsA("Terrain") or (hit:IsA("BasePart") and hit.CanCollide) then
  1417. bodyVelocity:Destroy()
  1418.  
  1419. local glideVelocity = outwardDirection * slideSpeed
  1420. local glideStartTime = tick()
  1421.  
  1422. local glideConnection
  1423. glideConnection = runService.RenderStepped:Connect(function()
  1424. local glideElapsed = tick() - glideStartTime
  1425. if glideElapsed >= slideDuration then
  1426. glideConnection:Disconnect()
  1427. rock.Velocity = Vector3.new(0, 0, 0)
  1428.  
  1429.  
  1430. local shrinkStartTime = tick()
  1431. local shrinkConnection
  1432. shrinkConnection = runService.RenderStepped:Connect(function()
  1433. local shrinkElapsed = tick() - shrinkStartTime
  1434. local scale = math.max(0, rock.Size.X * (1 - (shrinkElapsed / shrinkDuration)))
  1435. rock.Size = Vector3.new(scale, scale, scale)
  1436. rock.Position = rock.Position - Vector3.new(0, (rock.Size.Y - scale) / 2, 0)
  1437.  
  1438. if scale <= 0 then
  1439. shrinkConnection:Disconnect()
  1440. rock:Destroy()
  1441. end
  1442. end)
  1443. else
  1444. rock.Velocity = glideVelocity * (1 - (glideElapsed / slideDuration))
  1445. end
  1446. end)
  1447. end
  1448. end)
  1449. end
  1450. end
  1451. end)
  1452. end
  1453.  
  1454.  
  1455. local rotationSpeed = 12
  1456. local fallDelay = 0.65
  1457. local launchSpeed = 25
  1458. local verticalForce = -10
  1459. local spinSpeed = 1200
  1460. local slideSpeed = 30
  1461. local slideDuration = 0.7
  1462. local shrinkDuration = 2.5
  1463.  
  1464. rotateRocks(rotationSpeed, fallDelay, launchSpeed, verticalForce, spinSpeed, slideSpeed, slideDuration, shrinkDuration)
  1465.  
  1466. local a = game.ReplicatedStorage.Resources.KJEffects["RUNAROUNDWIND"].RUNAROUNDWIND:Clone()
  1467. a.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  1468. for _, b in ipairs(a:GetChildren()) do
  1469. if b:IsA("ParticleEmitter") then
  1470. b:Emit(5)
  1471. b.Rate = 145
  1472. b.Enabled = true
  1473.  
  1474. task.delay(0.6, function()
  1475.  
  1476. b.Rate = 0
  1477.  
  1478. end)
  1479.  
  1480. end
  1481. end
  1482.  
  1483. local r = game.ReplicatedStorage:FindFirstChild("Resources")
  1484. if r then
  1485. local k = r:FindFirstChild("KJEffects")
  1486. if k then
  1487. local p = k:FindFirstChild("spinbeam")
  1488. if p then
  1489. local d = p:Clone()
  1490. local c = game.Players.LocalPlayer.Character
  1491. local hrp = c and c:FindFirstChild("HumanoidRootPart")
  1492. if hrp then
  1493. d.Parent = game.Workspace:FindFirstChild("Thrown") or Instance.new("Folder", game.Workspace)
  1494. d.CFrame = hrp.CFrame * CFrame.new(0, -2, 11)
  1495.  
  1496. local b = d:FindFirstChild("beam2")
  1497. if b then
  1498. local beams = b:GetDescendants()
  1499. for _, beam in ipairs(beams) do
  1500. if beam:IsA("Beam") then
  1501. beam.Enabled = true
  1502. beam.Transparency = NumberSequence.new(1)
  1503.  
  1504. local g = 0.8
  1505. local s = (1 - g) / 10
  1506. local ct = 1
  1507. local rs = game:GetService("RunService")
  1508.  
  1509. for i = 1, 10 do
  1510. rs.Heartbeat:Wait()
  1511. ct = ct - s
  1512. beam.Transparency = NumberSequence.new(ct)
  1513. end
  1514.  
  1515. task.delay(0.28, function()
  1516. local f = (1 - g) / 10
  1517. for i = 1, 10 do
  1518. rs.Heartbeat:Wait()
  1519. g = g + f
  1520. beam.Transparency = NumberSequence.new(math.min(g, 1))
  1521. end
  1522. end)
  1523. end
  1524. end
  1525. end
  1526. end
  1527. end
  1528. end
  1529. end
  1530.  
  1531. end)
  1532.  
  1533. end)
  1534.  
  1535. end)
  1536.  
  1537. end)
  1538.  
  1539. end)
  1540.  
  1541. end
  1542. end
  1543. end)
  1544. end
  1545. local isActivatedEnabled = false
  1546. local isEquippedConnected = false
  1547. local isUnequippedConnected = false
  1548.  
  1549. t.Activated:Connect(function()
  1550. if isActivatedEnabled then
  1551. rv()
  1552. end
  1553. end)
  1554.  
  1555. local equipConnection, unequipConnection
  1556.  
  1557. local function connectEquipAndUnequip()
  1558. if not isEquippedConnected then
  1559. equipConnection = t.Equipped:Connect(function()
  1560. rv()
  1561. end)
  1562. isEquippedConnected = true
  1563. end
  1564.  
  1565. if not isUnequippedConnected then
  1566. unequipConnection = t.Unequipped:Connect(function()
  1567. rv()
  1568. end)
  1569. isUnequippedConnected = true
  1570. end
  1571. end
  1572.  
  1573. local function disconnectEquipAndUnequip()
  1574. if isEquippedConnected and equipConnection then
  1575. equipConnection:Disconnect()
  1576. isEquippedConnected = false
  1577. end
  1578.  
  1579. if isUnequippedConnected and unequipConnection then
  1580. unequipConnection:Disconnect()
  1581. isUnequippedConnected = false
  1582. end
  1583. end
  1584.  
  1585. local function updateEventsBasedOnImage(iconImage)
  1586. local player = game.Players.LocalPlayer
  1587. local autoUnequip = player:GetAttribute("S_AutoUnequip")
  1588.  
  1589. if autoUnequip == false then
  1590. isActivatedEnabled = true
  1591. disconnectEquipAndUnequip()
  1592. clr = Color3.fromRGB(70, 166, 255)
  1593. elseif autoUnequip == true then
  1594. isActivatedEnabled = false
  1595. connectEquipAndUnequip()
  1596. clr = Color3.fromRGB(255, 78, 78)
  1597. end
  1598. end
  1599.  
  1600. game:GetService("RunService").Heartbeat:Connect(function()
  1601. local character = game.Players.LocalPlayer.Character
  1602. if not character or not character.Parent then return end
  1603.  
  1604. updateEventsBasedOnImage(iconImage)
  1605. end)
  1606.  
  1607.  
  1608. local ToolName = "Swift Sweep"
  1609. local function Script()
  1610. local h = game.Players.LocalPlayer.Character.HumanoidRootPart
  1611. h.Anchored = true
  1612. task.delay(1, function()
  1613. h.Anchored = false
  1614. end)
  1615. local Original = "rbxassetid://7815618175" -- The animation ID you're detecting
  1616.  
  1617. local player = game.Players.LocalPlayer
  1618. local character = player.Character or player.CharacterAdded:Wait()
  1619. local humanoid = character:WaitForChild("Humanoid")
  1620. local detectionActive = true -- Flag to control detection
  1621.  
  1622. -- Function to handle animation detection
  1623. local function onAnimationPlayed(animationTrack)
  1624. -- Check if detection is active and the animation ID matches
  1625. if detectionActive and animationTrack.Animation.AnimationId == Original then
  1626. -- Stop the detected animation
  1627. animationTrack:Stop()
  1628.  
  1629. -- Disable further detection after 7 seconds
  1630. task.delay(0.65, function()
  1631. detectionActive = false
  1632. end)
  1633. end
  1634. end
  1635.  
  1636. -- Connect the function to humanoid's AnimationPlayed event
  1637. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  1638. task.spawn(function()
  1639. wait(0.2535)
  1640. local l_Character_12 = game.Players.LocalPlayer.Character;
  1641. local _ = l_Character_12.PrimaryPart;
  1642. local v1627 = {};
  1643. local v874 = {
  1644. FollowUpKick = {
  1645. Length = 0.383,
  1646. CF = {
  1647. {
  1648. Time = 0,
  1649. Value = CFrame.new(-0.4329986572265625, -0.7049999237060547, -0.173004150390625) * CFrame.Angles(-2.931734264329995, 0.7261442352922407, -0.56327010949613)
  1650. },
  1651. {
  1652. Time = 0.05,
  1653. Value = CFrame.new(-0.4329986572265625, -0.7049999237060547, -0.173004150390625) * CFrame.Angles(-2.931734264329995, 0.7261442352922407, -0.56327010949613)
  1654. },
  1655. {
  1656. Time = 0.25,
  1657. Value = CFrame.new(-0.4329986572265625, -0.7049999237060547, -0.173004150390625) * CFrame.Angles(0.37625808014493756, -0.8867843396457988, -2.6789756820561763)
  1658. },
  1659. {
  1660. Time = 0.383,
  1661. Value = CFrame.new(-0.4329986572265625, -0.7049999237060547, -0.173004150390625) * CFrame.Angles(-2.5432239728360573, 1.085315542060154, -0.6489657757690516)
  1662. }
  1663. },
  1664. Transparency = {
  1665. {
  1666. Time = 0,
  1667. Value = 1
  1668. },
  1669. {
  1670. Time = 0.35,
  1671. Value = 0.5
  1672. },
  1673. {
  1674. Time = 0.383,
  1675. Value = 1
  1676. }
  1677. }
  1678. }
  1679. };
  1680. local function v873(v854, v855, v856)
  1681. local v857 = {};
  1682. for _, v859 in pairs(v854:GetChildren()) do
  1683. v857[v859.Name] = v859;
  1684. end;
  1685. local v864 = setmetatable({}, {
  1686. __index = function(_, v861)
  1687. return {
  1688. Clone = function(_)
  1689. local v863 = rawget(v857, v861):Clone();
  1690. if not table.find(v855, v863) then
  1691. table.insert(v855, v863);
  1692. end;
  1693. return v863;
  1694. end
  1695. };
  1696. end
  1697. });
  1698. local v865 = {
  1699. _maid = {}
  1700. };
  1701. v865._maid.give = function(_, v867)
  1702. if not table.find(v855, v867) then
  1703. table.insert(v855, v867);
  1704. end;
  1705. return v867;
  1706. end;
  1707. v865._maid.giveTask = function(_, v869)
  1708. if not table.find(v855, v869) then
  1709. table.insert(v855, v869);
  1710. end;
  1711. return v869;
  1712. end;
  1713. local function v872()
  1714. if v864 and v865 then
  1715. table.clear(v864);
  1716. table.clear(v865);
  1717. end;
  1718. if v857 then
  1719. table.clear(v857);
  1720. v857 = nil;
  1721. end;
  1722. v865 = nil;
  1723. v864 = nil;
  1724. if v855 then
  1725. for v870, v871 in pairs(v855) do
  1726. if typeof(v871) == "RBXScriptConnection" then
  1727. v871:Disconnect();
  1728. elseif typeof(v871) == "Instance" then
  1729. v871:Destroy();
  1730. end;
  1731. v855[v870] = nil;
  1732. end;
  1733. table.clear(v855);
  1734. end;
  1735. v855 = nil;
  1736. end;
  1737. task.delay(v856 or 10, v872);
  1738. return v864, v865, v872;
  1739. end;
  1740.  
  1741. local function v890(v875, v876, v877, v878)
  1742. local v879 = v877 or 1;
  1743. local v880 = v874[v876];
  1744. local v881 = v878:Clone();
  1745. v881.Parent = workspace.Thrown;
  1746. v881:WaitForChild("Weld").Part0 = v875:WaitForChild("HumanoidRootPart");
  1747. v881.Decal.Transparency = 1;
  1748. v881.Weld.C0 = v880.CF[1].Value;
  1749. for v882, v883 in pairs(v880.CF) do
  1750. local v884 = v883.Time - (v880.CF[v882 - 1] and v880.CF[v882 - 1].Time or 0);
  1751. local v885 = v880.CF[v882 - 1] and v880.CF[v882 - 1].Time or 0;
  1752. task.delay(v885 / v879, function()
  1753. game:GetService("TweenService"):Create(v881.Weld, TweenInfo.new(v884 / v879, Enum.EasingStyle.Linear), {
  1754. C0 = v883.Value
  1755. }):Play();
  1756. end);
  1757. end;
  1758. for v886, v887 in pairs(v880.Transparency) do
  1759. local v888 = v887.Time - (v880.Transparency[v886 - 1] and v880.Transparency[v886 - 1].Time or 0);
  1760. local v889 = v880.Transparency[v886 - 1] and v880.Transparency[v886 - 1].Time or 0;
  1761. task.delay(v889 / v879, function()
  1762. game:GetService("TweenService"):Create(v881.Decal, TweenInfo.new(v888 / v879, Enum.EasingStyle.Linear), {
  1763. Transparency = v887.Value
  1764. }):Play();
  1765. end);
  1766. end;
  1767. task.delay(v880.Length / v879, function()
  1768. v881:Destroy();
  1769. end);
  1770. end;
  1771.  
  1772. local v1628, _ = v873(game.ReplicatedStorage.Resources.KJEffects, v1627, 5);
  1773.  
  1774. local v1633 = v1628.SweepCresc:Clone();
  1775. v1633.CFrame = l_Character_12.HumanoidRootPart.CFrame * CFrame.new(0, -2.632, 0) * CFrame.Angles(0, 0.6981317007977318, 3.141592653589793);
  1776. v1633.Parent = workspace.Thrown;
  1777. game:GetService("TweenService"):Create(v1633.Decal, TweenInfo.new(0.133, Enum.EasingStyle.Linear), {
  1778. Transparency = 0.8
  1779. }):Play();
  1780. task.delay(0.133, function()
  1781. game:GetService("TweenService"):Create(v1633.Decal, TweenInfo.new(0.217, Enum.EasingStyle.Linear), {
  1782. Transparency = 1
  1783. }):Play();
  1784. end);
  1785. game:GetService("TweenService"):Create(v1633, TweenInfo.new(0.183, Enum.EasingStyle.Linear), {
  1786. CFrame = l_Character_12.HumanoidRootPart.CFrame * CFrame.new(0, -2.632, 0) * CFrame.Angles(0, 2.6179938779914944, 3.141592653589793)
  1787. }):Play();
  1788. task.delay(0.183, function()
  1789. game:GetService("TweenService"):Create(v1633, TweenInfo.new(0.167, Enum.EasingStyle.Linear), {
  1790. CFrame = l_Character_12.HumanoidRootPart.CFrame * CFrame.new(0, -2.632, 0) * CFrame.Angles(0, 4.886921905584122, 3.141592653589793)
  1791. }):Play();
  1792. end);
  1793. task.delay(0.033, function()
  1794. local v1634 = v1628.particlespinner:Clone();
  1795. v1634.CFrame = l_Character_12.HumanoidRootPart.CFrame * CFrame.new(0, -3, 0) * CFrame.Angles(0, 0.1484577061746377, 0);
  1796. v1634.Parent = workspace.Thrown;
  1797. v1634.Attachment.ParticleEmitter.Enabled = true;
  1798. v1634.Attachment.rocks.Enabled = true;
  1799. game:GetService("TweenService"):Create(v1634, TweenInfo.new(0.167, Enum.EasingStyle.Linear), {
  1800. CFrame = l_Character_12.HumanoidRootPart.CFrame * CFrame.new(0, -2.632, 0) * CFrame.Angles(0, 2.9670597283903604, 0)
  1801. }):Play();
  1802. task.delay(0.167, function()
  1803. v1634.Attachment.ParticleEmitter.Enabled = false;
  1804. v1634.Attachment.rocks.Enabled = false;
  1805. game:GetService("Debris"):AddItem(v1634, 9);
  1806. end);
  1807. end);
  1808. end)
  1809. local player = game.Players.LocalPlayer
  1810. repeat wait() until player.Character.Humanoid
  1811. local humanoid = player.Character.Humanoid
  1812. local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
  1813. local UserInputService = game:GetService("UserInputService")
  1814. debounce = false -- Activate debounce
  1815. local anim = Instance.new("Animation")
  1816. anim.AnimationId = "rbxassetid://16944265635"
  1817. local playAnim = humanoid:LoadAnimation(anim)
  1818. anim.AnimationId = "rbxassetid://0" -- don't change anything here
  1819.  
  1820. spawn(function()
  1821. wait(1)
  1822. debounce = true
  1823. end)
  1824.  
  1825. playAnim:Play()
  1826. playAnim:AdjustSpeed(1)
  1827.  
  1828. local Players = game:GetService("Players")
  1829. local Character = Players.LocalPlayer.Character or Players.LocalPlayer.CharacterAdded:Wait()
  1830.  
  1831. local animationPlayed = false
  1832. local s = Instance.new("Sound")
  1833. s.SoundId = "rbxassetid://16944636115"
  1834. s.Volume = 1
  1835. s.Parent = Character.HumanoidRootPart
  1836. s:Play()
  1837. wait(0.38)
  1838. local player = game.Players.LocalPlayer
  1839. local character = player.Character or player.CharacterAdded:Wait()
  1840. local replicatedStorage = game:GetService("ReplicatedStorage")
  1841. local floatingRock = game.ReplicatedStorage.Resources.KJEffects.particlespinner
  1842.  
  1843. -- Clone the FloatingRock part
  1844. local rockClone = floatingRock:Clone()
  1845.  
  1846. -- Set the rock's parent to Workspace
  1847. rockClone.Parent = workspace
  1848. rockClone.CanCollide = false
  1849. rockClone.Anchored = false
  1850. rockClone.Size = Vector3.new(1, 1, 1)
  1851.  
  1852. -- Position the rock a little bit forward and left of the player
  1853. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  1854. rockClone.CFrame = humanoidRootPart.CFrame * CFrame.new(-6, -2.5, 0)
  1855.  
  1856. -- Create a weld to attach the rock to the character
  1857. local weld = Instance.new("WeldConstraint")
  1858. weld.Part0 = humanoidRootPart
  1859. weld.Part1 = rockClone
  1860. weld.Parent = rockClone
  1861.  
  1862. -- Function to fade out the ParticleEmitters and then destroy the particlespinner
  1863. local function fadeOutAndDestroy()
  1864. -- Find the Attachment in the rockClone
  1865. local attachment = rockClone:FindFirstChild("Attachment")
  1866. if attachment then
  1867. -- Find all ParticleEmitters inside the Attachment
  1868. local particleEmitters = attachment:GetChildren()
  1869. for _, emitter in ipairs(particleEmitters) do
  1870. if emitter:IsA("ParticleEmitter") then
  1871. -- Fade out each ParticleEmitter from 0.3 to 1
  1872. for i = 7, 10 do
  1873. emitter.Transparency = NumberSequence.new(0.98 + (i / 10) * (1 - 0.98)) -- Fade from 0.3 to 1
  1874. wait() -- Adjust duration for speed of fade out
  1875. end
  1876. end
  1877. end
  1878. end
  1879.  
  1880. -- Destroy the entire particlespinner after fading out
  1881. rockClone:Destroy()
  1882. end
  1883.  
  1884. -- Start the fade out process
  1885. fadeOutAndDestroy()
  1886. end
  1887.  
  1888. local t = Instance.new("Tool")
  1889. t.Name = ToolName
  1890. t.RequiresHandle = false -- like holding an object if not add anything you will hold invisible thing
  1891. t.CanBeDropped = false
  1892. t.Parent = game.Players.LocalPlayer.Backpack
  1893. t.Activated:Connect(function() -- instead of Activated you can do Equipped or Unequipped
  1894. Script()
  1895. end)
  1896.  
  1897. local ToolName = "Collateral Ruin"
  1898. local function Script()
  1899. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  1900. k.SoundId = "rbxassetid://17344162331"
  1901. k:Play()
  1902. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  1903. k.SoundId = "rbxassetid://17325303798"
  1904. k:Play()
  1905. k.Volume = 2
  1906. local p = game.Players.LocalPlayer
  1907. local Humanoid = p.Character:WaitForChild("Humanoid")
  1908. local AnimAnim = Instance.new("Animation")
  1909. AnimAnim.AnimationId = "rbxassetid://17325254223"
  1910. local Anim = Humanoid:LoadAnimation(AnimAnim)
  1911. AnimAnim.AnimationId = "rbxassetid://0"
  1912. Anim:Play()
  1913. delay(1.2, function()
  1914. local v = game.ReplicatedStorage.Resources.KJEffects.spinnerthing.spinningparty:Clone()
  1915. v.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  1916. for _, c in ipairs(v:GetChildren()) do
  1917. if c:IsA("ParticleEmitter") then
  1918. c.Enabled = true
  1919. delay(0.45, function()
  1920. v:Destroy()
  1921. end)
  1922. end
  1923. end
  1924. local v = game.ReplicatedStorage.Resources.KJEffects.spinnerthing.spinningpartysmoke:Clone()
  1925. v.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  1926. for _, c in ipairs(v:GetChildren()) do
  1927. if c:IsA("ParticleEmitter") then
  1928. c.Enabled = true
  1929. delay(0.45, function()
  1930. v:Destroy()
  1931. end)
  1932. end
  1933. end
  1934. end)
  1935. wait(1.7)
  1936. local boom1 = game.ReplicatedStorage.Resources.KJEffects["spinnerthing"].spinningpartysmoke:Clone()
  1937. boom1.Parent = game.Players.LocalPlayer.Character:FindFirstChild("Torso") or game.Players.LocalPlayer.Character:FindFirstChild("UpperTorso")
  1938. for _, child in ipairs(boom1:GetChildren()) do
  1939. if child:IsA("ParticleEmitter") then
  1940. child:Emit(9) -- Emit particles
  1941. end
  1942. end
  1943. local collateral1 = game.ReplicatedStorage.Resources.KJEffects["spinnyweenyspinner"].Attachment:Clone()
  1944. collateral1.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  1945. for _, child in ipairs(collateral1:GetChildren()) do
  1946. if child:IsA("ParticleEmitter") then
  1947. child:Emit(9)
  1948. end
  1949. end
  1950.  
  1951. -- Clone spinnyweenyspinner's Emit and parent it to HumanoidRootPart
  1952. local collateral2 = game.ReplicatedStorage.Resources.KJEffects["spinnyweenyspinner"].Emit:Clone()
  1953. collateral2.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  1954. for _, child in ipairs(collateral2:GetChildren()) do
  1955. if child:IsA("ParticleEmitter") then
  1956. child:Emit(9)
  1957. end
  1958. end
  1959.  
  1960. -- (Complete this section based on the desired object you're cloning)
  1961. local collateral4 = game.ReplicatedStorage.Resources.KJEffects["spinnerthing"].spinningpartysmoke:Clone() -- Assuming it’s this
  1962. collateral4.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  1963. for _, child in ipairs(collateral4:GetChildren()) do
  1964. if child:IsA("ParticleEmitter") then
  1965. child:Emit(10)
  1966. end
  1967. end
  1968.  
  1969. local location = game.ReplicatedStorage.Resources.KJEffects.SpinnerEndWind.spinningemit
  1970. local vfx = location:Clone()
  1971. vfx.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  1972.  
  1973. for _, child in ipairs(vfx:GetChildren()) do
  1974. if child:IsA("ParticleEmitter") then
  1975. child:Emit(20)
  1976. child.Enabled = true
  1977. end
  1978. end
  1979. local fine3 = game.ReplicatedStorage.Resources.KJEffects["fine...Emit"].EmitBatch2:Clone()
  1980. fine3.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  1981. for _, child in ipairs(fine3:GetChildren()) do
  1982. if child:IsA("ParticleEmitter") then -- Check if the child is a ParticleEmitter
  1983. child:Emit(1) -- Emit 20 particles
  1984. end
  1985. end
  1986. local Sound = 17344162159
  1987. local Volume = 1
  1988. local Speed = 1
  1989.  
  1990. s= Instance.new("Sound", game.Players.LocalPlayer.Character.HumanoidRootPart)
  1991. s.SoundId = "rbxassetid://" .. Sound
  1992. s:Play()
  1993. s.Volume = Volume
  1994. s.PlaybackSpeed = Speed
  1995. end
  1996.  
  1997. local t = Instance.new("Tool")
  1998. t.Name = ToolName
  1999. t.RequiresHandle = false -- like holding an object if not add anything you will hold invisible thing
  2000. t.CanBeDropped = false
  2001. t.Parent = game.Players.LocalPlayer.Backpack
  2002. t.Activated:Connect(function() -- instead of Activated you can do Equipped or Unequipped
  2003. Script()
  2004. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement