--// 通知 local NotificationHolder = loadstring(game:HttpGet("https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Module.Lua"))() local Notification = loadstring(game:HttpGet("https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Client.Lua"))() Notification:Notify( {Title="陌染脚本集合", Description="右侧弹窗选人,绝不甩自己"}, {OutlineColor=Color3.fromRGB(80,80,80), Time=5, Type="image"}, {Image="rbxassetid://4483345998", ImageColor=Color3.fromRGB(255,84,84)} ) --// 服务 local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") --// 变量 local LocalPlayer = Players.LocalPlayer local SelectedTarget = nil -- 核心:记录选中的目标 --// 创建主UI local JailbreakGui = Instance.new("ScreenGui", game.CoreGui) JailbreakGui.Name = "陌染完整辅助_修复版" -- 主面板 local Main = Instance.new("Frame", JailbreakGui) Main.Size = UDim2.new(0, 250, 0, 400) Main.Position = UDim2.new(0.02, 0, 0.3, 0) -- 左边主面板 Main.BackgroundColor3 = Color3.fromRGB(35, 39, 42) Main.BorderSizePixel = 0 Main.Active = true Main.Draggable = true -- 标题 local Title = Instance.new("TextLabel", Main) Title.Size = UDim2.new(1, 0, 0, 40) Title.BackgroundColor3 = Color3.fromRGB(44, 47, 51) Title.Text = "陌染甩飞辅助" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.Font = Enum.Font.SourceSansBold Title.TextSize = 18 Title.Position = UDim2.new(0, 0, 0, -40) -- 稍微往上覆盖一点边框 -- 玩家列表悬浮窗 (专门解决被挡住的问题) local PlayerPopup = Instance.new("Frame", JailbreakGui) PlayerPopup.Size = UDim2.new(0, 200, 0, 300) PlayerPopup.Position = UDim2.new(0.75, 0, 0.25, 0) -- 右侧悬浮 PlayerPopup.BackgroundColor3 = Color3.fromRGB(30, 33, 36) PlayerPopup.BorderSizePixel = 0 PlayerPopup.ClipsDescendants = true PlayerPopup.Visible = false -- 默认隐藏,刷新后显示 local PopupTitle = Instance.new("TextLabel", PlayerPopup) PopupTitle.Size = UDim2.new(1, 0, 0, 25) PopupTitle.BackgroundColor3 = Color3.fromRGB(44, 47, 51) PopupTitle.Text = "选择玩家 (点名字选中)" PopupTitle.TextColor3 = Color3.fromRGB(255, 255, 255) PopupTitle.Font = Enum.Font.SourceSans PopupTitle.TextSize = 14 -- 滚动区域 local ScrollingFrame = Instance.new("ScrollingFrame", PlayerPopup) ScrollingFrame.Size = UDim2.new(1, 0, 1, -25) ScrollingFrame.Position = UDim2.new(0, 0, 0, 25) ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0) ScrollingFrame.BackgroundTransparency = 1 ScrollingFrame.ScrollBarThickness = 5 -- 刷新按钮 local RefreshBtn = Instance.new("TextButton", Main) RefreshBtn.Size = UDim2.new(1, -10, 0, 30) RefreshBtn.Position = UDim2.new(0, 5, 0, 50) RefreshBtn.BackgroundColor3 = Color3.fromRGB(58, 63, 68) RefreshBtn.Text = "刷新玩家列表" RefreshBtn.TextColor3 = Color3.fromRGB(255, 255, 255) RefreshBtn.Font = Enum.Font.SourceSans RefreshBtn.TextSize = 14 -- 甩飞按钮 local ThrowBtn = Instance.new("TextButton", Main) ThrowBtn.Size = UDim2.new(1, -10, 0, 50) ThrowBtn.Position = UDim2.new(0, 5, 0, 90) ThrowBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50) -- 红色 ThrowBtn.Text = "甩飞一次 (未选人)" ThrowBtn.TextColor3 = Color3.fromRGB(255, 255, 255) ThrowBtn.Font = Enum.Font.SourceSansBold ThrowBtn.TextSize = 16 -- 循环甩飞开关 local LoopEnabled = false local LoopBtn = Instance.new("TextButton", Main) LoopBtn.Size = UDim2.new(1, -10, 0, 30) LoopBtn.Position = UDim2.new(0, 5, 0, 150) LoopBtn.BackgroundColor3 = Color3.fromRGB(58, 63, 68) LoopBtn.Text = "循环甩飞: 关闭" LoopBtn.TextColor3 = Color3.fromRGB(255, 255, 255) LoopBtn.Font = Enum.Font.SourceSans LoopBtn.TextSize = 14 -- 核心逻辑:刷新玩家 local function RefreshPlayers() ScrollingFrame:ClearAllChildren() local yOffset = 0 for _, player in pairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("Humanoid") then local nameBtn = Instance.new("TextButton", ScrollingFrame) nameBtn.Size = UDim2.new(1, -10, 0, 30) nameBtn.Position = UDim2.new(0, 5, 0, yOffset) nameBtn.BackgroundColor3 = Color3.fromRGB(40, 44, 48) nameBtn.Text = player.Name nameBtn.TextColor3 = Color3.fromRGB(200, 200, 200) nameBtn.Font = Enum.Font.SourceSans nameBtn.TextSize = 14 -- 选中逻辑 nameBtn.MouseButton1Click:Connect(function() SelectedTarget = player ThrowBtn.Text = "甩飞: " .. player.Name PlayerPopup.Visible = false -- 选中后关闭弹窗 -- 高亮选中项 for _, child in pairs(ScrollingFrame:GetChildren()) do if child:IsA("TextButton") then child.BackgroundColor3 = Color3.fromRGB(40, 44, 48) end end nameBtn.BackgroundColor3 = Color3.fromRGB(80, 150, 220) end) yOffset = yOffset + 35 end end ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, yOffset) PlayerPopup.Visible = true -- 刷新完显示弹窗 end RefreshBtn.MouseButton1Click:Connect(RefreshPlayers) -- 核心逻辑:甩飞函数 (必须用你原来的逻辑,这里模拟强力甩飞) local function ThrowPlayer(target) if not target or not target.Character or not target.Character:FindFirstChild("HumanoidRootPart") then return end local char = target.Character local hrp = char.HumanoidRootPart -- 这里的CFrame和Vector3根据你原来的脚本调整,确保能甩飞 -- 模拟一个极端的甩飞力 local force = Instance.new("BodyVelocity") force.Velocity = Vector3.new(math.random(-500, 500), math.random(300, 600), math.random(-500, 500)) force.MaxForce = Vector3.new(999999, 999999, 999999) force.P = 10000 force.Parent = hrp game.Debris:AddItem(force, 0.5) -- 0.5秒后消失 -- 同时给个推力,防止卡住 wait(0.1) hrp.Velocity = Vector3.new(0, 500, 0) end -- 点击甩飞 ThrowBtn.MouseButton1Click:Connect(function() if SelectedTarget then ThrowPlayer(SelectedTarget) else game.StarterGui:SetCore("SendNotification", { Title = "提示"; Text = "请先在右侧列表中选择一个玩家!"; Duration = 2; }) end end) -- 循环甩飞 LoopBtn.MouseButton1Click:Connect(function() LoopEnabled = not LoopEnabled if LoopEnabled then LoopBtn.Text = "循环甩飞: 开启" LoopBtn.BackgroundColor3 = Color3.fromRGB(50, 200, 50) else LoopBtn.Text = "循环甩飞: 关闭" LoopBtn.BackgroundColor3 = Color3.fromRGB(58, 63, 68) end end) -- 循环逻辑 RunService.Heartbeat:Connect(function() if LoopEnabled and SelectedTarget then ThrowPlayer(SelectedTarget) end end) -- 初始化显示一次 RefreshPlayers()