コンテンツへスキップ
動作中

my script

CLclarkdevlinorg0 閲覧数Evade2026年7月26日
共有
my script

スクリプトコード

Lua
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

-- Limpeza preventiva
if playerGui:FindFirstChild("ZombieStrideGui") then
    playerGui.ZombieStrideGui:Destroy()
end

local gui = Instance.new("ScreenGui", playerGui)
gui.Name = "ZombieStrideGui"
gui.ResetOnSpawn = false

-- Criar o objeto de som único (isso evita o acúmulo)
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://1131937949"
sound.Parent = player.Character:WaitForChild("Head") -- Som na cabeça

local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 160, 0, 200)
frame.Position = UDim2.new(0.5, 0, 0.4, 0)
frame.BackgroundColor3 = Color3.fromRGB(45, 0, 60)
frame.Active = true
frame.Draggable = true
frame.Visible = true

local stroke = Instance.new("UIStroke", frame)
stroke.Color = Color3.fromRGB(150, 0, 255)
stroke.Thickness = 2

local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1, 0, 0.2, 0)
title.Text = "Zombie Stride Client"
title.Font = Enum.Font.GothamBold
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.BackgroundTransparency = 1
title.Parent = frame

local currentTrack = nil
local activeId = nil

local function playCustom(animId)
    -- Se clicou na mesma, apenas para tudo
    if activeId == animId then
        if currentTrack then currentTrack:Stop() end
        sound:Stop()
        currentTrack = nil
        activeId = nil
        return
    end

    -- Para o som e animação anteriores instantaneamente
    if currentTrack then currentTrack:Stop() end
    sound:Stop()

    local char = player.Character
    local hum = char and char:FindFirstChild("Humanoid")
    local animator = hum and (hum:FindFirstChild("Animator") or Instance.new("Animator", hum))
    
    if animator then
        local anim = Instance.new("Animation")
        anim.AnimationId = animId
        currentTrack = animator:LoadAnimation(anim)
        currentTrack.Priority = Enum.AnimationPriority.Action4
        currentTrack:Play()
        
        -- Inicia o som único
        sound:Play()
        activeId = animId
    end
end

-- Botões
local function createBtn(text, id, posY)
    local btn = Instance.new("TextButton", frame)
    btn.Size = UDim2.new(0.8, 0, 0.2, 0)
    btn.Position = UDim2.new(0.1, 0, 0, posY)
    btn.BackgroundColor3 = Color3.fromRGB(80, 0, 120)
    btn.Text = text
    btn.Font = Enum.Font.GothamBold
    btn.TextColor3 = Color3.new(1, 1, 1)
    btn.Parent = frame
    btn.MouseButton1Click:Connect(function() playCustom(id) end)
    Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
end

createBtn("Animação A", "rbxassetid://125497596837433", 45)
createBtn("Animação B", "rbxassetid://84248734120911", 95)
createBtn("Animação C", "rbxassetid://73383479205643", 145)

コメント (0)

会話に参加するにはログインしてください

  • 最初のコメントを投稿しましょう。

よくある質問

my scriptスクリプトはどう使いますか?
上のスクリプトコードをコピーし、Robloxエグゼキューターを開いて貼り付け、ゲーム中に実行を押してください。スクリプトが実行されると、機能が即座に有効になります。
my scriptスクリプトは無料ですか?
はい。このスクリプトは無料でコピー&使用できます。キーシステムを使用している場合は、リンクから無料でキーを取得してください。
my scriptスクリプトの使用は安全ですか?
ソースコード全体がこのページに表示されるので、実行前に内容を正確に確認できます。信頼できるエグゼキューターを使用し、スクリプトの使用はRobloxの利用規約に違反するため、自己責任で使用してください。
my scriptに対応するエグゼキューターは?
このスクリプトはほとんどの人気Robloxエグゼキューターで動作します。お使いのデバイス向けの信頼できる無料または有料エグゼキューターを見つけるには、エグゼキューターページをご覧ください。
my script | BloxScripter