ILovePotato

Untitled

Jan 22nd, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.64 KB | None | 0 0
  1. local a = game:GetService("StarterGui")
  2. a:SetCore("SendNotification", {
  3. Title = "NOTIFICATION";
  4. Text = "MADE BY KJ HUB.";
  5. Duration = 5;
  6. Icon = "rbxassetid://17140853847"
  7. })
  8.  
  9. local p = game.Players.LocalPlayer
  10. local r = p.Backpack:FindFirstChild("Ravage")
  11. if r then
  12. local a = r:Destroy()
  13. end
  14.  
  15. local p = game.Players.LocalPlayer
  16. local b = p.Backpack
  17. local t = Instance.new("Tool")
  18. t.Name = "Ravage"
  19. t.RequiresHandle = false
  20.  
  21. local c = true
  22. local d = 28
  23.  
  24. t.Activated:Connect(function()
  25.  
  26. if not c then
  27. return
  28. end
  29.  
  30. c = false
  31.  
  32. delay(d, function()
  33. c = true
  34. end)
  35.  
  36. local b = 28
  37. local c = game.Players.LocalPlayer
  38. local d = c:WaitForChild("PlayerGui")
  39. local e = d:WaitForChild("Hotbar")
  40. local f = e:WaitForChild("Backpack")
  41. local g = f:WaitForChild("Hotbar")
  42.  
  43. for n = 1, 13 do
  44. local h = g:FindFirstChild(tostring(n))
  45. if h then
  46. local i = h:FindFirstChild("Base")
  47. if i then
  48. local j = i:FindFirstChild("ToolName")
  49. if j and j.Text == "Ravage" then
  50. local k = f:WaitForChild("LocalScript"):WaitForChild("Cooldown")
  51. local l = k:Clone()
  52.  
  53. l.Parent = h
  54. l.BackgroundColor3 = Color3.fromRGB(255, 78, 78)
  55.  
  56. local m = l.Size
  57. local n = UDim2.new(m.X.Scale, m.X.Offset, 0, 0)
  58.  
  59. spawn(function()
  60. local o = tick()
  61. local p = l.Size
  62.  
  63. while tick() - o < b do
  64. local q = tick() - o
  65. local r = q / b
  66.  
  67. local s = UDim2.new(
  68. p.X.Scale,
  69. p.X.Offset,
  70. p.Y.Scale * (1 - r),
  71. p.Y.Offset * (1 - r)
  72. )
  73.  
  74. l.Size = s
  75. wait()
  76. end
  77.  
  78. l.Size = n
  79. l:Destroy()
  80. end)
  81. end
  82. end
  83. end
  84. end
  85.  
  86. local p = game.Players.LocalPlayer
  87. local c = p.Character or p.CharacterAdded:Wait()
  88. local h = c:WaitForChild("HumanoidRootPart")
  89. h.Anchored = true
  90.  
  91. delay(0.9, function()
  92.  
  93. local p = game.Players.LocalPlayer
  94. local c = p.Character or p.CharacterAdded:Wait()
  95. local h = c:WaitForChild("HumanoidRootPart")
  96. h.Anchored = false
  97.  
  98. end)
  99.  
  100. local a = "rbxassetid://7815618175"
  101. local b = game.Players.LocalPlayer
  102. local c = b.Character or b.CharacterAdded:Wait()
  103. local d = c:WaitForChild("Humanoid")
  104. local e = game:GetService("RunService")
  105.  
  106. local f
  107.  
  108. local function checkAnimation()
  109. for _, g in ipairs(d:GetPlayingAnimationTracks()) do
  110. if g.Animation.AnimationId == a then
  111. g:Stop()
  112. end
  113. end
  114. end
  115.  
  116. f = e.RenderStepped:Connect(checkAnimation)
  117.  
  118. task.delay(0.9, function()
  119. f:Disconnect()
  120. end)
  121.  
  122. local P = game.Players.LocalPlayer
  123. local H = P.Character:WaitForChild("Humanoid")
  124.  
  125. local A = Instance.new("Animation")
  126. A.AnimationId = "rbxassetid://16945573694"
  127. local T = H:LoadAnimation(A)
  128. A.AnimationId = "rbxassetid://0"
  129. T:Play()
  130.  
  131. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  132. k.Name = "start"
  133. k.SoundId = "rbxassetid://16945495411"
  134. k.Volume = 2
  135. k:Play()
  136.  
  137. task.delay(0.67, function()
  138.  
  139. local p = game.Players.LocalPlayer
  140. local c = p.Character or p.CharacterAdded:Wait()
  141. local r = c:WaitForChild("HumanoidRootPart")
  142.  
  143. local o = r.Position
  144. local d = r.CFrame.LookVector * 4
  145. local params = RaycastParams.new()
  146. params.FilterDescendantsInstances = {c}
  147.  
  148. local res = workspace:Raycast(o, d, params)
  149.  
  150. if res and res.Instance.Parent:FindFirstChild("HumanoidRootPart") then
  151. local m = res.Instance.Parent
  152. local h = m:FindFirstChild("HumanoidRootPart")
  153. local hu = m:FindFirstChild("Humanoid")
  154.  
  155. if h and hu then
  156. h.CFrame = r.CFrame * CFrame.new(0, 0, -3)
  157. h.CFrame = CFrame.lookAt(h.Position, r.Position)
  158.  
  159. local a = Instance.new("Animation")
  160. a.AnimationId = "rbxassetid://16945557433"
  161. local t = hu:LoadAnimation(a)
  162. t:Play()
  163.  
  164. local P = game.Players.LocalPlayer
  165. local H = P.Character:WaitForChild("Humanoid")
  166.  
  167. local A = Instance.new("Animation")
  168. A.AnimationId = "rbxassetid://16945550029"
  169. local T = H:LoadAnimation(A)
  170. A.AnimationId = "rbxassetid://0"
  171. T:Play()
  172.  
  173. local a = "rbxassetid://7815618175"
  174. local b = game.Players.LocalPlayer
  175. local c = b.Character or b.CharacterAdded:Wait()
  176. local d = c:WaitForChild("Humanoid")
  177. local e = game:GetService("RunService")
  178.  
  179. local f
  180.  
  181. local function checkAnimation()
  182. for _, g in ipairs(d:GetPlayingAnimationTracks()) do
  183. if g.Animation.AnimationId == a then
  184. g:Stop()
  185. end
  186. end
  187. end
  188.  
  189. f = e.RenderStepped:Connect(checkAnimation)
  190.  
  191. task.delay(6.2, function()
  192. f:Disconnect()
  193. end)
  194.  
  195. task.spawn(function()
  196.  
  197. task.delay(5.1, function()
  198.  
  199. task.spawn(function()
  200.  
  201. task.spawn(function()
  202.  
  203. local R = game:GetService("RunService")
  204. local P = game.Players.LocalPlayer
  205. local C = workspace.CurrentCamera
  206.  
  207. local M = 1
  208. local D = 0.3
  209. local RD = 0.3
  210.  
  211. local OC = C.CFrame
  212.  
  213. local function s(d, m, rd)
  214. local st = tick()
  215. local c
  216.  
  217. c = R.RenderStepped:Connect(function()
  218. local e = tick() - st
  219. if e < d then
  220. local sx = math.random(-m, m)
  221. local sy = math.random(-m, m)
  222. C.CFrame = C.CFrame * CFrame.Angles(math.rad(sx), math.rad(sy), 0)
  223. else
  224. c:Disconnect()
  225. wait(rd)
  226. end
  227. end)
  228. end
  229.  
  230. s(D, M, RD)
  231.  
  232. end)
  233.  
  234. local Attachment = game.ReplicatedStorage.Resources.KJEffects["lastkick"].Attachment:Clone()
  235. Attachment.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  236. for _, child in ipairs(Attachment:GetChildren()) do
  237. if child:IsA("ParticleEmitter") then
  238. child:Emit(7)
  239. end
  240. end
  241.  
  242. local smoker = game.ReplicatedStorage.Resources.KJEffects["lastkick"].smoker:Clone()
  243. smoker.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  244. for _, child in ipairs(smoker:GetChildren()) do
  245. if child:IsA("ParticleEmitter") then
  246. child:Emit(8)
  247. end
  248. end
  249.  
  250. end)
  251.  
  252. local r = game:GetService("ReplicatedStorage")
  253. local p = game.Players.LocalPlayer
  254. local c = p.Character or p.CharacterAdded:Wait()
  255. local h = c:WaitForChild("HumanoidRootPart")
  256. local e = r:WaitForChild("Resources"):WaitForChild("KJEffects")
  257. local s = {"Start", "End", "KickShockwave", "KickShockwave2"}
  258.  
  259. for _, v in ipairs(s) do
  260. local f = e:WaitForChild(v):Clone()
  261. f.Parent = workspace
  262. f.CFrame = h.CFrame * CFrame.new(0, 0, -5) * CFrame.Angles(math.rad(-90), 0, 0)
  263.  
  264. task.delay(0.05, function()
  265. f:Destroy()
  266. end)
  267. end
  268.  
  269. end)
  270.  
  271. delay(5.4, function()
  272.  
  273. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  274. k.Name = "explode"
  275. k.SoundId = "rbxassetid://16945723339"
  276. k.Volume = 2
  277. k:Play()
  278.  
  279. task.delay(0.8, function()
  280.  
  281. local p = game.Workspace:FindFirstChild("NoRotation")
  282. if p then
  283. p:Destroy()
  284. end
  285.  
  286. end)
  287.  
  288. end)
  289.  
  290. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  291. k.Name = "hit (1)"
  292. k.SoundId = "rbxassetid://16945517708"
  293. k.Volume = 2
  294. k:Play()
  295.  
  296. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  297. k.Name = "consecutive"
  298. k.SoundId = "rbxassetid://16945593216"
  299. k.Volume = 2
  300. k:Play()
  301.  
  302. local k = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  303. k.Name = "wind"
  304. k.SoundId = "rbxassetid://16945691441"
  305. k.Volume = 2
  306. k:Play()
  307.  
  308. local p = game.Players.LocalPlayer
  309. local c = p.Character or p.CharacterAdded:Wait()
  310. local h = c:WaitForChild("HumanoidRootPart")
  311.  
  312. local a = Instance.new("Part")
  313. a.Size = Vector3.new(1, 1, 1)
  314. a.Anchored = true
  315. a.CanCollide = true
  316. a.Position = h.Position
  317. a.Transparency = 1
  318. a.Name = "NoRotation"
  319. a.Parent = workspace
  320.  
  321. local w = Instance.new("WeldConstraint")
  322. w.Part0 = a
  323. w.Part1 = h
  324. w.Parent = a
  325.  
  326. end)
  327.  
  328. local rs = game:GetService("ReplicatedStorage")
  329. local ws = game:GetService("Workspace")
  330. local plr = game.Players.LocalPlayer
  331.  
  332. local r = rs:WaitForChild("Resources")
  333. local k = r:WaitForChild("KJEffects")
  334. local p = k:WaitForChild("Ultikwind1")
  335.  
  336. local c = p:Clone()
  337. c.Parent = ws:WaitForChild("Thrown")
  338.  
  339. local char = plr.Character or plr.CharacterAdded:Wait()
  340. local hrp = char:WaitForChild("HumanoidRootPart")
  341.  
  342. local pos = hrp.Position + (hrp.CFrame.LookVector * 2)
  343. c.Position = pos
  344. c.CFrame = CFrame.new(pos, hrp.Position) * CFrame.Angles(0, math.rad(-90), 0)
  345.  
  346. for _, v in ipairs(c:GetChildren()) do
  347. if v:IsA("SpecialMesh") then
  348. v.Scale = Vector3.new(0.14, 0.30, 0.30)
  349. end
  350. end
  351.  
  352. task.delay(0.04, function()
  353.  
  354. c:Destroy()
  355.  
  356. end)
  357.  
  358. task.delay(1.19, function()
  359.  
  360. local p = game.Players.LocalPlayer
  361. local c = p.Character or p.CharacterAdded:Wait()
  362. local h = c:WaitForChild("HumanoidRootPart")
  363.  
  364. local r = game:GetService("ReplicatedStorage")
  365. local rs = r.Resources
  366. local ke = rs.KJEffects
  367. local p1 = ke["1and2"]
  368. local p2 = ke["1and2smoke"]
  369.  
  370. local p1_c = p1:Clone()
  371. p1_c.CFrame = h.CFrame * CFrame.new(0, 0, -3)
  372.  
  373. local p2_c = p2:Clone()
  374. p2_c.CFrame = h.CFrame * CFrame.new(0, 0, -5)
  375.  
  376. local t = c:FindFirstChild("Thrown") or Instance.new("Folder", c)
  377. t.Name = "Thrown"
  378.  
  379. p1_c.Parent = t
  380. p2_c.Parent = t
  381.  
  382. local a1 = p1_c:FindFirstChild("1and2")
  383. if a1 then
  384. for _, e in pairs(a1:GetDescendants()) do
  385. if e:IsA("ParticleEmitter") then
  386. e:Emit(28)
  387. end
  388. end
  389. end
  390.  
  391. local a2 = p2_c:FindFirstChild("1and2smoke")
  392. if a2 then
  393. for _, e in pairs(a2:GetDescendants()) do
  394. if e:IsA("ParticleEmitter") then
  395. e:Emit(18)
  396. end
  397. end
  398. end
  399.  
  400. task.delay(0.48, function()
  401.  
  402. local p = game.Players.LocalPlayer
  403. local c = p.Character or p.CharacterAdded:Wait()
  404. local h = c:WaitForChild("HumanoidRootPart")
  405.  
  406. local r = game:GetService("ReplicatedStorage")
  407. local rs = r.Resources
  408. local ke = rs.KJEffects
  409. local p1 = ke["1and2"]
  410. local p2 = ke["1and2smoke"]
  411.  
  412. local p1_c = p1:Clone()
  413. p1_c.CFrame = h.CFrame * CFrame.new(0, 0, -3)
  414.  
  415. local p2_c = p2:Clone()
  416. p2_c.CFrame = h.CFrame * CFrame.new(0, 0, -5)
  417.  
  418. local t = c:FindFirstChild("Thrown") or Instance.new("Folder", c)
  419. t.Name = "Thrown"
  420.  
  421. p1_c.Parent = t
  422. p2_c.Parent = t
  423.  
  424. local a1 = p1_c:FindFirstChild("1and2")
  425. if a1 then
  426. for _, e in pairs(a1:GetDescendants()) do
  427. if e:IsA("ParticleEmitter") then
  428. e:Emit(28)
  429. end
  430. end
  431. end
  432.  
  433. local a2 = p2_c:FindFirstChild("1and2smoke")
  434. if a2 then
  435. for _, e in pairs(a2:GetDescendants()) do
  436. if e:IsA("ParticleEmitter") then
  437. e:Emit(18)
  438. end
  439. end
  440. end
  441.  
  442. delay(0.5, function()
  443.  
  444. local BARRAGESMOKE = game.ReplicatedStorage.Resources.KJEffects["BARRAGESMOKE"].BARRAGESMOKE:Clone()
  445. BARRAGESMOKE.Parent = game.Players.LocalPlayer.Character["Torso"]
  446. for _, child in ipairs(BARRAGESMOKE:GetChildren()) do
  447. if child:IsA("ParticleEmitter") then
  448. child:Emit(50)
  449. child.Enabled = true
  450. child.Rate = 10000
  451. end
  452. end
  453.  
  454. local a = game:GetService("ReplicatedStorage")
  455. local b = game:GetService("Workspace")
  456. local c = game:GetService("Players")
  457. local d = c.LocalPlayer
  458. local e = d.Character
  459. if not e then
  460. e = d.CharacterAdded:Wait()
  461. end
  462. local f = e:WaitForChild("HumanoidRootPart")
  463. local g = a:FindFirstChild("Resources")
  464. if not g then
  465. return
  466. end
  467. local h = g:FindFirstChild("KJEffects")
  468. if not h then
  469. return
  470. end
  471. local i = h:FindFirstChild("barrage")
  472. if not i then
  473. return
  474. end
  475. local j = i:Clone()
  476. j.Parent = b
  477. local k = f.CFrame.LookVector * 3
  478. local l = f.CFrame + k
  479. local m = CFrame.Angles(math.rad(47), 0, 0)
  480. j.CFrame = l * m
  481.  
  482. local r = game:GetService("RunService")
  483.  
  484. local function n(o)
  485. for _, p in pairs(o:GetDescendants()) do
  486. if p:IsA("ParticleEmitter") then
  487. p.Enabled = true
  488. local delay = math.random() * 0.2 + 0.2
  489. r.Heartbeat:Connect(function()
  490. if delay <= 0 then
  491. p:Emit(7)
  492. delay = math.random() * 0.2 + 0.2
  493. else
  494. delay = delay - r.Heartbeat:Wait()
  495. end
  496. end)
  497. end
  498. end
  499. end
  500.  
  501. n(j)
  502.  
  503. delay(1.21, function()
  504.  
  505. j:Destroy()
  506.  
  507. local p = game.Players.LocalPlayer
  508. local c = p.Character or p.CharacterAdded:Wait()
  509.  
  510. local function d()
  511. local t = c:WaitForChild("Torso")
  512. local a = t:FindFirstChild("BARRAGESMOKE")
  513.  
  514. if a then
  515. a:Destroy()
  516. end
  517. end
  518.  
  519. d()
  520.  
  521. local TweenService = game:GetService("TweenService")
  522.  
  523. local v820 = {
  524. Character = game.Players.LocalPlayer.Character,
  525. ShowaveCF = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 9, 0) * CFrame.Angles(0, 0, math.rad(90)),
  526. CF = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame,
  527. }
  528.  
  529. local function v483(params)
  530. local origin = params.orig
  531. local direction = params.dir
  532. local ray = Ray.new(origin, direction)
  533. local part, position = workspace:FindPartOnRay(ray)
  534. return part, position
  535. end
  536.  
  537. local _ = v820.Character.PrimaryPart
  538. local v1398 = game.ReplicatedStorage:WaitForChild("Resources"):WaitForChild("KJEffects")
  539. local l_CF_0 = v820.CF
  540. local l_ShowaveCF_0 = v820.ShowaveCF
  541. local v1402 = v1398:WaitForChild("uppercutimpact"):Clone()
  542. local v3 = TweenService
  543.  
  544. v1402.CFrame = l_CF_0
  545. v1402.Parent = workspace:WaitForChild("Thrown")
  546.  
  547. v3:Create(v1402, TweenInfo.new(0.06, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {
  548. CFrame = v1402.CFrame * CFrame.new(0, 7.076, 0)
  549. }):Play()
  550.  
  551. v3:Create(v1402:FindFirstChild("Mesh"), TweenInfo.new(0.06, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {
  552. Scale = Vector3.new(0.7, 0, 0)
  553. }):Play()
  554.  
  555. local v1403 = v1398:WaitForChild("uppercutmesh"):Clone()
  556. v1403.CFrame = l_ShowaveCF_0
  557. v1403.Parent = workspace:WaitForChild("Thrown")
  558.  
  559. v3:Create(v1403, TweenInfo.new(0.25, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {
  560. CFrame = v1403.CFrame * CFrame.new(-11.931, 0, 0) * CFrame.Angles(-math.pi, 0, 0)
  561. }):Play()
  562.  
  563. v3:Create(v1403:FindFirstChild("Mesh"), TweenInfo.new(0.25, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {
  564. Scale = Vector3.new(0, 0.6, 0.6)
  565. }):Play()
  566.  
  567. v3:Create(v1403:FindFirstChild("Decal"), TweenInfo.new(0.25, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {
  568. Transparency = 1
  569. }):Play()
  570.  
  571. local v1404, v1405 = v483({
  572. orig = l_CF_0.Position + Vector3.yAxis,
  573. dir = Vector3.new(0, -50, 0)
  574. })
  575. if v1404 then
  576. local l_Color_0 = v1404.Color
  577. local v1407 = v1398:WaitForChild("UPPERCUTSMOKE"):Clone()
  578. v1407.Size = Vector3.new(5, 5, 5)
  579. v1407.Position = v1405
  580. v1407.Parent = workspace:WaitForChild("Thrown")
  581. v1407.UPPERCUTSMOKE["1"].Color = ColorSequence.new(l_Color_0)
  582. v1407.UPPERCUTSMOKE["2"].Color = ColorSequence.new(l_Color_0)
  583. for _, child in ipairs(v1407:GetChildren()) do
  584. if child:IsA("ParticleEmitter") then
  585. child:Emit(6)
  586. end
  587. end
  588. game:GetService("Debris"):AddItem(v1407, 2)
  589. end
  590.  
  591. game:GetService("Debris"):AddItem(v1403, 1)
  592. game:GetService("Debris"):AddItem(v1402, 1)
  593.  
  594. local UPPERCUTSMOKE = game.ReplicatedStorage.Resources.KJEffects["UPPERCUTSMOKE"].UPPERCUTSMOKE:Clone()
  595. UPPERCUTSMOKE.Parent = game.Players.LocalPlayer.Character:WaitForChild("Torso")
  596. for _, child in ipairs(UPPERCUTSMOKE:GetChildren()) do
  597. if child:IsA("ParticleEmitter") then
  598. child:Emit(6)
  599. end
  600. end
  601.  
  602. task.delay(0.7, function()
  603.  
  604. local r = game.ReplicatedStorage.Resources.KJEffects
  605. local s = r["Left Leg"].speedlines:Clone()
  606. local t = r["Left Leg"].starries:Clone()
  607.  
  608. s.Parent = game.Players.LocalPlayer.Character["Left Leg"]
  609. t.Parent = game.Players.LocalPlayer.Character["Left Leg"]
  610.  
  611. if s:IsA("ParticleEmitter") then
  612. s.Enabled = true
  613. s.Rate = 10000
  614. s:Emit(11)
  615. end
  616.  
  617. if t:IsA("ParticleEmitter") then
  618. t.Enabled = true
  619. t.Rate = 10000
  620. t:Emit(11)
  621.  
  622. task.delay(1.2, function()
  623.  
  624. t.Rate = 0
  625. t:Emit(11)
  626.  
  627. s.Rate = 0
  628. s:Emit(11)
  629.  
  630. end)
  631.  
  632. end
  633.  
  634. local player = game.Players.LocalPlayer
  635. local character = player.Character or player.CharacterAdded:Wait()
  636. local torso = character:WaitForChild("HumanoidRootPart")
  637.  
  638.  
  639. local function createRock(size)
  640. local rock = Instance.new("Part")
  641. rock.Size = size
  642. rock.Shape = Enum.PartType.Block
  643. rock.Anchored = false
  644. rock.CanCollide = true
  645. rock.Material = Enum.Material.Slate
  646. rock.BrickColor = BrickColor.Gray()
  647. rock.Parent = workspace
  648.  
  649. local bodyAngularVelocity = Instance.new("BodyAngularVelocity")
  650. bodyAngularVelocity.MaxTorque = Vector3.new(4000, 4000, 4000)
  651. bodyAngularVelocity.P = 3000
  652. bodyAngularVelocity.Parent = rock
  653.  
  654. local randomDirection = Vector3.new(
  655. math.random() * 2 - 1,
  656. math.random() * 2 - 1,
  657. math.random() * 2 - 1
  658. ).unit
  659. local spinSpeed = math.random(50, 150)
  660. bodyAngularVelocity.AngularVelocity = randomDirection * spinSpeed
  661.  
  662. return rock, bodyAngularVelocity
  663. end
  664.  
  665. local function rotateRocks(rotationSpeed, fallDelay, launchSpeed, verticalForce, spinSpeed, slideSpeed, slideDuration, shrinkDuration)
  666. local rocks = {}
  667. local numberOfRocks = 12
  668. local radius = 10
  669. local rockHeight = 0.3
  670.  
  671. for i = 1, numberOfRocks do
  672. local angle = (i / numberOfRocks) * math.pi * 2
  673. local size = Vector3.new(0.3, 0.3, 0.3)
  674. if i % 2 == 0 then
  675. size = Vector3.new(0.65, 0.65, 0.65)
  676. end
  677. local rock, bodyAngularVelocity = createRock(size)
  678. local offsetX = math.cos(angle) * radius
  679. local offsetZ = math.sin(angle) * radius
  680.  
  681. rock.Position = torso.Position + Vector3.new(offsetX, rockHeight, offsetZ)
  682. table.insert(rocks, { rock = rock, bodyAngularVelocity = bodyAngularVelocity })
  683. end
  684.  
  685. local runService = game:GetService("RunService")
  686. local startTime = tick()
  687. local connection
  688. connection = runService.RenderStepped:Connect(function()
  689. local elapsed = tick() - startTime
  690. local angleStep = (elapsed * rotationSpeed) % (math.pi * 2)
  691.  
  692. if elapsed >= 0.6 then
  693. rotationSpeed = math.max(rotationSpeed * 0.95, 1)
  694. end
  695.  
  696. for i, rockData in ipairs(rocks) do
  697. local rock = rockData.rock
  698. local angle = (i / numberOfRocks) * math.pi * 2 + angleStep
  699. local offsetX = math.cos(angle) * radius
  700. local offsetZ = math.sin(angle) * radius
  701. rock.Position = torso.Position + Vector3.new(offsetX, rockHeight, offsetZ)
  702. end
  703.  
  704. if elapsed >= fallDelay then
  705. connection:Disconnect()
  706. for _, rockData in ipairs(rocks) do
  707. local rock = rockData.rock
  708. local bodyAngularVelocity = rockData.bodyAngularVelocity
  709. if bodyAngularVelocity then
  710. bodyAngularVelocity:Destroy()
  711. end
  712.  
  713. local tangentialVelocity = launchSpeed * (1 + math.random(-10, 10) / 100)
  714. local bodyVelocity = Instance.new("BodyVelocity")
  715. local outwardDirection = (rock.Position - torso.Position).unit
  716. local randomHorizontal = Vector3.new(math.random(-1, 1), 0, math.random(-1, 1)) * 0.3
  717. bodyVelocity.Velocity = (outwardDirection + randomHorizontal).unit * tangentialVelocity + Vector3.new(0, verticalForce, 0)
  718. bodyVelocity.P = 1000
  719. bodyVelocity.Parent = rock
  720.  
  721. local dust = Instance.new("ParticleEmitter")
  722. dust.Texture = "rbxassetid://3527866534"
  723. dust.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2), NumberSequenceKeypoint.new(1, 0)})
  724. dust.Lifetime = NumberRange.new(0.5, 1)
  725. dust.Rate = 100
  726. dust.Speed = NumberRange.new(5, 10)
  727. dust.Parent = rock
  728. dust:Emit(50)
  729.  
  730. rock.Touched:Connect(function(hit)
  731. if hit:IsA("Terrain") or (hit:IsA("BasePart") and hit.CanCollide) then
  732. bodyVelocity:Destroy()
  733.  
  734. local glideVelocity = outwardDirection * slideSpeed
  735. local glideStartTime = tick()
  736.  
  737. local glideConnection
  738. glideConnection = runService.RenderStepped:Connect(function()
  739. local glideElapsed = tick() - glideStartTime
  740. if glideElapsed >= slideDuration then
  741. glideConnection:Disconnect()
  742. rock.Velocity = Vector3.new(0, 0, 0)
  743.  
  744.  
  745. local shrinkStartTime = tick()
  746. local shrinkConnection
  747. shrinkConnection = runService.RenderStepped:Connect(function()
  748. local shrinkElapsed = tick() - shrinkStartTime
  749. local scale = math.max(0, rock.Size.X * (1 - (shrinkElapsed / shrinkDuration)))
  750. rock.Size = Vector3.new(scale, scale, scale)
  751. rock.Position = rock.Position - Vector3.new(0, (rock.Size.Y - scale) / 2, 0)
  752.  
  753. if scale <= 0 then
  754. shrinkConnection:Disconnect()
  755. rock:Destroy()
  756. end
  757. end)
  758. else
  759. rock.Velocity = glideVelocity * (1 - (glideElapsed / slideDuration))
  760. end
  761. end)
  762. end
  763. end)
  764. end
  765. end
  766. end)
  767. end
  768.  
  769.  
  770. local rotationSpeed = 12
  771. local fallDelay = 0.65
  772. local launchSpeed = 25
  773. local verticalForce = -10
  774. local spinSpeed = 1200
  775. local slideSpeed = 30
  776. local slideDuration = 0.7
  777. local shrinkDuration = 2.5
  778.  
  779. rotateRocks(rotationSpeed, fallDelay, launchSpeed, verticalForce, spinSpeed, slideSpeed, slideDuration, shrinkDuration)
  780.  
  781. local a = game.ReplicatedStorage.Resources.KJEffects["RUNAROUNDWIND"].RUNAROUNDWIND:Clone()
  782. a.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  783. for _, b in ipairs(a:GetChildren()) do
  784. if b:IsA("ParticleEmitter") then
  785. b:Emit(5)
  786. b.Rate = 145
  787. b.Enabled = true
  788.  
  789. task.delay(0.6, function()
  790.  
  791. b.Rate = 0
  792.  
  793. end)
  794.  
  795. end
  796. end
  797.  
  798. local r = game.ReplicatedStorage:FindFirstChild("Resources")
  799. if r then
  800. local k = r:FindFirstChild("KJEffects")
  801. if k then
  802. local p = k:FindFirstChild("spinbeam")
  803. if p then
  804. local d = p:Clone()
  805. local c = game.Players.LocalPlayer.Character
  806. local hrp = c and c:FindFirstChild("HumanoidRootPart")
  807. if hrp then
  808. d.Parent = game.Workspace:FindFirstChild("Thrown") or Instance.new("Folder", game.Workspace)
  809. d.CFrame = hrp.CFrame * CFrame.new(0, -2, 11)
  810.  
  811. local b = d:FindFirstChild("beam2")
  812. if b then
  813. local beams = b:GetDescendants()
  814. for _, beam in ipairs(beams) do
  815. if beam:IsA("Beam") then
  816. beam.Enabled = true
  817. beam.Transparency = NumberSequence.new(1)
  818.  
  819. local g = 0.8
  820. local s = (1 - g) / 10
  821. local ct = 1
  822. local rs = game:GetService("RunService")
  823.  
  824. for i = 1, 10 do
  825. rs.Heartbeat:Wait()
  826. ct = ct - s
  827. beam.Transparency = NumberSequence.new(ct)
  828. end
  829.  
  830. task.delay(0.28, function()
  831. local f = (1 - g) / 10
  832. for i = 1, 10 do
  833. rs.Heartbeat:Wait()
  834. g = g + f
  835. beam.Transparency = NumberSequence.new(math.min(g, 1))
  836. end
  837. end)
  838. end
  839. end
  840. end
  841. end
  842. end
  843. end
  844. end
  845.  
  846. end)
  847.  
  848. end)
  849.  
  850. end)
  851.  
  852. end)
  853.  
  854. end)
  855.  
  856. end
  857. end
  858.  
  859. end)
  860.  
  861. end)
  862. t.Parent = b
Add Comment
Please, Sign In to add comment