pasteblox

Untitled script

@gxhxfsgPublicUpdated
loadstring(game:HttpGet("https://pasteblox.com/raw/84j334aucn"))()

Script

pbx pull 84j334aucn
untitled-script.lua
-- ============================================================
--  幸运儿 · by 安坤
--  Lua 脚本制作者 | 悬浮球 + 悬浮窗
-- ============================================================

-- ================== 炫酷开场 ==================
local function intro()
    local gui = Instance.new("ScreenGui")
    gui.Name = "LuckyIntro"
    gui.ResetOnSpawn = false
    gui.IgnoreGuiInset = true
    gui.DisplayOrder = 999
    gui.Parent = game:GetService("CoreGui")

    local bg = Instance.new("Frame")
    bg.Size = UDim2.new(1, 0, 1, 0)
    bg.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
    bg.BackgroundTransparency = 1
    bg.Parent = gui

    local title = Instance.new("TextLabel")
    title.Size = UDim2.new(0, 0, 0, 60)
    title.Position = UDim2.new(0.5, 0, 0.4, 0)
    title.AnchorPoint = Vector2.new(0.5, 0.5)
    title.BackgroundTransparency = 1
    title.Text = "幸 运 儿"
    title.TextColor3 = Color3.fromRGB(255, 215, 0)
    title.Font = Enum.Font.GothamBlack
    title.TextSize = 52
    title.TextTransparency = 1
    title.Parent = bg

    local sub = Instance.new("TextLabel")
    sub.Size = UDim2.new(0, 0, 0, 30)
    sub.Position = UDim2.new(0.5, 0, 0.52, 0)
    sub.AnchorPoint = Vector2.new(0.5, 0.5)
    sub.BackgroundTransparency = 1
    sub.Text = "安坤 · Lua 脚本制作者"
    sub.TextColor3 = Color3.fromRGB(200, 200, 200)
    sub.Font = Enum.Font.Gotham
    sub.TextSize = 18
    sub.TextTransparency = 1
    sub.Parent = bg

    local line = Instance.new("Frame")
    line.Size = UDim2.new(0, 0, 0, 2)
    line.Position = UDim2.new(0.5, 0, 0.58, 0)
    line.AnchorPoint = Vector2.new(0.5, 0.5)
    line.BackgroundColor3 = Color3.fromRGB(255, 215, 0)
    line.BorderSizePixel = 0
    line.Parent = bg

    -- 淡入
    for i = 0, 1, 0.05 do
        title.TextTransparency = 1 - i
        sub.TextTransparency = 1 - i
        line.Size = UDim2.new(i * 0.6, 0, 0, 2)
        task.wait(0.03)
    end
    task.wait(1.5)
    -- 淡出
    for i = 0, 1, 0.05 do
        title.TextTransparency = i
        sub.TextTransparency = i
        line.BackgroundTransparency = i
        task.wait(0.03)
    end
    gui:Destroy()
end

-- ================== 悬浮球 + 悬浮窗 ==================
local function main()
    local player = game:GetService("Players").LocalPlayer
    local uis = game:GetService("UserInputService")

    local gui = Instance.new("ScreenGui")
    gui.Name = "LuckyUI"
    gui.ResetOnSpawn = false
    gui.IgnoreGuiInset = true
    gui.DisplayOrder = 999
    gui.Parent = game:GetService("CoreGui")

    -- 悬浮球
    local ball = Instance.new("TextButton")
    ball.Size = UDim2.new(0, 56, 0, 56)
    ball.Position = UDim2.new(0, 20, 0.5, -28)
    ball.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
    ball.Text = "幸"
    ball.TextColor3 = Color3.fromRGB(255, 215, 0)
    ball.Font = Enum.Font.GothamBlack
    ball.TextSize = 24
    ball.AutoButtonColor = false
    ball.BorderSizePixel = 0
    ball.Parent = gui

    local ballCorner = Instance.new("UICorner")
    ballCorner.CornerRadius = UDim.new(1, 0)
    ballCorner.Parent = ball

    local ballStroke = Instance.new("UIStroke")
    ballStroke.Color = Color3.fromRGB(255, 215, 0)
    ballStroke.Thickness = 2
    ballStroke.Parent = ball

    -- 悬浮窗
    local panel = Instance.new("Frame")
    panel.Size = UDim2.new(0, 320, 0, 420)
    panel.Position = UDim2.new(0.5, -160, 0.5, -210)
    panel.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
    panel.BorderSizePixel = 0
    panel.Visible = false
    panel.Parent = gui

    local panelCorner = Instance.new("UICorner")
    panelCorner.CornerRadius = UDim.new(0, 12)
    panelCorner.Parent = panel

    local panelStroke = Instance.new("UIStroke")
    panelStroke.Color = Color3.fromRGB(255, 215, 0)
    panelStroke.Thickness = 1.5
    panelStroke.Transparency = 0.5
    panelStroke.Parent = panel

    -- 标题栏
    local titleBar = Instance.new("Frame")
    titleBar.Size = UDim2.new(1, 0, 0, 48)
    titleBar.BackgroundColor3 = Color3.fromRGB(28, 28, 28)
    titleBar.BorderSizePixel = 0
    titleBar.Parent = panel

    local titleCorner = Instance.new("UICorner")
    titleCorner.CornerRadius = UDim.new(0, 12)
    titleCorner.Parent = titleBar

    local titleText = Instance.new("TextLabel")
    titleText.Size = UDim2.new(1, -60, 1, 0)
    titleText.Position = UDim2.new(0, 16, 0, 0)
    titleText.BackgroundTransparency = 1
    titleText.Text = "幸运儿 · 安坤"
    titleText.TextColor3 = Color3.fromRGB(255, 215, 0)
    titleText.Font = Enum.Font.GothamBold
    titleText.TextSize = 18
    titleText.TextXAlignment = Enum.TextXAlignment.Left
    titleText.Parent = titleBar

    local closeBtn = Instance.new("TextButton")
    closeBtn.Size = UDim2.new(0, 32, 0, 32)
    closeBtn.Position = UDim2.new(1, -44, 0, 8)
    closeBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
    closeBtn.Text = "×"
    closeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
    closeBtn.Font = Enum.Font.GothamBold
    closeBtn.TextSize = 20
    closeBtn.BorderSizePixel = 0
    closeBtn.Parent = titleBar

    local closeCorner = Instance.new("UICorner")
    closeCorner.CornerRadius = UDim.new(0, 8)
    closeCorner.Parent = closeBtn

    -- 功能列表容器
    local scroll = Instance.new("ScrollingFrame")
    scroll.Size = UDim2.new(1, -24, 1, -72)
    scroll.Position = UDim2.new(0, 12, 0, 60)
    scroll.BackgroundTransparency = 1
    scroll.BorderSizePixel = 0
    scroll.ScrollBarThickness = 4
    scroll.ScrollBarImageColor3 = Color3.fromRGB(255, 215, 0)
    scroll.CanvasSize = UDim2.new(0, 0, 0, 0)
    scroll.AutomaticCanvasSize = Enum.AutomaticSize.Y
    scroll.Parent = panel

    local layout = Instance.new("UIListLayout")
    layout.Padding = UDim.new(0, 8)
    layout.SortOrder = Enum.SortOrder.LayoutOrder
    layout.Parent = scroll

    -- 功能开关状态
    local state = {
        Speed = false,
        Jump = false,
        Fly = false,
        Noclip = false,
    }

    -- 创建开关按钮
    local function makeToggle(name, key, callback)
        local btn = Instance.new("TextButton")
        btn.Size = UDim2.new(1, 0, 0, 44)
        btn.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
        btn.Text = "  " .. name .. "  [关]"
        btn.TextColor3 = Color3.fromRGB(200, 200, 200)
        btn.Font = Enum.Font.Gotham
        btn.TextSize = 15
        btn.TextXAlignment = Enum.TextXAlignment.Left
        btn.BorderSizePixel = 0
        btn.Parent = scroll

        local c = Instance.new("UICorner")
        c.CornerRadius = UDim.new(0, 8)
        c.Parent = btn

        local s = Instance.new("UIStroke")
        s.Color = Color3.fromRGB(60, 60, 60)
        s.Thickness = 1
        s.Parent = btn

        btn.MouseButton1Click:Connect(function()
            state[key] = not state[key]
            btn.Text = "  " .. name .. (state[key] and "  [开]" or "  [关]")
            btn.TextColor3 = state[key] and Color3.fromRGB(255, 215, 0) or Color3.fromRGB(200, 200, 200)
            s.Color = state[key] and Color3.fromRGB(255, 215, 0) or Color3.fromRGB(60, 60, 60)
            if callback then callback(state[key]) end
        end)
        return btn
    end

    -- 功能实现
    makeToggle("加速", "Speed", function(on)
        local char = player.Character or player.CharacterAdded:Wait()
        local hum = char:FindFirstChildOfClass("Humanoid")
        if hum then hum.WalkSpeed = on and 50 or 16 end
    end)

    makeToggle("跳跃增强", "Jump", function(on)
        local char = player.Character or player.CharacterAdded:Wait()
        local hum = char:FindFirstChildOfClass("Humanoid")
        if hum then hum.JumpPower = on and 100 or 50 end
    end)

    makeToggle("飞行", "Fly", function(on)
        local char = player.Character
        if not char then return end
        local hrp = char:FindFirstChild("HumanoidRootPart")
        if not hrp then return end
        if on then
            local bv = Instance.new("BodyVelocity")
            bv.Name = "LuckyFly"
            bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
            bv.Velocity = Vector3.zero
            bv.Parent = hrp
            local bg = Instance.new("BodyGyro")
            bg.Name = "LuckyFlyGyro"
            bg.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
            bg.CFrame = hrp.CFrame
            bg.Parent = hrp
            task.spawn(function()
                while bv.Parent do
                    local cam = workspace.CurrentCamera
                    local move = Vector3.zero
                    if uis:IsKeyDown(Enum.KeyCode.W) then move += cam.CFrame.LookVector end
                    if uis:IsKeyDown(Enum.KeyCode.S) then move -= cam.CFrame.LookVector end
                    if uis:IsKeyDown(Enum.KeyCode.A) then move -= cam.CFrame.RightVector end
                    if uis:IsKeyDown(Enum.KeyCode.D) then move += cam.CFrame.RightVector end
                    bv.Velocity = move * 60
                    bg.CFrame = cam.CFrame
                    task.wait()
                end
            end)
        else
            local hrp2 = char:FindFirstChild("HumanoidRootPart")
            if hrp2 then
                local old = hrp2:FindFirstChild("LuckyFly")
                if old then old:Destroy() end
                local old2 = hrp2:FindFirstChild("LuckyFlyGyro")
                if old2 then old2:Destroy() end
            end
        end
    end)

    makeToggle("穿墙", "Noclip", function(on)
        local char = player.Character
        if not char then return end
        for _, part in ipairs(char:GetDescendants()) do
            if part:IsA("BasePart") then
                part.CanCollide = not on
            end
        end
        player.CharacterAdded:Connect(function(c)
            task.wait(1)
            for _, part in ipairs(c:GetDescendants()) do
                if part:IsA("BasePart") then
                    part.CanCollide = not state.Noclip
                end
            end
        end)
    end)

    -- 拖动悬浮球
    local dragging, dragInput, dragStart, startPos
    ball.InputBegan:Connect(function(input)
        if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
            dragging = true
            dragStart = input.Position
            startPos = ball.Position
            input.Changed:Connect(function()
                if input.UserInputState == Enum.UserInputState.End then
                    dragging = false
                结束
            结束)
Lines 1–300 of 327Open raw Find-in-page only searches the lines loaded so far. Show all loads the rest.

Changelog

1 version
  1. First version

    Live

    @gxhxfsg·