--================================================== -- PURPLE CYBER HUB | DELTA LOCAL BUILD -- Local visual utilities and training sandbox --================================================== local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local Lighting = game:GetService("Lighting") local Debris = game:GetService("Debris") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local camera = workspace.CurrentCamera --================================================== -- CONFIG --================================================== local CREATOR_USER_ID = 7610220552 local PURPLE = Color3.fromRGB(145, 50, 255) local DARK = Color3.fromRGB(17, 10, 30) local LIGHT = Color3.fromRGB(220, 190, 255) local WHITE = Color3.fromRGB(255, 255, 255) local GREEN = Color3.fromRGB(100, 255, 150) local GOLD = Color3.fromRGB(255, 210, 50) local role = player.UserId == CREATOR_USER_ID and "CREATOR 👑" or "USER 💪" local defaultFOV = camera.FieldOfView --================================================== -- CLEANUP --================================================== for _, name in ipairs({ "PurpleCyberHub", "PurpleLoading" }) do local old = playerGui:FindFirstChild(name) if old then old:Destroy() end end --================================================== -- LOADING --================================================== local loadingGui = Instance.new("ScreenGui") loadingGui.Name = "PurpleLoading" loadingGui.IgnoreGuiInset = true loadingGui.ResetOnSpawn = false loadingGui.Parent = playerGui local black = Instance.new("Frame") black.Size = UDim2.fromScale(1, 1) black.BackgroundColor3 = Color3.new(0, 0, 0) black.BorderSizePixel = 0 black.Parent = loadingGui local loadingTitle = Instance.new("TextLabel") loadingTitle.Size = UDim2.fromScale(1, 0.12) loadingTitle.Position = UDim2.fromScale(0, 0.40) loadingTitle.BackgroundTransparency = 1 loadingTitle.Text = "PURPLE CYBER HUB" loadingTitle.TextColor3 = PURPLE loadingTitle.TextScaled = true loadingTitle.Font = Enum.Font.GothamBlack loadingTitle.Parent = black local loadingText = Instance.new("TextLabel") loadingText.Size = UDim2.fromScale(1, 0.07) loadingText.Position = UDim2.fromScale(0, 0.53) loadingText.BackgroundTransparency = 1 loadingText.Text = "LOADING..." loadingText.TextColor3 = WHITE loadingText.TextScaled = true loadingText.Font = Enum.Font.GothamBold loadingText.Parent = black task.wait(2) TweenService:Create( black, TweenInfo.new(0.5), {BackgroundTransparency = 1} ):Play() TweenService:Create( loadingTitle, TweenInfo.new(0.5), {TextTransparency = 1} ):Play() TweenService:Create( loadingText, TweenInfo.new(0.5), {TextTransparency = 1} ):Play() task.wait(0.6) loadingGui:Destroy() --================================================== -- MAIN GUI --================================================== local gui = Instance.new("ScreenGui") gui.Name = "PurpleCyberHub" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.Parent = playerGui local main = Instance.new("Frame") main.Size = UDim2.fromOffset(340, 440) main.Position = UDim2.new(0.5, -170, 0.5, -220) main.BackgroundColor3 = DARK main.BorderSizePixel = 0 main.Active = true main.Draggable = true main.Parent = gui local mainCorner = Instance.new("UICorner") mainCorner.CornerRadius = UDim.new(0, 14) mainCorner.Parent = main local mainStroke = Instance.new("UIStroke") mainStroke.Color = PURPLE mainStroke.Thickness = 2 mainStroke.Parent = main local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -20, 0, 42) title.Position = UDim2.fromOffset(10, 5) title.BackgroundTransparency = 1 title.Text = "PURPLE CYBER HUB" title.TextColor3 = LIGHT title.TextSize = 21 title.Font = Enum.Font.GothamBlack title.Parent = main local subtitle = Instance.new("TextLabel") subtitle.Size = UDim2.new(1, -20, 0, 24) subtitle.Position = UDim2.fromOffset(10, 45) subtitle.BackgroundTransparency = 1 subtitle.Text = "LOCAL TEST BUILD" subtitle.TextColor3 = LIGHT subtitle.TextSize = 12 subtitle.Font = Enum.Font.GothamBold subtitle.Parent = main local tabs = Instance.new("Frame") tabs.Size = UDim2.new(1, -12, 0, 35) tabs.Position = UDim2.fromOffset(6, 76) tabs.BackgroundTransparency = 1 tabs.Parent = main local tabLayout = Instance.new("UIListLayout") tabLayout.FillDirection = Enum.FillDirection.Horizontal tabLayout.Padding = UDim.new(0, 4) tabLayout.Parent = tabs local content = Instance.new("ScrollingFrame") content.Size = UDim2.new(1, -16, 1, -120) content.Position = UDim2.fromOffset(8, 116) content.BackgroundColor3 = Color3.fromRGB(25, 16, 40) content.BorderSizePixel = 0 content.ScrollBarThickness = 5 content.AutomaticCanvasSize = Enum.AutomaticSize.Y content.CanvasSize = UDim2.new() content.Parent = main local contentLayout = Instance.new("UIListLayout") contentLayout.Padding = UDim.new(0, 6) contentLayout.Parent = content local contentPadding = Instance.new("UIPadding") contentPadding.PaddingTop = UDim.new(0, 7) contentPadding.PaddingLeft = UDim.new(0, 7) contentPadding.PaddingRight = UDim.new(0, 7) contentPadding.Parent = content --================================================== -- UI HELPERS --================================================== local function clearContent() for _, obj in ipairs(content:GetChildren()) do if obj:IsA("GuiObject") and obj ~= contentLayout and obj ~= contentPadding then obj:Destroy() end end end local function makeButton(text, callback) local button = Instance.new("TextButton") button.Size = UDim2.new(1, -4, 0, 35) button.BackgroundColor3 = Color3.fromRGB(55, 25, 85) button.TextColor3 = WHITE button.TextSize = 14 button.Font = Enum.Font.GothamBold button.Text = text button.BorderSizePixel = 0 button.Parent = content local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 8) c.Parent = button button.Activated:Connect(function() local ok, err = pcall(callback) if not ok then warn("[Purple Cyber Hub] " .. tostring(err)) end end) return button end local function makeInput(placeholder, defaultValue) local box = Instance.new("TextBox") box.Size = UDim2.new(1, -4, 0, 35) box.BackgroundColor3 = Color3.fromRGB(40, 25, 60) box.TextColor3 = WHITE box.PlaceholderColor3 = LIGHT box.PlaceholderText = placeholder box.Text = tostring(defaultValue or "") box.TextSize = 14 box.Font = Enum.Font.Gotham box.ClearTextOnFocus = false box.Parent = content return box end local function makeTab(name, callback) local button = Instance.new("TextButton") button.Size = UDim2.new(0, 78, 1, 0) button.BackgroundColor3 = Color3.fromRGB(55, 25, 85) button.TextColor3 = WHITE button.TextSize = 12 button.Font = Enum.Font.GothamBold button.Text = name button.BorderSizePixel = 0 button.Parent = tabs button.Activated:Connect(callback) end --================================================== -- CHARACTER HELPERS --================================================== local function getCharacter() return player.Character end local function getHumanoid() local char = getCharacter() return char and char:FindFirstChildOfClass("Humanoid") end local function getRoot() local char = getCharacter() return char and char:FindFirstChild("HumanoidRootPart") end --================================================== -- ROLE TAG ABOVE OWN HEAD --================================================== local roleGui local function updateRoleTag(character) if roleGui then roleGui:Destroy() roleGui = nil end local head = character:WaitForChild("Head", 8) if not head then return end roleGui = Instance.new("BillboardGui") roleGui.Name = "PurpleRoleTag" roleGui.Size = UDim2.fromOffset(180, 38) roleGui.StudsOffset = Vector3.new(0, 2.8, 0) roleGui.AlwaysOnTop = true roleGui.Adornee = head roleGui.Parent = head local label = Instance.new("TextLabel") label.Size = UDim2.fromScale(1, 1) label.BackgroundTransparency = 1 label.Text = role label.TextColor3 = role == "CREATOR 👑" and GOLD or GREEN label.TextStrokeTransparency = 0.2 label.TextScaled = true label.Font = Enum.Font.GothamBlack label.Parent = roleGui end if player.Character then task.spawn(updateRoleTag, player.Character) end player.CharacterAdded:Connect(function(character) task.wait(0.5) updateRoleTag(character) end) --================================================== -- MOVEMENT SETTINGS --================================================== local flyEnabled = false local flySpeed = 55 local walkSpeed = 16 local jumpPower = 50 local noclipEnabled = false local infiniteJumpEnabled = false local shiftLockEnabled = false local fakeAnchorEnabled = false local oldCollisions = {} local oldAutoRotate = true local oldLighting = nil --================================================== -- FLY JOYSTICK --================================================== local flyVelocity local flyGyro local stickVector = Vector2.zero local verticalDirection = 0 local activeTouch local mouseHeld = false local flyPad = Instance.new("Frame") flyPad.Size = UDim2.fromOffset(145, 145) flyPad.Position = UDim2.new(1, -165, 1, -180) flyPad.BackgroundColor3 = Color3.fromRGB(35, 20, 55) flyPad.BackgroundTransparency = 0.12 flyPad.Visible = false flyPad.Parent = gui local padCorner = Instance.new("UICorner") padCorner.CornerRadius = UDim.new(1, 0) padCorner.Parent = flyPad local padStroke = Instance.new("UIStroke") padStroke.Color = PURPLE padStroke.Thickness = 2 padStroke.Parent = flyPad local knob = Instance.new("Frame") knob.Size = UDim2.fromOffset(52, 52) knob.AnchorPoint = Vector2.new(0.5, 0.5) knob.Position = UDim2.fromScale(0.5, 0.5) knob.BackgroundColor3 = PURPLE knob.Parent = flyPad local knobCorner = Instance.new("UICorner") knobCorner.CornerRadius = UDim.new(1, 0) knobCorner.Parent = knob local function resetStick() stickVector = Vector2.zero activeTouch = nil mouseHeld = false knob.Position = UDim2.fromScale(0.5, 0.5) end local function updateStick(inputPosition) local center = flyPad.AbsolutePosition + flyPad.AbsoluteSize / 2 local delta = Vector2.new(inputPosition.X, inputPosition.Y) - center local radius = 45 if delta.Magnitude > radius then delta = delta.Unit * radius end stickVector = Vector2.new(delta.X / radius, delta.Y / radius) knob.Position = UDim2.new( 0.5, delta.X, 0.5, delta.Y ) end flyPad.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch then activeTouch = input updateStick(input.Position) elseif input.UserInputType == Enum.UserInputType.MouseButton1 then mouseHeld = true updateStick(UIS:GetMouseLocation()) end end) UIS.InputChanged:Connect(function(input) if input == activeTouch then updateStick(input.Position) elseif mouseHeld and input.UserInputType == Enum.UserInputType.MouseMovement then updateStick(UIS:GetMouseLocation()) end end) UIS.InputEnded:Connect(function(input) if input == activeTouch or input.UserInputType == Enum.UserInputType.MouseButton1 then resetStick() end end) local function makeHoldButton(text, position, direction) local button = Instance.new("TextButton") button.Size = UDim2.fromOffset(48, 36) button.Position = position button.Text = text button.TextColor3 = WHITE button.TextSize = 13 button.Font = Enum.Font.GothamBold button.BackgroundColor3 = PURPLE button.Visible = false button.Parent = gui local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 8) c.Parent = button local held = {} button.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then held[input] = true verticalDirection = direction end end) UIS.InputEnded:Connect(function(input) if held[input] then held[input] = nil verticalDirection = 0 end end) return button end local upButton = makeHoldButton( "UP", UDim2.new(1, -165, 1, -225), 1 ) local downButton = makeHoldButton( "DOWN", UDim2.new(1, -110, 1, -225), -1 ) local function stopFly() flyEnabled = false flyPad.Visible = false upButton.Visible = false downButton.Visible = false resetStick() verticalDirection = 0 if flyVelocity then flyVelocity:Destroy() flyVelocity = nil end if flyGyro then flyGyro:Destroy() flyGyro = nil end end local function startFly() local root = getRoot() if not root then warn("Fly: character root not found") return false end if flyVelocity then flyVelocity:Destroy() end if flyGyro then flyGyro:Destroy() end flyVelocity = Instance.new("BodyVelocity") flyVelocity.MaxForce = Vector3.new(1e6, 1e6, 1e6) flyVelocity.Velocity = Vector3.zero flyVelocity.Parent = root flyGyro = Instance.new("BodyGyro") flyGyro.MaxTorque = Vector3.new(1e6, 1e6, 1e6) flyGyro.P = 9000 flyGyro.Parent = root flyEnabled = true flyPad.Visible = true upButton.Visible = true downButton.Visible = true return true end --================================================== -- FOV --================================================== local function setFOV(value) camera = workspace.CurrentCamera if not camera then return end camera.FieldOfView = math.clamp(value, 40, 150) end --================================================== -- NOCLIP --================================================== local function restoreNoclip() for part, oldValue in pairs(oldCollisions) do if part and part.Parent then part.CanCollide = oldValue end end table.clear(oldCollisions) end local function setNoclip(state) noclipEnabled = state if not state then restoreNoclip() end end --================================================== -- INFINITE JUMP --================================================== UIS.JumpRequest:Connect(function() if infiniteJumpEnabled then local hum = getHumanoid() if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end end end) --================================================== -- LOCAL TRAINING NPC --================================================== local npcFolder = workspace:FindFirstChild("LocalCyberNPCs") if not npcFolder then npcFolder = Instance.new("Folder") npcFolder.Name = "LocalCyberNPCs" npcFolder.Parent = workspace end local function createNPC(position) local model = Instance.new("Model") model.Name = "CyberTrainingNPC" model.Parent = npcFolder local function makePart(name, size, offset, color) local part = Instance.new("Part") part.Name = name part.Size = size part.Position = position + offset part.Anchored = true part.CanCollide = true part.Material = Enum.Material.Neon part.Color = color or PURPLE part.Parent = model return part end local torso = makePart( "Torso", Vector3.new(2, 2, 1), Vector3.new(0, 3, 0) ) local head = makePart( "Head", Vector3.new(1.5, 1.5, 1.5), Vector3.new(0, 4.75, 0), LIGHT ) local leftArm = makePart( "LeftArm", Vector3.new(1, 2, 1), Vector3.new(-1.5, 3, 0) ) local rightArm = makePart( "RightArm", Vector3.new(1, 2, 1), Vector3.new(1.5, 3, 0) ) local leftLeg = makePart( "LeftLeg", Vector3.new(1, 2, 1), Vector3.new(-0.5, 1, 0) ) local rightLeg = makePart( "RightLeg", Vector3.new(1, 2, 1), Vector3.new(0.5, 1, 0) ) model.PrimaryPart = torso local hum = Instance.new("Humanoid") hum.MaxHealth = 100 hum.Health = 100 hum.Parent = model local healthGui = Instance.new("BillboardGui") healthGui.Size = UDim2.fromOffset(130, 28) healthGui.StudsOffset = Vector3.new(0, 6, 0) healthGui.AlwaysOnTop = true healthGui.Parent = head local healthText = Instance.new("TextLabel") healthText.Size = UDim2.fromScale(1, 1) healthText.BackgroundTransparency = 1 healthText.TextColor3 = GREEN healthText.TextStrokeTransparency = 0 healthText.TextScaled = true healthText.Font = Enum.Font.GothamBold healthText.Text = "HP: 100" healthText.Parent = healthGui hum.HealthChanged:Connect(function(hp) healthText.Text = "HP: " .. math.floor(hp) end) local skeleton = Instance.new("Folder") skeleton.Name = "NPCVisuals" skeleton.Parent = model local pairsList = { {head, torso}, {torso, leftArm}, {torso, rightArm}, {torso, leftLeg}, {torso, rightLeg} } for _, pair in ipairs(pairsList) do local a = Instance.new("Attachment") a.Parent = pair[1] local b = Instance.new("Attachment") b.Parent = pair[2] local beam = Instance.new("Beam") beam.Attachment0 = a beam.Attachment1 = b beam.Width0 = 0.07 beam.Width1 = 0.07 beam.Color = ColorSequence.new(LIGHT) beam.Parent = skeleton end hum.Died:Connect(function() for _, part in ipairs(model:GetDescendants()) do if part:IsA("BasePart") then part.Anchored = false part.CanCollide = true part.Color = PURPLE part.AssemblyLinearVelocity = Vector3.new( math.random(-25, 25), math.random(15, 40), math.random(-25, 25) ) Debris:AddItem(part, 4) end end Debris:AddItem(model, 4) end) return model end local function clearNPCs() for _, npc in ipairs(npcFolder:GetChildren()) do npc:Destroy() end end --================================================== -- FPS BOOST --================================================== local fpsBoostEnabled = false local oldLighting local function setFPSBoost(state) if fpsBoostEnabled == state then return end fpsBoostEnabled = state if state then oldLighting = { GlobalShadows = Lighting.GlobalShadows, FogEnd = Lighting.FogEnd, Brightness = Lighting.Brightness } Lighting.GlobalShadows = false Lighting.FogEnd = 100000 Lighting.Brightness = 2 elseif oldLighting then Lighting.GlobalShadows = oldLighting.GlobalShadows Lighting.FogEnd = oldLighting.FogEnd Lighting.Brightness = oldLighting.Brightness oldLighting = nil end end --================================================== -- SHIFT LOCK --================================================== local function setShiftLock(state) shiftLockEnabled = state local hum = getHumanoid() if hum then if state then oldAutoRotate = hum.AutoRotate hum.AutoRotate = false else hum.AutoRotate = oldAutoRotate end end UIS.MouseBehavior = state and Enum.MouseBehavior.LockCenter or Enum.MouseBehavior.Default end --================================================== -- WALK / JUMP SETTINGS --================================================== local function setWalkSpeed(value) walkSpeed = math.clamp(value, 0, 200) local hum = getHumanoid() if hum then hum.WalkSpeed = walkSpeed end end local function setJumpPower(value) jumpPower = math.clamp(value, 0, 200) local hum = getHumanoid() if hum then hum.UseJumpPower = true hum.JumpPower = jumpPower end end --================================================== -- MAIN UPDATE LOOP --================================================== local renderConnection renderConnection = RunService.RenderStepped:Connect(function() camera = workspace.CurrentCamera local root = getRoot() local character = getCharacter() if noclipEnabled and character then for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") then if oldCollisions[part] == nil then oldCollisions[part] = part.CanCollide end part.CanCollide = false end end end if flyEnabled and root and flyVelocity and flyGyro then local camCF = camera.CFrame local direction = camCF.RightVector * stickVector.X + camCF.LookVector * (-stickVector.Y) + Vector3.new(0, verticalDirection, 0) if direction.Magnitude > 1 then direction = direction.Unit end flyVelocity.Velocity = direction * flySpeed flyGyro.CFrame = CFrame.lookAt( root.Position, root.Position + camCF.LookVector ) end end) --================================================== -- RESPAWN --================================================== player.CharacterAdded:Connect(function(character) restoreNoclip() task.wait(1) local hum = character:FindFirstChildOfClass("Humanoid") if hum then hum.WalkSpeed = walkSpeed hum.UseJumpPower = true hum.JumpPower = jumpPower if shiftLockEnabled then oldAutoRotate = hum.AutoRotate hum.AutoRotate = false end end if flyEnabled then startFly() end end) --================================================== -- MOVE TAB --================================================== local function movementTab() clearContent() makeButton("Fly: ON / OFF", function() if flyEnabled then stopFly() else startFly() end end) local speedInput = makeInput("Fly Speed (1-300)", flySpeed) makeButton("Set Fly Speed", function() local n = tonumber(speedInput.Text) if n then flySpeed = math.clamp(n, 1, 300) end end) makeButton("Reset Fly Speed", function() flySpeed = 55 speedInput.Text = "55" end) makeButton("Noclip: ON / OFF", function() setNoclip(not noclipEnabled) end) makeButton("Infinite Jump: ON / OFF", function() infiniteJumpEnabled = not infiniteJumpEnabled end) local wsInput = makeInput("WalkSpeed", walkSpeed) makeButton("Set WalkSpeed", function() local n = tonumber(wsInput.Text) if n then setWalkSpeed(n) end end) makeButton("Reset WalkSpeed", function() wsInput.Text = "16" setWalkSpeed(16) end) local jpInput = makeInput("Jump Power", jumpPower) makeButton("Set Jump Power", function() local n = tonumber(jpInput.Text) if n then setJumpPower(n) end end) makeButton("Reset Jump Power", function() jpInput.Text = "50" setJumpPower(50) end) makeButton("Shift Lock: ON / OFF", function() setShiftLock(not shiftLockEnabled) end) end --================================================== -- NPC TAB --================================================== local function npcTab() clearContent() makeButton("Spawn NPC", function() local root = getRoot() if root then createNPC(root.Position + root.CFrame.LookVector * 12) end end) local countInput = makeInput("NPC Quantity (1-20)", "5") makeButton("Spawn Multiple NPCs", function() local root = getRoot() if not root then return end local count = math.clamp( tonumber(countInput.Text) or 5, 1, 20 ) for i = 1, count do local offset = Vector3.new( math.random(-15, 15), 0, math.random(-25, 25) ) createNPC(root.Position + offset) end end) makeButton("Clear NPCs", clearNPCs) end --================================================== -- SETTINGS TAB --================================================== local function settingsTab() clearContent() local fovInput = makeInput("FOV (40-150)", camera.FieldOfView) makeButton("Set FOV", function() local n = tonumber(fovInput.Text) if n then setFOV(n) end end) makeButton("Reset FOV", function() setFOV(defaultFOV) fovInput.Text = tostring(defaultFOV) end) makeButton("FPS Boost: ON / OFF", function() setFPSBoost(not fpsBoostEnabled) end) makeButton("Hide / Show Hub", function() main.Visible = not main.Visible end) makeButton("Close Hub", function() stopFly() setNoclip(false) setFPSBoost(false) setShiftLock(false) infiniteJumpEnabled = false camera.FieldOfView = defaultFOV if roleGui then roleGui:Destroy() roleGui = nil end if renderConnection then renderConnection:Disconnect() end clearNPCs() gui:Destroy() end) end --================================================== -- TABS --================================================== makeTab("MOVE", movementTab) makeTab("NPC", npcTab) makeTab("SETTINGS", settingsTab) movementTab() --================================================== -- OPEN BUTTON --================================================== local openButton = Instance.new("TextButton") openButton.Size = UDim2.fromOffset(55, 55) openButton.Position = UDim2.new(0, 15, 0.5, -27) openButton.BackgroundColor3 = PURPLE openButton.Text = "PC" openButton.TextColor3 = WHITE openButton.TextSize = 17 openButton.Font = Enum.Font.GothamBlack openButton.Parent = gui local openCorner = Instance.new("UICorner") openCorner.CornerRadius = UDim.new(1, 0) openCorner.Parent = openButton openButton.Activated:Connect(function() main.Visible = not main.Visible end) print("PURPLE CYBER HUB LOADED") print("ROLE: " .. role)