-- SERVICES local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer -- GUI local gui = Instance.new("ScreenGui") gui.Name = "SK_CRASH_HUB_GUI" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 420, 0, 520) frame.Position = UDim2.new(0.5, -210, 0.5, -260) frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) frame.BorderSizePixel = 0 frame.Active = true frame.Parent = gui Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 12) -- TITLE BAR local titleBar = Instance.new("Frame") titleBar.Size = UDim2.new(1, 0, 0, 50) titleBar.BackgroundColor3 = Color3.fromRGB(15, 15, 15) titleBar.BorderSizePixel = 0 titleBar.Parent = frame Instance.new("UICorner", titleBar).CornerRadius = UDim.new(0, 12) local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 1, 0) title.BackgroundTransparency = 1 title.Text = "SK CRASH HUB" title.Font = Enum.Font.GothamBold title.TextSize = 22 title.TextColor3 = Color3.fromRGB(255, 255, 255) title.Parent = titleBar -- ===== GUI DRAG (PC + MOBILE) ===== local dragging = false local dragStart local startPos local function beginDrag(input) dragging = true dragStart = input.Position startPos = frame.Position end local function endDrag() dragging = false end titleBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then beginDrag(input) end end) titleBar.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then endDrag() end end) UserInputService.InputChanged:Connect(function(input) if dragging and ( input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch ) then local delta = input.Position - dragStart frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) -- PLAYER LIST local list = Instance.new("ScrollingFrame") list.Position = UDim2.new(0, 10, 0, 60) list.Size = UDim2.new(1, -20, 0, 330) list.CanvasSize = UDim2.new(0, 0, 0, 0) list.ScrollBarImageTransparency = 0.3 list.BackgroundTransparency = 1 list.Parent = frame local layout = Instance.new("UIListLayout") layout.Padding = UDim.new(0, 8) layout.Parent = list local selectedPlayer local crashButton local function createPlayerButton(name) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, 0, 0, 40) btn.Text = name btn.Font = Enum.Font.Gotham btn.TextSize = 16 btn.TextColor3 = Color3.fromRGB(255,255,255) btn.BackgroundColor3 = Color3.fromRGB(45,45,45) btn.BorderSizePixel = 0 btn.Parent = list Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8) btn.MouseButton1Click:Connect(function() selectedPlayer = name crashButton.Visible = true end) end for _, plr in pairs(Players:GetPlayers()) do if plr ~= player then createPlayerButton(plr.Name) end end layout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() list.CanvasSize = UDim2.new(0, 0, 0, layout.AbsoluteContentSize.Y + 10) end) Players.PlayerAdded:Connect(function(plr) if plr ~= player then createPlayerButton(plr.Name) end end) Players.PlayerRemoving:Connect(function(plr) for _, v in pairs(list:GetChildren()) do if v:IsA("TextButton") and v.Text == plr.Name then v:Destroy() end end end) -- CRASH BUTTON crashButton = Instance.new("TextButton") crashButton.Size = UDim2.new(0, 180, 0, 50) crashButton.Position = UDim2.new(0.5, -90, 1, -90) crashButton.Text = "CRASH" crashButton.Font = Enum.Font.GothamBold crashButton.TextSize = 20 crashButton.TextColor3 = Color3.fromRGB(255,255,255) crashButton.BackgroundColor3 = Color3.fromRGB(170,30,30) crashButton.BorderSizePixel = 0 crashButton.Visible = false crashButton.Parent = frame Instance.new("UICorner", crashButton).CornerRadius = UDim.new(0, 10) -- LOADING BAR local loadingBack = Instance.new("Frame") loadingBack.Size = UDim2.new(0, 300, 0, 10) loadingBack.Position = UDim2.new(0.5, -150, 1, -40) loadingBack.BackgroundColor3 = Color3.fromRGB(60,60,60) loadingBack.BorderSizePixel = 0 loadingBack.Visible = false loadingBack.Parent = frame Instance.new("UICorner", loadingBack).CornerRadius = UDim.new(0, 6) local loadingBar = Instance.new("Frame") loadingBar.Size = UDim2.new(0, 0, 1, 0) loadingBar.BackgroundColor3 = Color3.fromRGB(0,170,255) loadingBar.BorderSizePixel = 0 loadingBar.Parent = loadingBack Instance.new("UICorner", loadingBar).CornerRadius = UDim.new(0, 6) -- FLOOR(飛ばない) local function createFloor() local char = player.Character or player.CharacterAdded:Wait() local hrp = char:WaitForChild("HumanoidRootPart") local floor = Instance.new("Part") floor.Size = Vector3.new(60, 1, 60) floor.CFrame = hrp.CFrame * CFrame.new(0, -3, 0) floor.Anchored = false floor.CanCollide = true floor.Transparency = 1 floor.Massless = true floor.Parent = workspace local weld = Instance.new("WeldConstraint") weld.Part0 = floor weld.Part1 = hrp weld.Parent = floor end -- BUTTON ACTION crashButton.MouseButton1Click:Connect(function() crashButton.Visible = false loadingBack.Visible = true loadingBar.Size = UDim2.new(0, 0, 1, 0) local time = math.random(10, 30) / 10 local tween = TweenService:Create( loadingBar, TweenInfo.new(time, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(1, 0, 1, 0)} ) tween:Play() tween.Completed:Connect(function() loadingBack.Visible = false createFloor() end) end)