local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui")) gui.Name = "sk Hub" gui.ResetOnSpawn = false local hrp, humanoid local function setupChar(c) hrp = c:WaitForChild("HumanoidRootPart") humanoid = c:WaitForChild("Humanoid") humanoid.MaxHealth = math.huge humanoid.Health = math.huge humanoid.HealthChanged:Connect(function() if not _G.VFly then humanoid.Health = humanoid.MaxHealth end end) end setupChar(player.Character or player.CharacterAdded:Wait()) player.CharacterAdded:Connect(setupChar) humanoid.Health = math.huge humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false) _G.SavePoint = nil _G.Waypoints = {} _G.VFly = false local autoMoving = false local moveSpeed = 120 local minSpeed, maxSpeed, speedStep = 40, 300, 20 local posStore = { main = UDim2.new(0.78,0,0.15,0), mini = UDim2.new(0.65,0,0.15,0), auto = UDim2.new(0.65,0,0.25,0), } local function makeDraggable(frame, key) local dragging, dragStart, startPos frame.Active = true frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position end end) frame.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false if key then posStore[key] = frame.Position end 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) end local function moveTo(pos) local dist = (hrp.Position - pos).Magnitude local time = dist / moveSpeed local tween = TweenService:Create(hrp,TweenInfo.new(time,Enum.EasingStyle.Linear),{CFrame = CFrame.new(pos)}) tween:Play() tween.Completed:Wait() end local function startAuto() if autoMoving or not _G.SavePoint then return end autoMoving = true task.spawn(function() for _, wp in ipairs(_G.Waypoints) do if not autoMoving then return end moveTo(wp) end if autoMoving then moveTo(_G.SavePoint) end autoMoving = false end) end local mainFrame = Instance.new("Frame", gui) mainFrame.Size = UDim2.new(0,220,0,400) mainFrame.Position = posStore.main mainFrame.BackgroundColor3 = Color3.fromRGB(30,30,30) mainFrame.BorderSizePixel = 0 Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0,10) makeDraggable(mainFrame, "main") local title = Instance.new("TextLabel", mainFrame) title.Size = UDim2.new(1,0,0,40) title.BackgroundTransparency = 1 title.Text = "TOTO HUB" title.TextColor3 = Color3.new(1,1,1) title.Font = Enum.Font.GothamBlack title.TextSize = 20 local miniBtn = Instance.new("TextButton", gui) miniBtn.Size = UDim2.new(0,50,0,50) miniBtn.Position = posStore.mini miniBtn.Text = "TOTO" miniBtn.Font = Enum.Font.GothamBlack miniBtn.TextSize = 16 miniBtn.TextColor3 = Color3.new(1,1,1) miniBtn.BackgroundColor3 = Color3.fromRGB(80,80,80) Instance.new("UICorner", miniBtn).CornerRadius = UDim.new(1,0) makeDraggable(miniBtn, "mini") local minimized = false miniBtn.MouseButton1Click:Connect(function() minimized = not minimized mainFrame.Visible = not minimized end) local autoBtn = Instance.new("TextButton", gui) autoBtn.Size = UDim2.new(0,70,0,40) autoBtn.Position = posStore.auto autoBtn.Text = "AUTO" autoBtn.Font = Enum.Font.GothamBlack autoBtn.TextSize = 14 autoBtn.TextColor3 = Color3.new(1,1,1) autoBtn.BackgroundColor3 = Color3.fromRGB(255,170,60) Instance.new("UICorner", autoBtn).CornerRadius = UDim.new(1,0) makeDraggable(autoBtn, "auto") autoBtn.MouseButton1Click:Connect(startAuto) local function makeButton(text, y, color) local b = Instance.new("TextButton", mainFrame) b.Size = UDim2.new(1,-20,0,32) b.Position = UDim2.new(0,10,0,y) b.Text = text b.BackgroundColor3 = color b.TextColor3 = Color3.new(1,1,1) b.Font = Enum.Font.GothamBold b.TextSize = 14 Instance.new("UICorner", b).CornerRadius = UDim.new(0,6) return b end makeButton("セーブポイント保存",50,Color3.fromRGB(80,120,255)).MouseButton1Click:Connect(function() _G.SavePoint = hrp.Position end) makeButton("経由地点追加",90,Color3.fromRGB(80,180,120)).MouseButton1Click:Connect(function() table.insert(_G.Waypoints, hrp.Position) end) makeButton("経由地点リセット",130,Color3.fromRGB(200,70,70)).MouseButton1Click:Connect(function() table.clear(_G.Waypoints) end) local speedLabel = Instance.new("TextLabel", mainFrame) speedLabel.Size = UDim2.new(1,-20,0,22) speedLabel.Position = UDim2.new(0,10,0,180) speedLabel.BackgroundTransparency = 1 speedLabel.TextColor3 = Color3.new(1,1,1) speedLabel.Font = Enum.Font.GothamBold speedLabel.TextSize = 14 speedLabel.Text = "速度 : "..moveSpeed makeButton("- 速度ダウン",210,Color3.fromRGB(90,90,90)).MouseButton1Click:Connect(function() moveSpeed = math.max(minSpeed, moveSpeed - speedStep) speedLabel.Text = "速度 : "..moveSpeed end) makeButton("+ 速度アップ",245,Color3.fromRGB(120,120,120)).MouseButton1Click:Connect(function() moveSpeed = math.min(maxSpeed, moveSpeed + speedStep) speedLabel.Text = "速度 : "..moveSpeed end) local vflyBtn = makeButton("VFly : OFF",290,Color3.fromRGB(160,90,255)) local ground = Instance.new("Part") ground.Size = Vector3.new(10,1,10) ground.Anchored = true ground.Transparency = 1 ground.CanCollide = true ground.Parent = workspace UserInputService.JumpRequest:Connect(function() if _G.VFly and humanoid then humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end end) RunService.RenderStepped:Connect(function() if _G.VFly and hrp and humanoid then humanoid:SetAttribute("Dead", false) humanoid.Health = 0 ground.CFrame = CFrame.new(hrp.Position - Vector3.new(0,3,0)) end end) vflyBtn.MouseButton1Click:Connect(function() _G.VFly = not _G.VFly vflyBtn.Text = _G.VFly and "VFly : ON" or "VFly : OFF" end)