Algarnr

HIDE AND SNEAK SCRIPT GOOD

Jun 4th, 2025
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 6.94 KB | Source Code | 0 0
  1. --[[
  2.  
  3. 🔄 CoreX Hub - Hide & Sneak | Update Logs
  4.  
  5. 🆙 UPDATE 1.1:
  6. + INCREASE SPEED
  7. + ADD INFINITE JUMP
  8.  
  9. 👨‍🔧 IN PROGRESS:
  10. - INVISIBLE
  11. - INSTANT HIDE
  12.  
  13. ]]
  14.  
  15. -- CoreX Hub - Hide & Sneak Only
  16. -- Only allow CoreX Hub in "Hide and Sneak"
  17. if game.PlaceId ~= 13157638696 then
  18.     game.Players.LocalPlayer:Kick("CoreX Hub: This script only works in Hide and Sneak.")
  19.     return
  20. end
  21. local toggleKey = Enum.KeyCode.RightShift
  22. local player = game.Players.LocalPlayer
  23. local guiService = game:GetService("UserInputService")
  24.  
  25. -- Create GUI
  26. local CoreXGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  27. CoreXGui.Name = "CoreX_HideAndSneak"
  28. CoreXGui.ResetOnSpawn = false
  29.  
  30. -- Toggle Button (External)
  31. local toggleButton = Instance.new("TextButton", CoreXGui)
  32. toggleButton.Size = UDim2.new(0, 100, 0, 30)
  33. toggleButton.Position = UDim2.new(0, 20, 0.5, -15)
  34. toggleButton.Text = "Show/Hide"
  35. toggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  36. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  37. toggleButton.Font = Enum.Font.GothamBold
  38. toggleButton.TextSize = 14
  39. Instance.new("UICorner", toggleButton).CornerRadius = UDim.new(0, 6)
  40.  
  41. -- Main Frame
  42. local MainFrame = Instance.new("Frame", CoreXGui)
  43. MainFrame.Size = UDim2.new(0, 440, 0, 260)
  44. MainFrame.Position = UDim2.new(0.5, -220, 0.5, -130)
  45. MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  46. MainFrame.Visible = true
  47. MainFrame.Active = true
  48. MainFrame.Draggable = true
  49. Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 12)
  50.  
  51. -- Title
  52. local Title = Instance.new("TextLabel", MainFrame)
  53. Title.Size = UDim2.new(1, 0, 0, 40)
  54. Title.BackgroundTransparency = 1
  55. Title.Text = "CoreX Hub - Hide & Sneak"
  56. Title.Font = Enum.Font.GothamBold
  57. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  58. Title.TextSize = 20
  59.  
  60. -- Left-side Logs Tab
  61. local LogsTab = Instance.new("TextLabel", MainFrame)
  62. LogsTab.Position = UDim2.new(0, 10, 0, 10) -- Above Main tab
  63. LogsTab.Size = UDim2.new(0, 80, 0, 30)
  64. LogsTab.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  65. LogsTab.Text = "Logs"
  66. LogsTab.Font = Enum.Font.GothamBold
  67. LogsTab.TextColor3 = Color3.fromRGB(255, 255, 255)
  68. LogsTab.TextSize = 14
  69. Instance.new("UICorner", LogsTab).CornerRadius = UDim.new(0, 6)
  70. -- Left-side Main Tab
  71. local MainTab = Instance.new("TextLabel", MainFrame)
  72. MainTab.Position = UDim2.new(0, 10, 0, 50)
  73. MainTab.Size = UDim2.new(0, 80, 0, 30)
  74. MainTab.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  75. MainTab.Text = "Main"
  76. MainTab.Font = Enum.Font.GothamBold
  77. MainTab.TextColor3 = Color3.fromRGB(255, 255, 255)
  78. MainTab.TextSize = 14
  79. Instance.new("UICorner", MainTab).CornerRadius = UDim.new(0, 6)
  80.  
  81. -- Features Panel
  82. local Features = Instance.new("Frame", MainFrame)
  83. Features.Position = UDim2.new(0, 100, 0, 50)
  84. Features.Size = UDim2.new(1, -110, 1, -60)
  85. Features.BackgroundTransparency = 1
  86.  
  87. -- Toggle Button Creator
  88. local function createFeature(name, order, callback)
  89.     local btn = Instance.new("TextButton", Features)
  90.     btn.Size = UDim2.new(1, -10, 0, 30)
  91.     btn.Position = UDim2.new(0, 5, 0, (order - 1) * 35)
  92.     btn.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  93.     btn.Text = "☐ " .. name
  94.     btn.Font = Enum.Font.Gotham
  95.     btn.TextColor3 = Color3.fromRGB(255, 255, 255)
  96.     btn.TextSize = 14
  97.     Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)
  98.  
  99.     local state = false
  100.     btn.MouseButton1Click:Connect(function()
  101.         state = not state
  102.         btn.Text = (state and "☑️ " or "☐ ") .. name
  103.         callback(state)
  104.     end)
  105. end
  106.  
  107. -- ESP Setup
  108. local function createESP(player, role)
  109.     if player == game.Players.LocalPlayer then return end
  110.  
  111.     local billboard = Instance.new("BillboardGui")
  112.     billboard.Name = "CoreX_ESP"
  113.     billboard.Size = UDim2.new(0, 100, 0, 20)
  114.     billboard.AlwaysOnTop = true
  115.     billboard.Adornee = player.Character and player.Character:FindFirstChild("Head")
  116.     billboard.Parent = player.Character and player.Character:FindFirstChild("Head")
  117.  
  118.     local label = Instance.new("TextLabel", billboard)
  119.     label.Size = UDim2.new(1, 0, 1, 0)
  120.     label.BackgroundTransparency = 1
  121.     label.TextColor3 = role == "Hider" and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 0)
  122.     label.Text = role
  123.     label.Font = Enum.Font.SourceSansBold
  124.     label.TextScaled = true
  125. end
  126.  
  127. -- Detect players and roles
  128. for _, plr in pairs(game.Players:GetPlayers()) do
  129.     plr.CharacterAdded:Connect(function(char)
  130.         wait(1)
  131.         local head = char:WaitForChild("Head", 3)
  132.         if head then
  133.             task.delay(1, function()
  134.                 local role = plr.Team and plr.Team.Name or "Unknown"
  135.                 createESP(plr, role)
  136.             end)
  137.         end
  138.     end)
  139. end
  140.  
  141.  
  142.  
  143. createFeature("Invisibility", 2, function(state)
  144.     local char = player.Character
  145.     if char then
  146.         for _, p in ipairs(char:GetDescendants()) do
  147.             if p:IsA("BasePart") then
  148.                 p.Transparency = state and 1 or 0
  149.             end
  150.         end
  151.     end
  152. end)
  153.  
  154. createFeature("Speed", 3, function(state)
  155.     local hum = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
  156.     if hum then
  157.         hum.WalkSpeed = state and 70 or 16
  158.     end
  159. end)
  160.  
  161. createFeature("Infinite Jump", 4, function(state)
  162.     if state then
  163.         infiniteJumpConnection = game:GetService("UserInputService").JumpRequest:Connect(function()
  164.             local hum = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
  165.             if hum then
  166.                 hum:ChangeState(Enum.HumanoidStateType.Jumping)
  167.             end
  168.         end)
  169.     elseif infiniteJumpConnection then
  170.         infiniteJumpConnection:Disconnect()
  171.         infiniteJumpConnection = nil
  172.     end
  173. end)
  174.  
  175. createFeature("Instant Hide", 5, function(state)
  176.     if state then
  177.         local remote = game.ReplicatedStorage:FindFirstChild("Hide")
  178.         if remote then remote:FireServer() end
  179.     end
  180. end)
  181.  
  182. -- Toggle Visibility
  183. toggleButton.MouseButton1Click:Connect(function()
  184.     MainFrame.Visible = not MainFrame.Visible
  185. end)
  186.  
  187. -- Optional: Keybind support
  188. guiService.InputBegan:Connect(function(input, gpe)
  189.     if not gpe and input.KeyCode == toggleKey then
  190.         MainFrame.Visible = not MainFrame.Visible
  191.     end
  192. end)
  193. -- Global state for ESP
  194. local espEnabled = false
  195.  
  196.  
  197. createFeature("ESP", 1, function(state)
  198.     espEnabled = state
  199.     for _, plr in pairs(game.Players:GetPlayers()) do
  200.         if plr ~= player and plr.Character and plr.Character:FindFirstChild("Head") then
  201.             local head = plr.Character:FindFirstChild("Head")
  202.             if state then
  203.                 local role = plr.Team and plr.Team.Name or "Unknown"
  204.                 createESP(plr, role)
  205.             elseif head:FindFirstChild("CoreX_ESP") then
  206.                 head:FindFirstChild("CoreX_ESP"):Destroy()
  207.             end
  208.         end
  209.     end
  210. end)
  211.  
  212. -- Auto-apply ESP on character spawn
  213. local function hookPlayer(plr)
  214.     plr.CharacterAdded:Connect(function(char)
  215.         if espEnabled then
  216.             task.wait(1)
  217.             local head = char:WaitForChild("Head", 3)
  218.             if head then
  219.                 local role = plr.Team and plr.Team.Name or "Unknown"
  220.                 createESP(plr, role)
  221.             end
  222.         end
  223.     end)
  224. end
  225.  
  226. -- Hook current and future players
  227. for _, plr in pairs(game.Players:GetPlayers()) do
  228.     hookPlayer(plr)
  229. end
  230.  
  231. game.Players.PlayerAdded:Connect(hookPlayer)
  232.  
  233.  
  234.  
Advertisement
Add Comment
Please, Sign In to add comment