Advertisement
Guest User

KJ SCRIPT (THE BEST) BY: KJ HUB)

a guest
Sep 22nd, 2024
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.06 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local playerGui = player:WaitForChild("PlayerGui")
  3.  
  4. local topbarPlus = playerGui:WaitForChild("TopbarPlus")
  5. local topbarContainer = topbarPlus:WaitForChild("TopbarContainer")
  6. local unnamedIcon = topbarContainer:WaitForChild("UnnamedIcon")
  7. local dropdownContainer = unnamedIcon:WaitForChild("DropdownContainer")
  8. local dropdownFrame = dropdownContainer:WaitForChild("DropdownFrame")
  9.  
  10. local charFrame = Instance.new("Frame")
  11. charFrame.Name = "Char"
  12. charFrame.Parent = dropdownFrame
  13. charFrame.BackgroundTransparency = 1
  14. charFrame.BorderColor3 = Color3.fromRGB(27, 42, 53)
  15. charFrame.BorderSizePixel = 1
  16. charFrame.LayoutOrder = 14
  17. charFrame.Size = UDim2.new(1, 0, 0, 32)
  18. charFrame.SizeConstraint = Enum.SizeConstraint.RelativeXY
  19. charFrame.ZIndex = 1
  20.  
  21. local iconButton = Instance.new("TextButton")
  22. iconButton.Name = "IconButton"
  23. iconButton.Parent = charFrame
  24. iconButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  25. iconButton.BackgroundTransparency = 0.5
  26. iconButton.BorderSizePixel = 0
  27. iconButton.Text = ""
  28. iconButton.TextScaled = false
  29. iconButton.TextSize = 8
  30. iconButton.TextTransparency = 1
  31. iconButton.TextWrapped = false
  32. iconButton.Position = UDim2.new(0, 0, 0, 0)
  33. iconButton.Size = UDim2.new(1, 0, 1, 0)
  34. iconButton.SizeConstraint = Enum.SizeConstraint.RelativeXY
  35. iconButton.Font = Enum.Font.Legacy
  36. iconButton.LayoutOrder = 0
  37.  
  38. local iconImage = Instance.new("ImageLabel")
  39. iconImage.Name = "IconImage"
  40. iconImage.Parent = iconButton
  41. iconImage.AnchorPoint = Vector2.new(0, 0.5)
  42. iconImage.BackgroundTransparency = 1
  43. iconImage.BorderColor3 = Color3.fromRGB(27, 42, 53)
  44. iconImage.BorderSizePixel = 1
  45. iconImage.Image = "rbxassetid://17140853847"
  46. iconImage.ImageColor3 = Color3.fromRGB(255, 255, 255)
  47. iconImage.ImageRectOffset = Vector2.new(0, 0)
  48. iconImage.ImageRectSize = Vector2.new(0, 0)
  49. iconImage.ImageTransparency = 0
  50. iconImage.LayoutOrder = 0
  51. iconImage.Position = UDim2.new(0, 12, 0, 15)
  52. iconImage.Size = UDim2.new(0, 24, 0, 24)
  53. iconImage.SizeConstraint = Enum.SizeConstraint.RelativeXY
  54. iconImage.TileSize = UDim2.new(1, 0, 1, 0)
  55. iconImage.SliceScale = 1
  56. iconImage.ZIndex = 11
  57.  
  58. local iconLabel = Instance.new("TextLabel")
  59. iconLabel.Name = "IconLabel"
  60. iconLabel.Parent = iconButton
  61. iconLabel.AnchorPoint = Vector2.new(0, 0.5)
  62. iconLabel.BackgroundTransparency = 1
  63. iconLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  64. iconLabel.BorderSizePixel = 1
  65. iconLabel.Font = Enum.Font.GothamMedium
  66. iconLabel.LayoutOrder = 0
  67. iconLabel.Text = "KJ"
  68. iconLabel.TextColor3 = Color3.fromRGB(255, 216, 19)
  69. iconLabel.TextSize = 14
  70. iconLabel.TextScaled = false
  71. iconLabel.TextTransparency = 0
  72. iconLabel.TextWrapped = false
  73. iconLabel.TextXAlignment = Enum.TextXAlignment.Left
  74. iconLabel.TextYAlignment = Enum.TextYAlignment.Center
  75. iconLabel.Position = UDim2.new(0, 44, 0, 15)
  76. iconLabel.Size = UDim2.new(1, -56, 0, 7)
  77. iconLabel.TextStrokeTransparency = 1
  78. iconLabel.ZIndex = 11
  79.  
  80. local function onErrorNotification()
  81. game.StarterGui:SetCore("SendNotification", {
  82. Title = "NOTIFICATION";
  83. Text = "YOU'RE ALREADY PLAYING AS THIS CHARACTER.";
  84. Icon = "";
  85. Duration = 5;
  86. })
  87. end
  88.  
  89. local function handleIconButtonClick()
  90. if not game.Players.LocalPlayer.Backpack:FindFirstChild("Normal Punch") then
  91. game.StarterGui:SetCore("SendNotification", {
  92. Title = "Reset";
  93. Text = "Change Character To The Strongest Hero/Saitama";
  94. Duration = 5; -- how long the notification should in secounds
  95. })
  96. end
  97. if game.Players.LocalPlayer.Backpack:FindFirstChild("Normal Punch") then
  98. task.spawn(function()
  99. local soundId = "rbxassetid://17325174223"
  100.  
  101. -- Create a Sound instance
  102. local sound = Instance.new("Sound")
  103. sound.SoundId = soundId
  104. sound.Volume = 2
  105. sound.Parent = workspace -- You can change this to any part you want the sound to play from
  106.  
  107. -- Play the sound
  108. sound:Play()
  109. end)
  110. task.spawn(function()
  111. local animationId = "rbxassetid://17325160621"
  112.  
  113. -- Function to play the animation
  114. local function playAnimation(player)
  115. local character = player.Character
  116. if character then
  117. local humanoid = character:FindFirstChildOfClass("Humanoid")
  118. if humanoid then
  119. -- Create a new Animation instance
  120. local animation = Instance.new("Animation")
  121. animation.AnimationId = animationId
  122.  
  123. -- Create an AnimationTrack for the Animation
  124. local animationTrack = humanoid:LoadAnimation(animation)
  125. animationTrack:Play()
  126. end
  127. end
  128. end
  129.  
  130. -- Example: Play animation for the LocalPlayer
  131. local player = game.Players.LocalPlayer
  132. playAnimation(player)
  133. end)
  134. task.spawn(function()
  135. -- KJ Manipulator Script --
  136.  
  137. local Players = game:GetService("Players")
  138. local player = Players.LocalPlayer
  139.  
  140. if player and player:FindFirstChild("Backpack") then
  141. local backpack = player.Backpack
  142.  
  143. for _, item in ipairs(backpack:GetChildren()) do
  144. if item:IsA("Tool") then
  145. item:Destroy()
  146. end
  147. end
  148. end
  149.  
  150. -- Create the Tool instance
  151. local tool = Instance.new("Tool")
  152. tool.Name = "Ravage"
  153. tool.RequiresHandle = false
  154. tool.CanBeDropped = true
  155. tool.ToolTip = "Ravaging my way outta here!"
  156.  
  157. -- Add the tool to the player's backpack
  158. tool.Parent = game.Players.LocalPlayer.Backpack
  159.  
  160. -- Create the Tool instance
  161. local tool = Instance.new("Tool")
  162.  
  163. -- Set the tool's properties
  164. tool.Name = "Swift Sweep"
  165. tool.RequiresHandle = false -- Set to true if you have a handle part
  166. tool.CanBeDropped = true -- Change as needed
  167.  
  168. -- Add a description or other properties
  169. tool.ToolTip = "A swift sweeping tool for fast clean-ups."
  170.  
  171. -- Add the tool to the player's backpack
  172. tool.Parent = game.Players.LocalPlayer.Backpack
  173.  
  174. -- Create the Tool instance
  175. local tool = Instance.new("Tool")
  176.  
  177. -- Set the tool's properties
  178. tool.Name = "Collateral Ruin"
  179. tool.RequiresHandle = false -- Set to true if you have a handle part
  180. tool.CanBeDropped = true -- Change as needed
  181.  
  182. -- Add a description or other properties
  183. tool.ToolTip = "Unleash ruinous power!"
  184.  
  185. -- Add the tool to the player's backpack
  186. tool.Parent = game.Players.LocalPlayer.Backpack
  187.  
  188. local player = Players.LocalPlayer
  189. local playerGui = player:WaitForChild("PlayerGui")
  190.  
  191. local function findGuiAndSetText()
  192. local screenGui = playerGui:FindFirstChild("ScreenGui")
  193. if screenGui then
  194. local magicHealthFrame = screenGui:FindFirstChild("MagicHealth")
  195. if magicHealthFrame then
  196. local textLabel = magicHealthFrame:FindFirstChild("TextLabel")
  197. if textLabel then
  198. textLabel.Text = "20 SERIES"
  199. end
  200. end
  201. end
  202. end
  203.  
  204.  
  205. playerGui.DescendantAdded:Connect(findGuiAndSetText)
  206. findGuiAndSetText()
  207. end)
  208.  
  209. -- Function to handle animation detection and replacement
  210. local function handleAnimationDetection(animIdsToStop, replacementAnimId)
  211. local humanoid = game.Players.LocalPlayer.Character.Humanoid
  212.  
  213. local function onAnimPlayed(animationTrack)
  214. local animId = tonumber(string.match(animationTrack.Animation.AnimationId, "%d+"))
  215.  
  216. for _, stopId in ipairs(animIdsToStop) do
  217. if animId == stopId then
  218. animationTrack:Stop()
  219. local player = game.Players.LocalPlayer
  220. repeat wait() until player.Character.Humanoid
  221. local humanoid = player.Character.Humanoid
  222. local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
  223. local UserInputService = game:GetService("UserInputService")
  224. debounce = false -- Activate debounce
  225. local anim = Instance.new("Animation")
  226. anim.AnimationId = "rbxassetid://" .. replacementAnimId
  227. local playAnim = humanoid:LoadAnimation(anim)
  228. anim.AnimationId = "rbxassetid://0" -- don't change anything here
  229.  
  230. spawn(function()
  231. wait(1)
  232. debounce = true
  233. end)
  234.  
  235. playAnim:Play()
  236. playAnim:AdjustSpeed(1)
  237.  
  238. local Players = game:GetService("Players")
  239. local Character = Players.LocalPlayer.Character or Players.LocalPlayer.CharacterAdded:Wait()
  240.  
  241. local animationPlayed = false -- Flag to track if the animation has already been played
  242. end
  243. end
  244. end
  245.  
  246. humanoid.AnimationPlayed:Connect(onAnimPlayed)
  247. end
  248.  
  249. -- First set of animations
  250. local firstAnimIdsToStop = {10469493270, 13532562418, 13491635433, 13370310513, 14004222985, 15259161390, 16515503507, 17889458563}
  251. local m1 = 17325510002
  252. handleAnimationDetection(firstAnimIdsToStop, m1)
  253.  
  254. -- Second set of animations
  255. local secondAnimIdsToStop = {10469630950, 13532600125, 13296577783, 13390230973, 13997092940, 15240216931, 16515520431, 17889461810}
  256. local m2 = 17325513870
  257. handleAnimationDetection(secondAnimIdsToStop, m2)
  258.  
  259. -- Third set of animations
  260. local thirdAnimIdsToStop = {10469639222, 13532604085, 13295919399, 13378751717, 14001963401, 15240176873, 16515448089, 17889471098}
  261. local m3 = 17325522388
  262. handleAnimationDetection(thirdAnimIdsToStop, m3)
  263.  
  264. -- Fourth set of animations
  265. local fourthAnimIdsToStop = {10469643643, 13294471966, 13295936866, 13378708199, 14136436157, 15162694192, 16552234590, 17889290569}
  266. local m4 = 17325537719
  267. handleAnimationDetection(fourthAnimIdsToStop, m4)
  268. end
  269. local character = player.Character
  270. if not character then
  271. return
  272. end
  273.  
  274. local scriptHasRun = character:FindFirstChild("ScriptHasRun")
  275. if scriptHasRun and scriptHasRun.Value then
  276. onErrorNotification()
  277. return
  278. end
  279.  
  280. if not scriptHasRun then
  281. scriptHasRun = Instance.new("BoolValue")
  282. scriptHasRun.Name = "ScriptHasRun"
  283. scriptHasRun.Value = true
  284. scriptHasRun.Parent = character
  285. else
  286. scriptHasRun.Value = true
  287. end
  288. end
  289.  
  290. iconButton.MouseButton1Click:Connect(handleIconButtonClick)
  291.  
  292. print("Script Loaded 0 cap") -- Debug print to confirm script initialization
  293.  
  294. player.CharacterAdded:Connect(function(character)
  295. local scriptHasRun = character:FindFirstChild("ScriptHasRun")
  296. if scriptHasRun then
  297. scriptHasRun.Value = false
  298. end
  299. end)
  300.  
  301. if player.Character then
  302. local scriptHasRun = player.Character:FindFirstChild("ScriptHasRun")
  303. if scriptHasRun then
  304. scriptHasRun.Value = false
  305. end
  306. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement