Advertisement
ILovePotato

Untitled

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