Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local topbarPlus = playerGui:WaitForChild("TopbarPlus")
- local topbarContainer = topbarPlus:WaitForChild("TopbarContainer")
- local unnamedIcon = topbarContainer:WaitForChild("UnnamedIcon")
- local dropdownContainer = unnamedIcon:WaitForChild("DropdownContainer")
- local dropdownFrame = dropdownContainer:WaitForChild("DropdownFrame")
- local charFrame = Instance.new("Frame")
- charFrame.Name = "Char"
- charFrame.Parent = dropdownFrame
- charFrame.BackgroundTransparency = 1
- charFrame.BorderColor3 = Color3.fromRGB(27, 42, 53)
- charFrame.BorderSizePixel = 1
- charFrame.LayoutOrder = 14
- charFrame.Size = UDim2.new(1, 0, 0, 32)
- charFrame.SizeConstraint = Enum.SizeConstraint.RelativeXY
- charFrame.ZIndex = 1
- local iconButton = Instance.new("TextButton")
- iconButton.Name = "IconButton"
- iconButton.Parent = charFrame
- iconButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- iconButton.BackgroundTransparency = 0.5
- iconButton.BorderSizePixel = 0
- iconButton.Text = ""
- iconButton.TextScaled = false
- iconButton.TextSize = 8
- iconButton.TextTransparency = 1
- iconButton.TextWrapped = false
- iconButton.Position = UDim2.new(0, 0, 0, 0)
- iconButton.Size = UDim2.new(1, 0, 1, 0)
- iconButton.SizeConstraint = Enum.SizeConstraint.RelativeXY
- iconButton.Font = Enum.Font.Legacy
- iconButton.LayoutOrder = 0
- local iconImage = Instance.new("ImageLabel")
- iconImage.Name = "IconImage"
- iconImage.Parent = iconButton
- iconImage.AnchorPoint = Vector2.new(0, 0.5)
- iconImage.BackgroundTransparency = 1
- iconImage.BorderColor3 = Color3.fromRGB(27, 42, 53)
- iconImage.BorderSizePixel = 1
- iconImage.Image = "rbxassetid://17140853847"
- iconImage.ImageColor3 = Color3.fromRGB(255, 255, 255)
- iconImage.ImageRectOffset = Vector2.new(0, 0)
- iconImage.ImageRectSize = Vector2.new(0, 0)
- iconImage.ImageTransparency = 0
- iconImage.LayoutOrder = 0
- iconImage.Position = UDim2.new(0, 12, 0, 15)
- iconImage.Size = UDim2.new(0, 24, 0, 24)
- iconImage.SizeConstraint = Enum.SizeConstraint.RelativeXY
- iconImage.TileSize = UDim2.new(1, 0, 1, 0)
- iconImage.SliceScale = 1
- iconImage.ZIndex = 11
- local iconLabel = Instance.new("TextLabel")
- iconLabel.Name = "IconLabel"
- iconLabel.Parent = iconButton
- iconLabel.AnchorPoint = Vector2.new(0, 0.5)
- iconLabel.BackgroundTransparency = 1
- iconLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
- iconLabel.BorderSizePixel = 1
- iconLabel.Font = Enum.Font.GothamMedium
- iconLabel.LayoutOrder = 0
- iconLabel.Text = "KJ"
- iconLabel.TextColor3 = Color3.fromRGB(255, 216, 19)
- iconLabel.TextSize = 14
- iconLabel.TextScaled = false
- iconLabel.TextTransparency = 0
- iconLabel.TextWrapped = false
- iconLabel.TextXAlignment = Enum.TextXAlignment.Left
- iconLabel.TextYAlignment = Enum.TextYAlignment.Center
- iconLabel.Position = UDim2.new(0, 44, 0, 15)
- iconLabel.Size = UDim2.new(1, -56, 0, 7)
- iconLabel.TextStrokeTransparency = 1
- iconLabel.ZIndex = 11
- local function onErrorNotification()
- game.StarterGui:SetCore("SendNotification", {
- Title = "NOTIFICATION";
- Text = "YOU'RE ALREADY PLAYING AS THIS CHARACTER.";
- Icon = "";
- Duration = 5;
- })
- end
- local function handleIconButtonClick()
- if not game.Players.LocalPlayer.Backpack:FindFirstChild("Normal Punch") then
- game.StarterGui:SetCore("SendNotification", {
- Title = "Reset";
- Text = "Change Character To The Strongest Hero/Saitama";
- Duration = 5; -- how long the notification should in secounds
- })
- end
- if game.Players.LocalPlayer.Backpack:FindFirstChild("Normal Punch") then
- task.spawn(function()
- local soundId = "rbxassetid://17325174223"
- -- Create a Sound instance
- local sound = Instance.new("Sound")
- sound.SoundId = soundId
- sound.Volume = 2
- sound.Parent = workspace -- You can change this to any part you want the sound to play from
- -- Play the sound
- sound:Play()
- end)
- task.spawn(function()
- local animationId = "rbxassetid://17325160621"
- -- Function to play the animation
- local function playAnimation(player)
- local character = player.Character
- if character then
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- -- Create a new Animation instance
- local animation = Instance.new("Animation")
- animation.AnimationId = animationId
- -- Create an AnimationTrack for the Animation
- local animationTrack = humanoid:LoadAnimation(animation)
- animationTrack:Play()
- end
- end
- end
- -- Example: Play animation for the LocalPlayer
- local player = game.Players.LocalPlayer
- playAnimation(player)
- end)
- task.spawn(function()
- -- KJ Manipulator Script --
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- if player and player:FindFirstChild("Backpack") then
- local backpack = player.Backpack
- for _, item in ipairs(backpack:GetChildren()) do
- if item:IsA("Tool") then
- item:Destroy()
- end
- end
- end
- -- Create the Tool instance
- local tool = Instance.new("Tool")
- tool.Name = "Ravage"
- tool.RequiresHandle = false
- tool.CanBeDropped = true
- tool.ToolTip = "Ravaging my way outta here!"
- -- Add the tool to the player's backpack
- tool.Parent = game.Players.LocalPlayer.Backpack
- -- Create the Tool instance
- local tool = Instance.new("Tool")
- -- Set the tool's properties
- tool.Name = "Swift Sweep"
- tool.RequiresHandle = false -- Set to true if you have a handle part
- tool.CanBeDropped = true -- Change as needed
- -- Add a description or other properties
- tool.ToolTip = "A swift sweeping tool for fast clean-ups."
- -- Add the tool to the player's backpack
- tool.Parent = game.Players.LocalPlayer.Backpack
- -- Create the Tool instance
- local tool = Instance.new("Tool")
- -- Set the tool's properties
- tool.Name = "Collateral Ruin"
- tool.RequiresHandle = false -- Set to true if you have a handle part
- tool.CanBeDropped = true -- Change as needed
- -- Add a description or other properties
- tool.ToolTip = "Unleash ruinous power!"
- -- Add the tool to the player's backpack
- tool.Parent = game.Players.LocalPlayer.Backpack
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local function findGuiAndSetText()
- local screenGui = playerGui:FindFirstChild("ScreenGui")
- if screenGui then
- local magicHealthFrame = screenGui:FindFirstChild("MagicHealth")
- if magicHealthFrame then
- local textLabel = magicHealthFrame:FindFirstChild("TextLabel")
- if textLabel then
- textLabel.Text = "20 SERIES"
- end
- end
- end
- end
- playerGui.DescendantAdded:Connect(findGuiAndSetText)
- findGuiAndSetText()
- end)
- -- Function to handle animation detection and replacement
- local function handleAnimationDetection(animIdsToStop, replacementAnimId)
- local humanoid = game.Players.LocalPlayer.Character.Humanoid
- local function onAnimPlayed(animationTrack)
- local animId = tonumber(string.match(animationTrack.Animation.AnimationId, "%d+"))
- for _, stopId in ipairs(animIdsToStop) do
- if animId == stopId then
- animationTrack:Stop()
- local player = game.Players.LocalPlayer
- repeat wait() until player.Character.Humanoid
- local humanoid = player.Character.Humanoid
- local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
- local UserInputService = game:GetService("UserInputService")
- debounce = false -- Activate debounce
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://" .. replacementAnimId
- local playAnim = humanoid:LoadAnimation(anim)
- anim.AnimationId = "rbxassetid://0" -- don't change anything here
- spawn(function()
- wait(1)
- debounce = true
- end)
- playAnim:Play()
- playAnim:AdjustSpeed(1)
- local Players = game:GetService("Players")
- local Character = Players.LocalPlayer.Character or Players.LocalPlayer.CharacterAdded:Wait()
- local animationPlayed = false -- Flag to track if the animation has already been played
- end
- end
- end
- humanoid.AnimationPlayed:Connect(onAnimPlayed)
- end
- -- First set of animations
- local firstAnimIdsToStop = {10469493270, 13532562418, 13491635433, 13370310513, 14004222985, 15259161390, 16515503507, 17889458563}
- local m1 = 17325510002
- handleAnimationDetection(firstAnimIdsToStop, m1)
- -- Second set of animations
- local secondAnimIdsToStop = {10469630950, 13532600125, 13296577783, 13390230973, 13997092940, 15240216931, 16515520431, 17889461810}
- local m2 = 17325513870
- handleAnimationDetection(secondAnimIdsToStop, m2)
- -- Third set of animations
- local thirdAnimIdsToStop = {10469639222, 13532604085, 13295919399, 13378751717, 14001963401, 15240176873, 16515448089, 17889471098}
- local m3 = 17325522388
- handleAnimationDetection(thirdAnimIdsToStop, m3)
- -- Fourth set of animations
- local fourthAnimIdsToStop = {10469643643, 13294471966, 13295936866, 13378708199, 14136436157, 15162694192, 16552234590, 17889290569}
- local m4 = 17325537719
- handleAnimationDetection(fourthAnimIdsToStop, m4)
- end
- local character = player.Character
- if not character then
- return
- end
- local scriptHasRun = character:FindFirstChild("ScriptHasRun")
- if scriptHasRun and scriptHasRun.Value then
- onErrorNotification()
- return
- end
- if not scriptHasRun then
- scriptHasRun = Instance.new("BoolValue")
- scriptHasRun.Name = "ScriptHasRun"
- scriptHasRun.Value = true
- scriptHasRun.Parent = character
- else
- scriptHasRun.Value = true
- end
- end
- iconButton.MouseButton1Click:Connect(handleIconButtonClick)
- print("Script Loaded 0 cap") -- Debug print to confirm script initialization
- player.CharacterAdded:Connect(function(character)
- local scriptHasRun = character:FindFirstChild("ScriptHasRun")
- if scriptHasRun then
- scriptHasRun.Value = false
- end
- end)
- if player.Character then
- local scriptHasRun = player.Character:FindFirstChild("ScriptHasRun")
- if scriptHasRun then
- scriptHasRun.Value = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement