--// Services local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local player = Players.LocalPlayer local roomsFolder = Workspace:WaitForChild("CurrentRooms") --// Limits local DEFAULT_SPEED = 16 local DEFAULT_JUMP = 50 local MAX_SPEED = 300 local speedValue = DEFAULT_SPEED local jumpValue = DEFAULT_JUMP --// Humanoid Lock local humanoid local speedConn local jumpConn local function lockStats() local char = player.Character or player.CharacterAdded:Wait() humanoid = char:WaitForChild("Humanoid") if speedConn then speedConn:Disconnect() end if jumpConn then jumpConn:Disconnect() end humanoid.WalkSpeed = speedValue humanoid.JumpPower = jumpValue speedConn = humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function() if humanoid.WalkSpeed ~= speedValue then humanoid.WalkSpeed = speedValue end end) jumpConn = humanoid:GetPropertyChangedSignal("JumpPower"):Connect(function() if humanoid.JumpPower ~= jumpValue then humanoid.JumpPower = jumpValue end end) end player.CharacterAdded:Connect(function() task.wait(0.1) lockStats() end) --// GUI local gui = Instance.new("ScreenGui") gui.Name = "HenexHubGui" gui.ResetOnSpawn = false gui.Parent = player.PlayerGui -- Toggle Button (دائم الظهور) local toggle = Instance.new("TextButton") toggle.Parent = gui toggle.Size = UDim2.fromOffset(50,50) toggle.Position = UDim2.fromScale(0.02,0.85) toggle.Text = "ON" toggle.TextScaled = true toggle.BackgroundColor3 = Color3.fromRGB(0,200,100) toggle.TextColor3 = Color3.new(1,1,1) Instance.new("UICorner", toggle).CornerRadius = UDim.new(1,0) -- Main Frame local frame = Instance.new("Frame") frame.Parent = gui frame.Size = UDim2.fromScale(0.34,0.58) frame.Position = UDim2.fromScale(0.33,0.22) frame.BackgroundColor3 = Color3.fromRGB(25,25,25) frame.Active = true Instance.new("UICorner", frame).CornerRadius = UDim.new(0,6) -- Title local title = Instance.new("TextLabel", frame) title.Size = UDim2.fromScale(1,0.08) title.BackgroundTransparency = 1 title.Text = "HenexHub" title.TextScaled = true title.Font = Enum.Font.GothamBlack title.TextColor3 = Color3.new(1,1,1) -- Close Button local close = Instance.new("TextButton", frame) close.Size = UDim2.fromOffset(35,35) close.Position = UDim2.fromScale(0.88,0) close.Text = "X" close.TextScaled = true close.BackgroundColor3 = Color3.fromRGB(255,60,60) close.TextColor3 = Color3.new(1,1,1) Instance.new("UICorner", close) -- Close = يخفي الفريم فقط close.MouseButton1Click:Connect(function() frame.Visible = false toggle.Text = "OFF" toggle.BackgroundColor3 = Color3.fromRGB(200,50,50) end) -- Toggle Logic local frameVisible = true toggle.MouseButton1Click:Connect(function() frameVisible = not frameVisible frame.Visible = frameVisible if frameVisible then toggle.Text = "ON" toggle.BackgroundColor3 = Color3.fromRGB(0,200,100) else toggle.Text = "OFF" toggle.BackgroundColor3 = Color3.fromRGB(200,50,50) end end) -- Room Label (قبل أحدث موديل) local roomLabel = Instance.new("TextLabel", frame) roomLabel.Size = UDim2.fromScale(1,0.07) roomLabel.Position = UDim2.fromScale(0,0.08) roomLabel.BackgroundTransparency = 1 roomLabel.TextScaled = true roomLabel.Font = Enum.Font.GothamBold roomLabel.TextColor3 = Color3.new(1,1,1) local function updateRoomLabel() local models = {} for _, m in ipairs(roomsFolder:GetChildren()) do if m:IsA("Model") then table.insert(models, m) end end if #models < 2 then roomLabel.Text = "Current Room: Nothing" else roomLabel.Text = "Current Room: " .. models[#models-1].Name end end roomsFolder.ChildAdded:Connect(updateRoomLabel) updateRoomLabel() -- Drag Frame local dragging, dragStart, startPos frame.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = i.Position startPos = frame.Position end end) frame.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging = false end end) UIS.InputChanged:Connect(function(i) if dragging and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then local delta = i.Position - dragStart frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) -- Speed Box local speedBox = Instance.new("TextBox", frame) speedBox.Size = UDim2.fromScale(0.8,0.07) speedBox.Position = UDim2.fromScale(0.1,0.25) speedBox.Text = tostring(speedValue) speedBox.TextScaled = true speedBox.BackgroundColor3 = Color3.fromRGB(45,45,45) speedBox.TextColor3 = Color3.new(1,1,1) Instance.new("UICorner", speedBox) speedBox.FocusLost:Connect(function() local v = tonumber(speedBox.Text) if v then speedValue = math.clamp(v,1,MAX_SPEED) lockStats() end end) -- Jump Box local jumpBox = Instance.new("TextBox", frame) jumpBox.Size = UDim2.fromScale(0.8,0.07) jumpBox.Position = UDim2.fromScale(0.1,0.38) jumpBox.Text = tostring(jumpValue) jumpBox.TextScaled = true jumpBox.BackgroundColor3 = Color3.fromRGB(45,45,45) jumpBox.TextColor3 = Color3.new(1,1,1) Instance.new("UICorner", jumpBox) jumpBox.FocusLost:Connect(function() local v = tonumber(jumpBox.Text) if v then jumpValue = math.clamp(v,1,250) lockStats() end end) -- Drag Toggle Button local dragT, dragStartT, startPosT toggle.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragT = true dragStartT = i.Position startPosT = toggle.Position end end) toggle.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragT = false end end) UIS.InputChanged:Connect(function(i) if dragT and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then local delta = i.Position - dragStartT toggle.Position = UDim2.new( startPosT.X.Scale, startPosT.X.Offset + delta.X, startPosT.Y.Scale, startPosT.Y.Offset + delta.Y ) end end) -- Init lockStats()