跳转到内容
可用

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