pasteblox
Explore
Key systems
Docs
Search scripts
⌘K
Sign in
Explore
Key systems
Docs
Discord
New paste
Paste a Luau script and get a page plus a raw link that works with loadstring.
Or let the script's first comment name it.
Empty
/ 512kb
Language
.luau
.lua
Open file
⌘O
Empty
Limit 512kb
Explore
Key systems
Docs
Explore
Key systems
Docs
Sign in
327 lines · 10.9kb
/ 512kb
Language
.luau
.lua
Open file
⌘O
-- ============================================================ -- 幸运儿 · by 安坤 --Lua编剧|浮球+浮窗 -- ============================================================ 酷开场 酷开场 本地 这是一个功能 在() 本地没有=实例。新("ScreenGui") 姓名= "LuckyIntro" 没有任何的.= 没有 gui.IgnoreGuiInset = 没有 gui.DisplayOrder= 999 gui.Parent = 游戏:GetService("CoreGui") 本地BG=实例。新("框架") bg.尺寸=UDim2.新(1, 0, 1, 0) bg.BackgroundColor3=Color3.fromRGB(0, 0, 0) bg.BackgroundTransparency= 1 bg.家长=GUI 本地标题=实例。新(标签的文字) 标题.大小=UDim2.新(0, 0, 0, 60) 标题.职位=UDim2.新(0.5, 0, 0.4, 0) title.AnchorPoint=矢量2.新(0.5,0.5)=矢量2.新(0.5, 0.5) 标题.背景透明度= 1 title.Text = "幸 运 儿" title.TextColor3=Color3.fromRGB(255, 215, 0) title.Font = 其他字体: title.TextSize = 52 标题.文本透明度= 1 title.父级=BG 本地sub=实例。新(标签的文字) 尺寸=UDim2.新(0, 0, 0, 30) 位置=UDim2.新(0.5, 0, 0.52, 0) sub.AnchorPoint = Vector2.新(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 结束 结束) 结束 结束) ball.InputChanged:Connect(功能(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input 结束 结束) uis.InputChanged:Connect(功能(input) if dragging and input == dragInput then 本地 delta = input.Position - dragStart ball.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) 结束 结束) -- 点击悬浮球开关面板 球.鼠标按钮1单击:连接(功能() 面板.可见= 不面板.可见 结束) closeBtn.MouseButton1Click:连接(功能() 面板.可见= 假的 结束) 结束 现在,我们要把它变成一个新的世界. 介绍() 主要的()
327 lines · 10.9kb
Limit 512kb