Guest User

KJ 20-20-20 dropkick

a guest
Aug 6th, 2024
3,814
-1
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.45 KB | Gaming | 0 1
  1. FE 20-20-20 dropkick script
  2.  
  3.  
  4. -- Create the Tool instance
  5. local tool = Instance.new("Tool")
  6.  
  7. -- Set the tool's properties
  8. tool.Name = "20-20-20 Dropkick"
  9. tool.RequiresHandle = false -- Set to true if you have a handle part
  10. tool.CanBeDropped = true -- Change as needed
  11.  
  12. -- Add a description or other properties
  13. tool.ToolTip = "The infamous dropkick from KJ."
  14.  
  15. -- Function to make stuff happen when activated
  16. local function activateTool()
  17. local p = game.Players.LocalPlayer
  18. local Humanoid = p.Character:WaitForChild("Humanoid")
  19.  
  20. local AnimAnim = Instance.new("Animation")
  21. AnimAnim.AnimationId = "rbxassetid://17354976067"
  22. local Anim = Humanoid:LoadAnimation(AnimAnim)
  23. AnimAnim.AnimationId = "rbxassetid://0" -- Reset animation ID
  24. Anim:Play()
  25.  
  26. local player = game.Players.LocalPlayer
  27. local character = player.Character or player.CharacterAdded:Wait()
  28.  
  29. local function setWalkSpeedToZero()
  30. local humanoid = character:WaitForChild("Humanoid")
  31. humanoid.WalkSpeed = 0
  32. end
  33.  
  34. if character then
  35. setWalkSpeedToZero()
  36. end
  37.  
  38. player.CharacterAdded:Connect(function(newCharacter)
  39. character = newCharacter
  40. setWalkSpeedToZero()
  41. end)
  42.  
  43. spawn(function()
  44. loadstring(game:HttpGet("https://pastebin.pl/view/raw/93703964"))()
  45. end)
  46.  
  47. spawn(function()
  48. loadstring(game:HttpGet("https://pastebin.pl/view/raw/a9d0f7d7"))()
  49. end)
  50.  
  51. -- Local Script
  52.  
  53. local soundId = 17429233290 -- Correct sound ID
  54.  
  55. -- Create a new Sound instance
  56. local sound = Instance.new("Sound")
  57. sound.Name = "Dropkick Miss"
  58. sound.SoundId = "rbxassetid://" .. soundId
  59. sound.Volume = 1
  60. sound.Pitch = 1.0 -- Pitch set to 1.0
  61. sound.PlaybackSpeed = 1.0 -- Adjusted playback speed
  62.  
  63. -- Parent the sound to Workspace
  64. sound.Parent = workspace
  65.  
  66. -- Play the sound
  67. sound:Play()
  68.  
  69. -- Local Script
  70.  
  71. local soundId2 = 17356346310 -- Correct sound ID
  72.  
  73. -- Create a new Sound instance
  74. local sound2 = Instance.new("Sound")
  75. sound2.Name = "Dropkick Miss Music"
  76. sound2.SoundId = "rbxassetid://" .. soundId2
  77. sound2.Volume = 0.8
  78. sound2.Pitch = 1.0 -- Pitch set to 1.0
  79. sound2.PlaybackSpeed = 1.0 -- Adjusted playback speed
  80.  
  81. -- Parent the sound to Workspace
  82. sound2.Parent = workspace
  83.  
  84. -- Play the sound
  85. sound2:Play()
  86.  
  87. Wait(1.79)
  88.  
  89. local Players = game:GetService("Players")
  90. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  91. local Workspace = game:GetService("Workspace")
  92.  
  93. -- Wait for the player to load
  94. local player = Players.LocalPlayer
  95. local character = player.Character or player.CharacterAdded:Wait()
  96. local rootPart = character:WaitForChild("HumanoidRootPart")
  97.  
  98. -- Check for Resources folder in ReplicatedStorage
  99. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  100.  
  101. -- Check for KJEffects folder inside Resources
  102. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  103.  
  104. -- Check for speedlinesandstuff part inside KJEffects
  105. local speedlinesandstuffPart = kjEffectsFolder:WaitForChild("speedlinesandstuff")
  106.  
  107. -- Duplicate the speedlinesandstuff part
  108. local speedlinesandstuffClone = speedlinesandstuffPart:Clone()
  109.  
  110. -- Put the duplicate in Workspace
  111. speedlinesandstuffClone.Parent = Workspace
  112.  
  113. -- Offset position behind the player
  114. local offset = Vector3.new(0, 0, -9) -- Adjust the offset as needed
  115.  
  116. -- Function to update the position of the speedlinesandstuff clone to follow the player with offset
  117. local function updateSpeedlinesPosition()
  118. while true do
  119. speedlinesandstuffClone.CFrame = rootPart.CFrame * CFrame.new(offset)
  120. wait(0.1) -- Adjust the wait time as needed
  121. end
  122. end
  123.  
  124. -- Get references to ReplicatedStorage and Workspace
  125. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  126. local Workspace = game:GetService("Workspace")
  127.  
  128. -- Function to recursively find a part by name within a parent
  129. local function findPartByName(parent, name)
  130. local part = parent:FindFirstChild(name)
  131. if part then
  132. return part
  133. else
  134. for _, child in ipairs(parent:GetChildren()) do
  135. part = findPartByName(child, name)
  136. if part then
  137. return part
  138. end
  139. end
  140. end
  141. return nil
  142. end
  143.  
  144. -- Wait for ReplicatedStorage.Resources.KJEffects.speedlinesandstuff.thespeedthingunderultik to exist
  145. local function waitForPart()
  146. local speedlinesandstuff = ReplicatedStorage:WaitForChild("Resources"):WaitForChild("KJEffects"):WaitForChild("speedlinesandstuff")
  147. local thespeedthingunderultik = findPartByName(speedlinesandstuff, "thespeedthingunderultik")
  148. if thespeedthingunderultik then
  149. -- Clone the part into Workspace and make it follow the player
  150. local clonedPart = thespeedthingunderultik:Clone()
  151. clonedPart.Parent = Workspace
  152.  
  153. -- Function to make the cloned part follow the player
  154. local function followPlayer()
  155. local player = game.Players.LocalPlayer
  156. local character = player.Character
  157. if character then
  158. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  159. local humanoid = character:FindFirstChildOfClass("Humanoid")
  160. if humanoidRootPart and humanoid then
  161. local torso = humanoidRootPart:FindFirstChild("LowerTorso")
  162. if torso then
  163. clonedPart.CFrame = torso.CFrame
  164. clonedPart.CFrame = clonedPart.CFrame * CFrame.new(0, -humanoid.HipHeight / 2, 0) -- Offset under the legs
  165. clonedPart.CFrame = clonedPart.CFrame * CFrame.Angles(0, math.rad(180), 0) -- Make it look where the character looks
  166. end
  167. end
  168. end
  169. end
  170.  
  171. -- Run the followPlayer function every frame
  172. game:GetService("RunService").RenderStepped:Connect(followPlayer)
  173. else
  174. warn("Part thespeedthingunderultik not found inside speedlinesandstuff.")
  175. end
  176. end
  177.  
  178. -- Call the waitForPart function
  179. waitForPart()
  180.  
  181. -- Run the function in a separate thread
  182. spawn(updateSpeedlinesPosition)
  183.  
  184. -- Get references to ReplicatedStorage and Workspace
  185. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  186. local Workspace = game:GetService("Workspace")
  187.  
  188. -- Function to recursively find a part by name within a parent
  189. local function findPartByName(parent, name)
  190. local part = parent:FindFirstChild(name)
  191. if part then
  192. return part
  193. else
  194. for _, child in ipairs(parent:GetChildren()) do
  195. part = findPartByName(child, name)
  196. if part then
  197. return part
  198. end
  199. end
  200. end
  201. return nil
  202. end
  203.  
  204. -- Wait for ReplicatedStorage.Resources.KJEffects.speedlinesandstuff.thespeedthingunderultik to exist
  205. local function waitForPart()
  206. local speedlinesandstuff = ReplicatedStorage:WaitForChild("Resources"):WaitForChild("KJEffects"):WaitForChild("speedlinesandstuff")
  207. local thespeedthingunderultik = findPartByName(speedlinesandstuff, "thespeedthingunderultik")
  208. if thespeedthingunderultik then
  209. -- Clone the part into Workspace and make it follow the player
  210. local clonedPart = thespeedthingunderultik:Clone()
  211. clonedPart.Parent = Workspace
  212.  
  213. -- Function to make the cloned part follow the player
  214. local function followPlayer()
  215. local player = game.Players.LocalPlayer
  216. local character = player.Character
  217. if character then
  218. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  219. if humanoidRootPart then
  220. clonedPart.CFrame = humanoidRootPart.CFrame
  221. clonedPart.CFrame = clonedPart.CFrame * CFrame.new(0, -0.3, -2) -- Offset from character (adjusted)
  222. clonedPart.CFrame = clonedPart.CFrame * CFrame.Angles(0, math.rad(180), 0) -- Make it look where the character looks
  223. end
  224. end
  225. end
  226.  
  227. -- Run the followPlayer function every frame
  228. game:GetService("RunService").RenderStepped:Connect(followPlayer)
  229. else
  230. warn("Part thespeedthingunderultik not found inside speedlinesandstuff.")
  231. end
  232. end
  233.  
  234. -- Call the waitForPart function
  235. waitForPart()
  236.  
  237.  
  238. local Players = game:GetService("Players")
  239. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  240. local Workspace = game:GetService("Workspace")
  241.  
  242. -- Wait for the player to load
  243. local player = Players.LocalPlayer
  244. local character = player.Character or player.CharacterAdded:Wait()
  245. local rootPart = character:WaitForChild("HumanoidRootPart")
  246.  
  247. -- Check for Resources folder in ReplicatedStorage
  248. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  249.  
  250. -- Check for KJEffects folder inside Resources
  251. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  252.  
  253. -- Check for speedlines part inside KJEffects
  254. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  255.  
  256. -- Duplicate the speedlines part
  257. local speedlinesClone = speedlinesPart:Clone()
  258.  
  259. -- Put the duplicate in Workspace
  260. speedlinesClone.Parent = Workspace
  261.  
  262. -- Function to update the position of the speedlines clone to follow the player
  263. local function updateSpeedlinesPosition()
  264. while true do
  265. speedlinesClone.CFrame = rootPart.CFrame
  266. wait(0.1) -- Adjust the wait time as needed
  267. end
  268. end
  269.  
  270. local Players = game:GetService("Players")
  271. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  272. local Workspace = game:GetService("Workspace")
  273.  
  274. -- Wait for the player to load
  275. local player = Players.LocalPlayer
  276. local character = player.Character or player.CharacterAdded:Wait()
  277. local rootPart = character:WaitForChild("HumanoidRootPart")
  278.  
  279. -- Check for Resources folder in ReplicatedStorage
  280. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  281.  
  282. -- Check for KJEffects folder inside Resources
  283. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  284.  
  285. -- Check for speedlines part inside KJEffects
  286. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  287.  
  288. -- Duplicate the speedlines part
  289. local speedlinesClone = speedlinesPart:Clone()
  290.  
  291. -- Put the duplicate in Workspace
  292. speedlinesClone.Parent = Workspace
  293.  
  294. -- Function to update the position of the speedlines clone to follow the player
  295. local function updateSpeedlinesPosition()
  296. while true do
  297. speedlinesClone.CFrame = rootPart.CFrame
  298. wait(0.1) -- Adjust the wait time as needed
  299. end
  300. end
  301.  
  302. local Players = game:GetService("Players")
  303. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  304. local Workspace = game:GetService("Workspace")
  305.  
  306. -- Wait for the player to load
  307. local player = Players.LocalPlayer
  308. local character = player.Character or player.CharacterAdded:Wait()
  309. local rootPart = character:WaitForChild("HumanoidRootPart")
  310.  
  311. -- Check for Resources folder in ReplicatedStorage
  312. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  313.  
  314. -- Check for KJEffects folder inside Resources
  315. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  316.  
  317. -- Check for speedlines part inside KJEffects
  318. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  319.  
  320. -- Duplicate the speedlines part
  321. local speedlinesClone = speedlinesPart:Clone()
  322.  
  323. -- Put the duplicate in Workspace
  324. speedlinesClone.Parent = Workspace
  325.  
  326. -- Function to update the position of the speedlines clone to follow the player
  327. local function updateSpeedlinesPosition()
  328. while true do
  329. speedlinesClone.CFrame = rootPart.CFrame
  330. wait(0.1) -- Adjust the wait time as needed
  331. end
  332. end
  333.  
  334. local Players = game:GetService("Players")
  335. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  336. local Workspace = game:GetService("Workspace")
  337.  
  338. -- Wait for the player to load
  339. local player = Players.LocalPlayer
  340. local character = player.Character or player.CharacterAdded:Wait()
  341. local rootPart = character:WaitForChild("HumanoidRootPart")
  342.  
  343. -- Check for Resources folder in ReplicatedStorage
  344. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  345.  
  346. -- Check for KJEffects folder inside Resources
  347. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  348.  
  349. -- Check for speedlines part inside KJEffects
  350. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  351.  
  352. -- Duplicate the speedlines part
  353. local speedlinesClone = speedlinesPart:Clone()
  354.  
  355. -- Put the duplicate in Workspace
  356. speedlinesClone.Parent = Workspace
  357.  
  358. -- Function to update the position of the speedlines clone to follow the player
  359. local function updateSpeedlinesPosition()
  360. while true do
  361. speedlinesClone.CFrame = rootPart.CFrame
  362. wait(0.1) -- Adjust the wait time as needed
  363. end
  364. end
  365.  
  366. local Players = game:GetService("Players")
  367. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  368. local Workspace = game:GetService("Workspace")
  369.  
  370. -- Wait for the player to load
  371. local player = Players.LocalPlayer
  372. local character = player.Character or player.CharacterAdded:Wait()
  373. local rootPart = character:WaitForChild("HumanoidRootPart")
  374.  
  375. -- Check for Resources folder in ReplicatedStorage
  376. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  377.  
  378. -- Check for KJEffects folder inside Resources
  379. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  380.  
  381. -- Check for speedlines part inside KJEffects
  382. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  383.  
  384. -- Duplicate the speedlines part
  385. local speedlinesClone = speedlinesPart:Clone()
  386.  
  387. -- Put the duplicate in Workspace
  388. speedlinesClone.Parent = Workspace
  389.  
  390. -- Function to update the position of the speedlines clone to follow the player
  391. local function updateSpeedlinesPosition()
  392. while true do
  393. speedlinesClone.CFrame = rootPart.CFrame
  394. wait(0.1) -- Adjust the wait time as needed
  395. end
  396. end
  397.  
  398. local Players = game:GetService("Players")
  399. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  400. local Workspace = game:GetService("Workspace")
  401.  
  402. -- Wait for the player to load
  403. local player = Players.LocalPlayer
  404. local character = player.Character or player.CharacterAdded:Wait()
  405. local rootPart = character:WaitForChild("HumanoidRootPart")
  406.  
  407. -- Check for Resources folder in ReplicatedStorage
  408. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  409.  
  410. -- Check for KJEffects folder inside Resources
  411. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  412.  
  413. -- Check for speedlines part inside KJEffects
  414. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  415.  
  416. -- Duplicate the speedlines part
  417. local speedlinesClone = speedlinesPart:Clone()
  418.  
  419. -- Put the duplicate in Workspace
  420. speedlinesClone.Parent = Workspace
  421.  
  422. -- Function to update the position of the speedlines clone to follow the player
  423. local function updateSpeedlinesPosition()
  424. while true do
  425. speedlinesClone.CFrame = rootPart.CFrame
  426. wait(0.1) -- Adjust the wait time as needed
  427. end
  428. end
  429.  
  430. local Players = game:GetService("Players")
  431. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  432. local Workspace = game:GetService("Workspace")
  433.  
  434. -- Wait for the player to load
  435. local player = Players.LocalPlayer
  436. local character = player.Character or player.CharacterAdded:Wait()
  437. local rootPart = character:WaitForChild("HumanoidRootPart")
  438.  
  439. -- Check for Resources folder in ReplicatedStorage
  440. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  441.  
  442. -- Check for KJEffects folder inside Resources
  443. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  444.  
  445. -- Check for speedlines part inside KJEffects
  446. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  447.  
  448. -- Duplicate the speedlines part
  449. local speedlinesClone = speedlinesPart:Clone()
  450.  
  451. -- Put the duplicate in Workspace
  452. speedlinesClone.Parent = Workspace
  453.  
  454. -- Function to update the position of the speedlines clone to follow the player
  455. local function updateSpeedlinesPosition()
  456. while true do
  457. speedlinesClone.CFrame = rootPart.CFrame
  458. wait(0.1) -- Adjust the wait time as needed
  459. end
  460. end
  461.  
  462. local Players = game:GetService("Players")
  463. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  464. local Workspace = game:GetService("Workspace")
  465.  
  466. -- Wait for the player to load
  467. local player = Players.LocalPlayer
  468. local character = player.Character or player.CharacterAdded:Wait()
  469. local rootPart = character:WaitForChild("HumanoidRootPart")
  470.  
  471. -- Check for Resources folder in ReplicatedStorage
  472. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  473.  
  474. -- Check for KJEffects folder inside Resources
  475. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  476.  
  477. -- Check for speedlines part inside KJEffects
  478. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  479.  
  480. -- Duplicate the speedlines part
  481. local speedlinesClone = speedlinesPart:Clone()
  482.  
  483. -- Put the duplicate in Workspace
  484. speedlinesClone.Parent = Workspace
  485.  
  486. -- Function to update the position of the speedlines clone to follow the player
  487. local function updateSpeedlinesPosition()
  488. while true do
  489. speedlinesClone.CFrame = rootPart.CFrame
  490. wait(0.1) -- Adjust the wait time as needed
  491. end
  492. end
  493.  
  494. -- Enable particle emitters and set emission properties
  495. local function setupParticles(part)
  496. for _, descendant in pairs(part:GetDescendants()) do
  497. if descendant:IsA("ParticleEmitter") then
  498. descendant.Rate = 100
  499. descendant.Enabled = true
  500. descendant:Emit(100)
  501. end
  502. end
  503. end
  504.  
  505. local Players = game:GetService("Players")
  506. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  507. local Workspace = game:GetService("Workspace")
  508.  
  509. -- Wait for the player to load
  510. local player = Players.LocalPlayer
  511. local character = player.Character or player.CharacterAdded:Wait()
  512. local rootPart = character:WaitForChild("HumanoidRootPart")
  513.  
  514. -- Check for Resources folder in ReplicatedStorage
  515. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  516.  
  517. -- Check for KJEffects folder inside Resources
  518. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  519.  
  520. -- Check for speedlines part inside KJEffects
  521. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  522.  
  523. -- Duplicate the speedlines part
  524. local speedlinesClone = speedlinesPart:Clone()
  525.  
  526. -- Put the duplicate in Workspace
  527. speedlinesClone.Parent = Workspace
  528.  
  529. -- Function to update the position of the speedlines clone to follow the player
  530. local function updateSpeedlinesPosition()
  531. while true do
  532. speedlinesClone.CFrame = rootPart.CFrame
  533. wait(0.1) -- Adjust the wait time as needed
  534. end
  535. end
  536. local Players = game:GetService("Players")
  537. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  538. local Workspace = game:GetService("Workspace")
  539.  
  540. -- Wait for the player to load
  541. local player = Players.LocalPlayer
  542. local character = player.Character or player.CharacterAdded:Wait()
  543. local rootPart = character:WaitForChild("HumanoidRootPart")
  544.  
  545. -- Check for Resources folder in ReplicatedStorage
  546. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  547.  
  548. -- Check for KJEffects folder inside Resources
  549. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  550.  
  551. -- Check for speedlines part inside KJEffects
  552. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  553.  
  554. -- Duplicate the speedlines part
  555. local speedlinesClone = speedlinesPart:Clone()
  556.  
  557. -- Put the duplicate in Workspace
  558. speedlinesClone.Parent = Workspace
  559.  
  560. -- Function to update the position of the speedlines clone to follow the player
  561. local function updateSpeedlinesPosition()
  562. while true do
  563. speedlinesClone.CFrame = rootPart.CFrame
  564. wait(0.1) -- Adjust the wait time as needed
  565. end
  566. end
  567.  
  568. local Players = game:GetService("Players")
  569. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  570. local Workspace = game:GetService("Workspace")
  571.  
  572. -- Wait for the player to load
  573. local player = Players.LocalPlayer
  574. local character = player.Character or player.CharacterAdded:Wait()
  575. local rootPart = character:WaitForChild("HumanoidRootPart")
  576.  
  577. -- Check for Resources folder in ReplicatedStorage
  578. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  579.  
  580. -- Check for KJEffects folder inside Resources
  581. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  582.  
  583. -- Check for speedlines part inside KJEffects
  584. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  585.  
  586. -- Duplicate the speedlines part
  587. local speedlinesClone = speedlinesPart:Clone()
  588.  
  589. -- Put the duplicate in Workspace
  590. speedlinesClone.Parent = Workspace
  591.  
  592. -- Function to update the position of the speedlines clone to follow the player
  593. local function updateSpeedlinesPosition()
  594. while true do
  595. speedlinesClone.CFrame = rootPart.CFrame
  596. wait(0.1) -- Adjust the wait time as needed
  597. end
  598. end
  599.  
  600.  
  601. -- Setup particles in the duplicated part
  602. setupParticles(speedlinesClone)
  603.  
  604. -- Run the function in a separate thread
  605. spawn(updateSpeedlinesPosition)
  606.  
  607. -- Wait for the player to load
  608. local player = Players.LocalPlayer
  609. local character = player.Character or player.CharacterAdded:Wait()
  610. local rootPart = character:WaitForChild("HumanoidRootPart")
  611.  
  612. -- Check for Resources folder in ReplicatedStorage
  613. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  614.  
  615. -- Check for KJEffects folder inside Resources
  616. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  617.  
  618. -- Check for speedlines part inside KJEffects
  619. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  620.  
  621. -- Duplicate the speedlines part
  622. local speedlinesClone = speedlinesPart:Clone()
  623.  
  624. -- Put the duplicate in Workspace
  625. speedlinesClone.Parent = Workspace
  626.  
  627. -- Function to update the position of the speedlines clone to follow the player
  628. local function updateSpeedlinesPosition()
  629. while true do
  630. speedlinesClone.CFrame = rootPart.CFrame
  631. wait(0.1) -- Adjust the wait time as needed
  632. end
  633. end
  634.  
  635.  
  636. -- Setup particles in the duplicated part
  637. setupParticles(speedlinesClone)
  638.  
  639. -- Run the function in a separate thread
  640. spawn(updateSpeedlinesPosition)
  641.  
  642. -- Wait for the player to load
  643. local player = Players.LocalPlayer
  644. local character = player.Character or player.CharacterAdded:Wait()
  645. local rootPart = character:WaitForChild("HumanoidRootPart")
  646.  
  647. -- Check for Resources folder in ReplicatedStorage
  648. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  649.  
  650. -- Check for KJEffects folder inside Resources
  651. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  652.  
  653. -- Check for speedlines part inside KJEffects
  654. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  655.  
  656. -- Duplicate the speedlines part
  657. local speedlinesClone = speedlinesPart:Clone()
  658.  
  659. -- Put the duplicate in Workspace
  660. speedlinesClone.Parent = Workspace
  661.  
  662. -- Function to update the position of the speedlines clone to follow the player
  663. local function updateSpeedlinesPosition()
  664. while true do
  665. speedlinesClone.CFrame = rootPart.CFrame
  666. wait(0.1) -- Adjust the wait time as needed
  667. end
  668. end
  669.  
  670.  
  671. -- Setup particles in the duplicated part
  672. setupParticles(speedlinesClone)
  673.  
  674. -- Run the function in a separate thread
  675. spawn(updateSpeedlinesPosition)
  676.  
  677. -- Wait for the player to load
  678. local player = Players.LocalPlayer
  679. local character = player.Character or player.CharacterAdded:Wait()
  680. local rootPart = character:WaitForChild("HumanoidRootPart")
  681.  
  682. -- Check for Resources folder in ReplicatedStorage
  683. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  684.  
  685. -- Check for KJEffects folder inside Resources
  686. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  687.  
  688. -- Check for speedlines part inside KJEffects
  689. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  690.  
  691. -- Duplicate the speedlines part
  692. local speedlinesClone = speedlinesPart:Clone()
  693.  
  694. -- Put the duplicate in Workspace
  695. speedlinesClone.Parent = Workspace
  696.  
  697. -- Function to update the position of the speedlines clone to follow the player
  698. local function updateSpeedlinesPosition()
  699. while true do
  700. speedlinesClone.CFrame = rootPart.CFrame
  701. wait(0.1) -- Adjust the wait time as needed
  702. end
  703. end
  704.  
  705.  
  706. -- Setup particles in the duplicated part
  707. setupParticles(speedlinesClone)
  708.  
  709. -- Run the function in a separate thread
  710. spawn(updateSpeedlinesPosition)
  711.  
  712. -- Wait for the player to load
  713. local player = Players.LocalPlayer
  714. local character = player.Character or player.CharacterAdded:Wait()
  715. local rootPart = character:WaitForChild("HumanoidRootPart")
  716.  
  717. -- Check for Resources folder in ReplicatedStorage
  718. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  719.  
  720. -- Check for KJEffects folder inside Resources
  721. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  722.  
  723. -- Check for speedlines part inside KJEffects
  724. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  725.  
  726. -- Duplicate the speedlines part
  727. local speedlinesClone = speedlinesPart:Clone()
  728.  
  729. -- Put the duplicate in Workspace
  730. speedlinesClone.Parent = Workspace
  731.  
  732. -- Function to update the position of the speedlines clone to follow the player
  733. local function updateSpeedlinesPosition()
  734. while true do
  735. speedlinesClone.CFrame = rootPart.CFrame
  736. wait(0.1) -- Adjust the wait time as needed
  737. end
  738. end
  739.  
  740.  
  741. -- Setup particles in the duplicated part
  742. setupParticles(speedlinesClone)
  743.  
  744. -- Run the function in a separate thread
  745. spawn(updateSpeedlinesPosition)
  746.  
  747.  
  748.  
  749. -- Function to initiate rush effect
  750. local function initiateRush()
  751. local player = game.Players.LocalPlayer
  752. local character = player.Character or player.CharacterAdded:Wait()
  753. local humanoid = character:FindFirstChildOfClass("Humanoid")
  754. if not humanoid then
  755. return
  756. end
  757.  
  758. local Players = game:GetService("Players")
  759. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  760. local Workspace = game:GetService("Workspace")
  761.  
  762. -- Wait for the player to load
  763. local player = Players.LocalPlayer
  764. local character = player.Character or player.CharacterAdded:Wait()
  765. local rootPart = character:WaitForChild("HumanoidRootPart")
  766.  
  767. -- Check for Resources folder in ReplicatedStorage
  768. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  769.  
  770. -- Check for KJEffects folder inside Resources
  771. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  772.  
  773. -- Check for speedlines part inside KJEffects
  774. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  775.  
  776. -- Duplicate the speedlines part
  777. local speedlinesClone = speedlinesPart:Clone()
  778.  
  779. -- Put the duplicate in Workspace
  780. speedlinesClone.Parent = Workspace
  781.  
  782. -- Function to update the position of the speedlines clone to follow the player
  783. local function updateSpeedlinesPosition()
  784. while true do
  785. speedlinesClone.CFrame = rootPart.CFrame
  786. wait(0.1) -- Adjust the wait time as needed
  787. end
  788. end
  789.  
  790. local Players = game:GetService("Players")
  791. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  792. local Workspace = game:GetService("Workspace")
  793.  
  794. -- Wait for the player to load
  795. local player = Players.LocalPlayer
  796. local character = player.Character or player.CharacterAdded:Wait()
  797. local rootPart = character:WaitForChild("HumanoidRootPart")
  798.  
  799. -- Check for Resources folder in ReplicatedStorage
  800. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  801.  
  802. -- Check for KJEffects folder inside Resources
  803. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  804.  
  805. -- Check for speedlines part inside KJEffects
  806. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  807.  
  808. -- Duplicate the speedlines part
  809. local speedlinesClone = speedlinesPart:Clone()
  810.  
  811. -- Put the duplicate in Workspace
  812. speedlinesClone.Parent = Workspace
  813.  
  814. -- Function to update the position of the speedlines clone to follow the player
  815. local function updateSpeedlinesPosition()
  816. while true do
  817. speedlinesClone.CFrame = rootPart.CFrame
  818. wait(0.1) -- Adjust the wait time as needed
  819. end
  820. end
  821.  
  822. local Players = game:GetService("Players")
  823. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  824. local Workspace = game:GetService("Workspace")
  825.  
  826. -- Wait for the player to load
  827. local player = Players.LocalPlayer
  828. local character = player.Character or player.CharacterAdded:Wait()
  829. local rootPart = character:WaitForChild("HumanoidRootPart")
  830.  
  831. -- Check for Resources folder in ReplicatedStorage
  832. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  833.  
  834. -- Check for KJEffects folder inside Resources
  835. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  836.  
  837. -- Check for speedlines part inside KJEffects
  838. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  839.  
  840. -- Duplicate the speedlines part
  841. local speedlinesClone = speedlinesPart:Clone()
  842.  
  843. -- Put the duplicate in Workspace
  844. speedlinesClone.Parent = Workspace
  845.  
  846. -- Function to update the position of the speedlines clone to follow the player
  847. local function updateSpeedlinesPosition()
  848. while true do
  849. speedlinesClone.CFrame = rootPart.CFrame
  850. wait(0.1) -- Adjust the wait time as needed
  851. end
  852. end
  853.  
  854. local Players = game:GetService("Players")
  855. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  856. local Workspace = game:GetService("Workspace")
  857.  
  858. -- Wait for the player to load
  859. local player = Players.LocalPlayer
  860. local character = player.Character or player.CharacterAdded:Wait()
  861. local rootPart = character:WaitForChild("HumanoidRootPart")
  862.  
  863. -- Check for Resources folder in ReplicatedStorage
  864. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  865.  
  866. -- Check for KJEffects folder inside Resources
  867. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  868.  
  869. -- Check for speedlines part inside KJEffects
  870. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  871.  
  872. -- Duplicate the speedlines part
  873. local speedlinesClone = speedlinesPart:Clone()
  874.  
  875. -- Put the duplicate in Workspace
  876. speedlinesClone.Parent = Workspace
  877.  
  878. -- Function to update the position of the speedlines clone to follow the player
  879. local function updateSpeedlinesPosition()
  880. while true do
  881. speedlinesClone.CFrame = rootPart.CFrame
  882. wait(0.1) -- Adjust the wait time as needed
  883. end
  884. end
  885. local Players = game:GetService("Players")
  886. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  887. local Workspace = game:GetService("Workspace")
  888.  
  889. -- Wait for the player to load
  890. local player = Players.LocalPlayer
  891. local character = player.Character or player.CharacterAdded:Wait()
  892. local rootPart = character:WaitForChild("HumanoidRootPart")
  893.  
  894. -- Check for Resources folder in ReplicatedStorage
  895. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  896.  
  897. -- Check for KJEffects folder inside Resources
  898. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  899.  
  900. -- Check for speedlines part inside KJEffects
  901. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  902.  
  903. -- Duplicate the speedlines part
  904. local speedlinesClone = speedlinesPart:Clone()
  905.  
  906. -- Put the duplicate in Workspace
  907. speedlinesClone.Parent = Workspace
  908.  
  909. -- Function to update the position of the speedlines clone to follow the player
  910. local function updateSpeedlinesPosition()
  911. while true do
  912. speedlinesClone.CFrame = rootPart.CFrame
  913. wait(0.1) -- Adjust the wait time as needed
  914. end
  915. end
  916.  
  917. local Players = game:GetService("Players")
  918. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  919. local Workspace = game:GetService("Workspace")
  920.  
  921. -- Wait for the player to load
  922. local player = Players.LocalPlayer
  923. local character = player.Character or player.CharacterAdded:Wait()
  924. local rootPart = character:WaitForChild("HumanoidRootPart")
  925.  
  926. -- Check for Resources folder in ReplicatedStorage
  927. local resourcesFolder = ReplicatedStorage:WaitForChild("Resources")
  928.  
  929. -- Check for KJEffects folder inside Resources
  930. local kjEffectsFolder = resourcesFolder:WaitForChild("KJEffects")
  931.  
  932. -- Check for speedlines part inside KJEffects
  933. local speedlinesPart = kjEffectsFolder:WaitForChild("speedlines")
  934.  
  935. -- Duplicate the speedlines part
  936. local speedlinesClone = speedlinesPart:Clone()
  937.  
  938. -- Put the duplicate in Workspace
  939. speedlinesClone.Parent = Workspace
  940.  
  941. -- Function to update the position of the speedlines clone to follow the player
  942. local function updateSpeedlinesPosition()
  943. while true do
  944. speedlinesClone.CFrame = rootPart.CFrame
  945. wait(0.1) -- Adjust the wait time as needed
  946. end
  947. end
  948.  
  949. -- Set rush speed and force
  950. local rushSpeed = 187
  951. local maxForce = Vector3.new(100000, 0, 100000) -- Adjust max force as needed
  952.  
  953. -- Get initial rush direction based on camera's look vector
  954. local camera = game.Workspace.CurrentCamera
  955. local initialLookVector = camera.CFrame.LookVector
  956. local rushDirection = Vector3.new(initialLookVector.X, 0, initialLookVector.Z).unit -- Ignore Y direction
  957.  
  958. -- Create BodyVelocity to apply rush force
  959. local bodyVelocity = Instance.new("BodyVelocity")
  960. bodyVelocity.Velocity = rushDirection * rushSpeed
  961. bodyVelocity.MaxForce = maxForce
  962. bodyVelocity.P = 10000 -- Adjust P value for smoother movement
  963. bodyVelocity.Parent = character:WaitForChild("HumanoidRootPart")
  964.  
  965. -- Function to update rush direction based on camera look vector
  966. local function updateRushDirection()
  967. rushDirection = camera.CFrame.LookVector
  968. rushDirection = Vector3.new(rushDirection.X, 0, rushDirection.Z).unit -- Ignore Y direction
  969. bodyVelocity.Velocity = rushDirection * rushSpeed
  970. end
  971.  
  972. -- Connect to RenderStepped to continuously update rush direction
  973. local connection
  974. connection = game:GetService("RunService").RenderStepped:Connect(function()
  975. updateRushDirection()
  976. end)
  977.  
  978. -- Function to stop rush effect and clean up after 4.15 seconds
  979. local function stopRushEffect()
  980. bodyVelocity:Destroy()
  981. connection:Disconnect()
  982. end
  983.  
  984. -- Stop the rush effect after 4.15 seconds
  985. wait(4.21)
  986. stopRushEffect()
  987.  
  988. -- Get all children of the workspace
  989. local children = workspace:GetChildren()
  990.  
  991. -- Iterate through each child
  992. for _, child in ipairs(children) do
  993. -- Check if the child is a part and its name is "speedlines"
  994. if child:IsA("Part") and child.Name == "speedlines" then
  995. -- Delete the part
  996. child:Destroy()
  997. end
  998. end
  999.  
  1000. -- Get all children of the workspace
  1001. local children = workspace:GetChildren()
  1002.  
  1003. -- Iterate through each child
  1004. for _, child in ipairs(children) do
  1005. -- Check if the child is a part and its name is "speedlines"
  1006. if child:IsA("Part") and child.Name == "speedlinesandstuff" then
  1007. -- Delete the part
  1008. child:Destroy()
  1009. end
  1010. end
  1011.  
  1012. -- Get all children of the workspace
  1013. local children = workspace:GetChildren()
  1014.  
  1015. -- Iterate through each child
  1016. for _, child in ipairs(children) do
  1017. -- Check if the child is a part and its name is "speedlines"
  1018. if child:IsA("Part") and child.Name == "thespeedthingunderultik" then
  1019. -- Delete the part
  1020. child:Destroy()
  1021. end
  1022. end
  1023.  
  1024. local player = game.Players.LocalPlayer
  1025. local character = player.Character or player.CharacterAdded:Wait()
  1026.  
  1027. local function setWalkSpeedToSixTeen()
  1028. local humanoid = character:WaitForChild("Humanoid")
  1029. humanoid.WalkSpeed = 16
  1030. end
  1031.  
  1032. if character then
  1033. setWalkSpeedToZero()
  1034. end
  1035.  
  1036. player.CharacterAdded:Connect(function(newCharacter)
  1037. character = newCharacter
  1038. setWalkSpeedToZero()
  1039. end)
  1040.  
  1041.  
  1042. end
  1043.  
  1044. -- Example usage: Call initiateRush() when you want to trigger the rush effect.
  1045. initiateRush()
  1046. end
  1047.  
  1048.  
  1049. -- Add functionality to the tool when activated
  1050. tool.Equipped:Connect(function()
  1051. activateTool()
  1052. end)
  1053.  
  1054. -- Add the tool to the player's backpack
  1055. tool.Parent = game.Players.LocalPlayer.Backpack
Tags: kj
Advertisement
Comments
Add Comment
Please, Sign In to add comment