Peppino Spaghetti V2
Key RequiredUniversal

Peppino Spaghetti V2

Universal ScriptLocalplayer123Localplayer123 6.3K views 1.4K executesUpdated Dec 4, 2024
Unrated
00
Lua Script•141 lines (4121 chars)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChildOfClass("Humanoid")

local idleAnimationId = "rbxassetid://159223413"
local jumpAnimationId = "rbxassetid://188632011"
local runAnimationId = "rbxassetid://259438880"

local walkSpeed = 100
local defaultWalkSpeed = 16

local superJumpPower = 300
local defaultJumpPower = 50

local machRunTool = Instance.new("Tool")
machRunTool.Name = "Mach Run"
machRunTool.RequiresHandle = false
machRunTool.CanBeDropped = false

local superJumpTool = Instance.new("Tool")
superJumpTool.Name = "Super Jump"
superJumpTool.RequiresHandle = false
superJumpTool.CanBeDropped = false

local function playAnimation(animationId)
    local animation = Instance.new("Animation")
    animation.AnimationId = animationId
    local animationTrack = humanoid:LoadAnimation(animation)
    animationTrack:Play()
    return animationTrack
end

local function stopAnimation(animationTrack)
    if animationTrack and animationTrack.IsPlaying then
        animationTrack:Stop()
    end
end

local idleAnimation = Instance.new("Animation")
idleAnimation.AnimationId = idleAnimationId
local idleAnimationTrack

local function playIdleAnimation()
    if not idleAnimationTrack then
        idleAnimationTrack = humanoid:LoadAnimation(idleAnimation)
    end
    if not idleAnimationTrack.IsPlaying then
        idleAnimationTrack:Play()
    end
end

local function stopIdleAnimation()
    if idleAnimationTrack and idleAnimationTrack.IsPlaying then
        idleAnimationTrack:Stop()
    end
end

RunService.RenderStepped:Connect(function()
    if humanoid.WalkSpeed == walkSpeed then
        stopIdleAnimation()
    else
        if humanoid.MoveDirection.Magnitude == 0 then
            playIdleAnimation()
        else
            stopIdleAnimation()
        end
    end
end)

machRunTool.Equipped:Connect(function()
    humanoid.WalkSpeed = walkSpeed
    local runAnimationTrack = playAnimation(runAnimationId)

    machRunTool.Unequipped:Connect(function()
        humanoid.WalkSpeed = defaultWalkSpeed
        stopAnimation(runAnimationTrack)
        stopIdleAnimation()
    end)
end)

machRunTool.Parent = player.Backpack

superJumpTool.Equipped:Connect(function()
    humanoid.JumpPower = superJumpPower

    superJumpTool.Activated:Connect(function()
        local jumpAnimationTrack = playAnimation(jumpAnimationId)
        humanoid.Jump = true
        wait(3)
        stopAnimation(jumpAnimationTrack)
    end)

    superJumpTool.Unequipped:Connect(function()
        humanoid.JumpPower = defaultJumpPower
    end)
end)

superJumpTool.Parent = player.Backpack

local screenGui = Instance.new("ScreenGui")
local frame = Instance.new("Frame")
local titleLabel = Instance.new("TextLabel")
local subtitleLabel = Instance.new("TextLabel")
local backgroundImage = Instance.new("ImageLabel")

screenGui.Parent = player:WaitForChild("PlayerGui")

frame.Size = UDim2.new(0.3, 0, 0.2, 0)
frame.Position = UDim2.new(0.35, 0, 0.4, 0)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.Parent = screenGui

backgroundImage.Size = UDim2.new(1, 0, 1, 0)
backgroundImage.Position = UDim2.new(0, 0, 0, 0)
backgroundImage.Image = "rbxassetid://12495085938"
backgroundImage.ImageTransparency = 0.7
backgroundImage.Parent = frame

titleLabel.Size = UDim2.new(1, 0, 0.5, 0)
titleLabel.BackgroundTransparency = 1
titleLabel.Text = "Peppino Spaghetti V2"
titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
titleLabel.Font = Enum.Font.Arcade
titleLabel.TextSize = 24
titleLabel.Parent = frame

subtitleLabel.Size = UDim2.new(1, 0, 0.5, 0)
subtitleLabel.Position = UDim2.new(0, 0, 0.5, 0)
subtitleLabel.BackgroundTransparency = 1
subtitleLabel.Text = "Made by PEPPIN_O & Usiscalabap_yt"
subtitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
subtitleLabel.Font = Enum.Font.Arcade
subtitleLabel.TextSize = 18
subtitleLabel.Parent = frame

wait(3)
screenGui:Destroy()

Features & Information

Superjump mach run Idle animation walk animation mach run animation Made by Peppin_o & Usiscalabap

Community Comments (2)

vftyalvftyalDec 5, 2024(edited)

great script

dodguidodguiJan 16, 2025(edited)

is it supposed to be r6 or r15

More Scripts for Universal Scripts