Slomcal

RETROBREACH

Dec 16th, 2025 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.92 KB | None | 0 0
  1. -- ============================================
  2. -- GLOBAL SERVICES AND VARIABLES
  3. -- Put this section at the top after Window creation
  4. -- ============================================
  5.  
  6. -- Services
  7. local Players = game:GetService("Players")
  8. local RunService = game:GetService("RunService")
  9.  
  10. -- Player references
  11. local player = Players.LocalPlayer
  12. local character = player.Character or player.CharacterAdded:Wait()
  13. local hrp = character:WaitForChild("HumanoidRootPart")
  14. local backpack = player:WaitForChild("Backpack")
  15.  
  16. -- Workspace references
  17. local itemfolder = workspace:WaitForChild("ItemSpawns")
  18.  
  19. -- Update character/hrp when player respawns
  20. player.CharacterAdded:Connect(function(char)
  21. character = char
  22. hrp = character:WaitForChild("HumanoidRootPart")
  23. end)
  24.  
  25. -- Helper function to get current HRP
  26. local function getHRP()
  27. if not character or not character.Parent then
  28. character = player.Character or player.CharacterAdded:Wait()
  29. end
  30. if not hrp or not hrp.Parent then
  31. hrp = character:WaitForChild("HumanoidRootPart")
  32. end
  33. return hrp
  34. end
  35.  
  36. -- Helper function to get teleport HRP (for teleport functions)
  37. local function getTeleportHRP()
  38. local char = player.Character or player.CharacterAdded:Wait()
  39. local root = char:WaitForChild("HumanoidRootPart")
  40. return root
  41. end
  42.  
  43. -- ============================================
  44. -- END OF GLOBAL SECTION
  45. -- ============================================
  46. -- Load Rayfield first
  47. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() -- ← NO TRAILING SPACES!
  48. local Window = Rayfield:CreateWindow({
  49. Name = "The One Piece Is Real",
  50. Icon = 0,
  51. LoadingTitle = "Rayfield Interface Suite",
  52. LoadingSubtitle = "by Sirius",
  53. ShowText = "Rayfield",
  54. Theme = "Default",
  55. ToggleUIKeybind = "K",
  56. DisableRayfieldPrompts = false,
  57. DisableBuildWarnings = false,
  58. ConfigurationSaving = {
  59. Enabled = true,
  60. FolderName = nil,
  61. FileName = "Big Hub"
  62. },
  63. Discord = {
  64. Enabled = false,
  65. Invite = "noinvitelink",
  66. RememberJoins = true
  67. },
  68. KeySystem = false,
  69. KeySettings = {
  70. Title = "Untitled",
  71. Subtitle = "Key System",
  72. Note = "No method of obtaining the key is provided",
  73. FileName = "Key",
  74. SaveKey = true,
  75. GrabKeyFromSite = false,
  76. Key = {"Hello"}
  77. }
  78. })
  79.  
  80. local Tab = Window:CreateTab("get items", 4483362458)
  81. -- Helper function to get item CFrame (only added here since it wasn't above)
  82. local function getItemCFrame(item)
  83. if not item or not item.Parent then
  84. return nil
  85. end
  86.  
  87. if item:IsA("Model") then
  88. local pivot = item:GetPivot()
  89. if pivot then return pivot end
  90.  
  91. local primaryPart = item.PrimaryPart
  92. if primaryPart then return primaryPart.CFrame end
  93. elseif item:IsA("BasePart") then
  94. return item.CFrame
  95. end
  96.  
  97. local part = item:FindFirstChildWhichIsA("BasePart", true)
  98. if part then
  99. return part.CFrame
  100. end
  101.  
  102. return nil
  103. end
  104.  
  105. -- ============================================
  106. -- ITEM TRACKING SYSTEM
  107. -- ============================================
  108.  
  109. local trackedItems = {}
  110. local ItemDropdown = nil
  111.  
  112. local function getAllItems()
  113. local items = {}
  114. local itemSet = {}
  115. local folder = workspace:FindFirstChild("ItemSpawns")
  116.  
  117. if not folder then
  118. warn("ItemSpawns folder not found!")
  119. return items
  120. end
  121.  
  122. trackedItems = {}
  123.  
  124. for _, item in ipairs(folder:GetChildren()) do
  125. -- Accept items that have EITHER ClickDetector OR ProximityPrompt (or both)
  126. local hasCD = item:FindFirstChild("ClickDetector")
  127. local hasPP = item:FindFirstChild("ProximityPrompt")
  128. if (hasCD or hasPP) and item.Parent then
  129. local cframe = getItemCFrame(item)
  130. if cframe then
  131. if not itemSet[item.Name] then
  132. itemSet[item.Name] = true
  133. table.insert(items, item.Name)
  134. end
  135. trackedItems[item.Name] = {
  136. instance = item,
  137. cframe = cframe
  138. }
  139. end
  140. end
  141. end
  142.  
  143. table.sort(items)
  144.  
  145. if #items == 0 then
  146. table.insert(items, "No items found")
  147. end
  148.  
  149. return items
  150. end
  151.  
  152. -- ============================================
  153. -- AUTO-REFRESH SYSTEM (25 SECONDS)
  154. -- ============================================
  155.  
  156. local function refreshItemList()
  157. local newItems = getAllItems()
  158. if ItemDropdown then
  159. ItemDropdown:Refresh(newItems)
  160. end
  161. print("✓ Item list refreshed -", #newItems, "items available")
  162. end
  163.  
  164. -- Auto-refresh every 25 seconds
  165. task.spawn(function()
  166. while task.wait(25) do
  167. refreshItemList()
  168. end
  169. end)
  170.  
  171. -- ============================================
  172. -- GRAB ITEM FUNCTION (WITH PROXIMITY PROMPT SPAM + CLICKDETECTOR)
  173. -- ============================================
  174.  
  175. local function grabItem(itemName)
  176. local success, err = pcall(function()
  177. if not itemName or itemName == "" or itemName == "No items found" then
  178. return
  179. end
  180.  
  181. local folder = workspace:FindFirstChild("ItemSpawns")
  182. if not folder then
  183. warn("ItemSpawns folder missing")
  184. return
  185. end
  186.  
  187. local item = folder:FindFirstChild(itemName)
  188. if not item or not item.Parent then
  189. warn("Item not available:", itemName)
  190. task.wait(0.5)
  191. refreshItemList()
  192. return
  193. end
  194.  
  195. local clickDetector = item:FindFirstChild("ClickDetector")
  196. local proximityPrompt = item:FindFirstChild("ProximityPrompt")
  197.  
  198. -- Get position
  199. local itemCFrame = getItemCFrame(item)
  200. if not itemCFrame then
  201. warn("Could not get CFrame for:", itemName)
  202. return
  203. end
  204.  
  205. local root = getHRP()
  206. local savedCFrame = root.CFrame
  207.  
  208. -- Teleport to item
  209. root.CFrame = itemCFrame + Vector3.new(0, 3, 0)
  210. task.wait(0.1)
  211.  
  212. -- Spam both systems for 0.5 seconds
  213. local heartbeatConnection
  214. heartbeatConnection = RunService.Heartbeat:Connect(function()
  215. -- Enable and spam ProximityPrompt
  216. if proximityPrompt and proximityPrompt.Parent then
  217. proximityPrompt.MaxActivationDistance = 100
  218. proximityPrompt.Enabled = true
  219. pcall(function()
  220. proximityPrompt:InputHoldBegin()
  221. task.delay(0.03, function()
  222. if proximityPrompt and proximityPrompt.Parent then
  223. proximityPrompt:InputHoldEnd()
  224. end
  225. end)
  226. end)
  227. end
  228.  
  229. -- Fire ClickDetector every frame (some games require repeated clicks)
  230. if clickDetector and clickDetector.Parent then
  231. fireclickdetector(clickDetector)
  232. end
  233. end)
  234.  
  235. -- Keep spamming for half a second
  236. task.wait(0.5)
  237.  
  238. -- Cleanup
  239. if heartbeatConnection then
  240. heartbeatConnection:Disconnect()
  241. end
  242.  
  243. if proximityPrompt and proximityPrompt.Parent then
  244. proximityPrompt.MaxActivationDistance = 7
  245. proximityPrompt.Enabled = false
  246. end
  247.  
  248. -- Return to original position
  249. if root and root.Parent then
  250. root.CFrame = savedCFrame
  251. end
  252.  
  253. print("✓ Grabbed:", itemName)
  254. task.wait(0.5)
  255. refreshItemList()
  256. end)
  257.  
  258. if not success then
  259. warn("Grab error:", err)
  260. task.wait(0.5)
  261. refreshItemList()
  262. end
  263. end
  264.  
  265. -- ============================================
  266. -- UI CONTROLS
  267. -- ============================================
  268.  
  269. local itemList = getAllItems()
  270. local selectedItem = nil
  271.  
  272. ItemDropdown = Tab:CreateDropdown({
  273. Name = "Select Item",
  274. Options = itemList,
  275. CurrentOption = { itemList[1] },
  276. Callback = function(option)
  277. selectedItem = type(option) == "table" and option[1] or option
  278. print("Selected:", selectedItem)
  279. end,
  280. })
  281.  
  282. Tab:CreateButton({
  283. Name = "Grab Selected Item",
  284. Callback = function()
  285. if selectedItem and selectedItem ~= "No items found" then
  286. grabItem(selectedItem)
  287. else
  288. warn("No valid item selected")
  289. end
  290. end,
  291. })
  292.  
  293. Tab:CreateButton({
  294. Name = "Manual Refresh",
  295. Callback = function()
  296. refreshItemList()
  297. end,
  298. })
  299.  
  300. Tab:CreateButton({
  301. Name = "Show All Items (Console)",
  302. Callback = function()
  303. local items = getAllItems()
  304. print("=== AVAILABLE ITEMS ===")
  305. for i, name in ipairs(items) do
  306. print(i .. ".", name)
  307. end
  308. print("Total items:", #items)
  309. end,
  310. })
  311.  
  312. -- expected identifier when parsing expression got '}' stackbegin script 'coregui.11992.6506599', line 1 stack end
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338. local Section = Tab:CreateSection("infinite yield")
  339.  
  340. local function infyield()
  341. loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))()
  342. end
  343.  
  344. local Button = Tab:CreateButton({
  345. Name = "Infinite Yield",
  346. Callback = function()
  347. infyield()
  348. -- The function that takes place when the button is pressed
  349. end,
  350. Rayfield:Notify({
  351. Title = "infinite yield",
  352. Content = "congrats you ran infinite yield like six seven 6767676767",
  353. Duration = 6.5,
  354. Image = 4483362458,
  355. })
  356. })
  357.  
  358.  
  359.  
  360.  
  361.  
  362. --is the esp real?!?!
  363. local Tab = Window:CreateTab("ESP", 4483362458)
  364.  
  365.  
  366.  
  367. local character = player.Character or player.CharacterAdded:Wait()
  368.  
  369. local itemfolder = workspace:WaitForChild("ItemSpawns")
  370. -- Store ESP data
  371. local espItems = {}
  372. local espEnabled = false -- ADDED: Track ESP state manually
  373.  
  374. -- Create ESP for a model
  375. local function createESP(model)
  376. if not model:IsA("Model") or not model.PrimaryPart then return end
  377. if espItems[model] then return end -- prevent duplicates
  378. -- Highlight
  379. local highlight = Instance.new("Highlight")
  380. highlight.Parent = model
  381. highlight.FillColor = Color3.new(1, 1, 0)
  382. highlight.FillTransparency = 1
  383. highlight.OutlineColor = Color3.new(1, 0, 0)
  384. highlight.OutlineTransparency = 0
  385. -- BillboardGui
  386. local billboard = Instance.new("BillboardGui")
  387. billboard.Name = "ESP_Name"
  388. billboard.Parent = model
  389. billboard.Adornee = model.PrimaryPart
  390. billboard.Size = UDim2.new(0, 40, 0, 40)
  391. billboard.StudsOffset = Vector3.new(0, 3, 0)
  392. billboard.AlwaysOnTop = true
  393. billboard.MaxDistance = 500
  394. local text = Instance.new("TextLabel")
  395. text.Parent = billboard
  396. text.Size = UDim2.fromScale(1, 1)
  397. text.BackgroundTransparency = 1
  398. text.TextScaled = true
  399. text.TextColor3 = Color3.new(1, 1, 1)
  400. text.TextTransparency = 0.5
  401. text.TextStrokeTransparency = 0.5
  402. text.Text = model.Name
  403. espItems[model] = {
  404. text = text,
  405. highlight = highlight,
  406. billboard = billboard
  407. }
  408. end
  409. -- Remove ESP cleanly
  410. local function removeESP(model)
  411. local data = espItems[model]
  412. if not data then return end
  413. if data.billboard then data.billboard:Destroy() end
  414. if data.highlight then data.highlight:Destroy() end
  415. espItems[model] = nil
  416. end
  417.  
  418. -- MOVED: Create toggle FIRST before using it
  419. local Toggle = Tab:CreateToggle({
  420. Name = "ESP Toggle",
  421. CurrentValue = false,
  422. Flag = "ESPToggle",
  423. Callback = function(Value)
  424. espEnabled = Value -- CHANGED: Set our manual variable
  425. if Value then
  426. -- Turn ESP on
  427. for _, item in ipairs(itemfolder:GetChildren()) do
  428. createESP(item)
  429. end
  430. else
  431. -- Turn ESP off
  432. for model, _ in pairs(espItems) do
  433. removeESP(model)
  434. end
  435. end
  436. end
  437. })
  438.  
  439. -- Auto add when spawned if toggle is on
  440. itemfolder.ChildAdded:Connect(function(item)
  441. task.wait()
  442. if espEnabled then -- CHANGED: Use espEnabled instead of Toggle.CurrentValue
  443. createESP(item)
  444. end
  445. end)
  446. -- Auto remove when destroyed
  447. itemfolder.ChildRemoved:Connect(function(item)
  448. removeESP(item)
  449. end)
  450. -- Update distance (single loop)
  451. RunService.RenderStepped:Connect(function()
  452. if espEnabled then -- CHANGED: Use espEnabled instead of Toggle.CurrentValue
  453. for model, data in pairs(espItems) do
  454. if model.PrimaryPart and hrp then
  455. local dist = (hrp.Position - model.PrimaryPart.Position).Magnitude
  456. data.text.Text = model.Name .. " [" .. math.floor(dist) .. "m]"
  457. end
  458. end
  459. end
  460. end)
  461.  
  462. -- Player ESP Toggle
  463. local playerESP = {}
  464. local playerESPEnabled = false
  465.  
  466. -- Get team color for a player
  467. local function getTeamColor(otherPlayer)
  468. if otherPlayer.Team then
  469. return otherPlayer.Team.TeamColor.Color
  470. end
  471. return Color3.new(0, 1, 0) -- Default green if no team
  472. end
  473.  
  474. -- Get team name for a player
  475. local function getTeamName(otherPlayer)
  476. if otherPlayer.Team then
  477. return otherPlayer.Team.Name
  478. end
  479. return "No Team"
  480. end
  481.  
  482. -- Create ESP for a player
  483. local function createPlayerESP(otherPlayer)
  484. if otherPlayer == player then return end -- Don't ESP yourself
  485. if playerESP[otherPlayer] then return end -- Prevent duplicates
  486.  
  487. local function setupCharacter(character)
  488. if not character then return end
  489.  
  490. local hrpOther = character:WaitForChild("HumanoidRootPart", 5)
  491. if not hrpOther then return end
  492.  
  493. local teamColor = getTeamColor(otherPlayer)
  494. local teamName = getTeamName(otherPlayer)
  495.  
  496. -- Highlight
  497. local highlight = Instance.new("Highlight")
  498. highlight.Parent = character
  499. highlight.FillColor = teamColor
  500. highlight.FillTransparency = 0.5
  501. highlight.OutlineColor = teamColor
  502. highlight.OutlineTransparency = 0
  503.  
  504. -- BillboardGui for name
  505. local billboard = Instance.new("BillboardGui")
  506. billboard.Name = "PlayerESP_Name"
  507. billboard.Parent = character
  508. billboard.Adornee = hrpOther
  509. billboard.Size = UDim2.new(0, 100, 0, 40)
  510. billboard.StudsOffset = Vector3.new(0, 3, 0)
  511. billboard.AlwaysOnTop = true
  512. billboard.MaxDistance = 1000
  513.  
  514. local text = Instance.new("TextLabel")
  515. text.Parent = billboard
  516. text.Size = UDim2.fromScale(1, 1)
  517. text.BackgroundTransparency = 1
  518. text.Font = Enum.Font.Highway
  519. text.TextSize = 20
  520. text.TextColor3 = teamColor
  521. text.TextTransparency = 0
  522. text.TextStrokeTransparency = 0.5
  523. text.Text = otherPlayer.Name
  524.  
  525. -- BillboardGui for team
  526. local teamBillboard = Instance.new("BillboardGui")
  527. teamBillboard.Name = "PlayerESP_Team"
  528. teamBillboard.Parent = character
  529. teamBillboard.Adornee = hrpOther
  530. teamBillboard.Size = UDim2.new(0, 100, 0, 30)
  531. teamBillboard.StudsOffset = Vector3.new(0, 2.2, 0)
  532. teamBillboard.AlwaysOnTop = true
  533. teamBillboard.MaxDistance = 1000
  534.  
  535. local teamText = Instance.new("TextLabel")
  536. teamText.Parent = teamBillboard
  537. teamText.Size = UDim2.fromScale(1, 1)
  538. teamText.BackgroundTransparency = 1
  539. teamText.Font = Enum.Font.Highway
  540. teamText.TextSize = 16
  541. teamText.TextColor3 = teamColor
  542. teamText.TextTransparency = 0
  543. teamText.TextStrokeTransparency = 0.5
  544. teamText.Text = "[" .. teamName .. "]"
  545.  
  546. -- BillboardGui for tool
  547. local toolBillboard = Instance.new("BillboardGui")
  548. toolBillboard.Name = "PlayerESP_Tool"
  549. toolBillboard.Parent = character
  550. toolBillboard.Adornee = hrpOther
  551. toolBillboard.Size = UDim2.new(0, 100, 0, 30)
  552. toolBillboard.StudsOffset = Vector3.new(0, 1.5, 0)
  553. toolBillboard.AlwaysOnTop = true
  554. toolBillboard.MaxDistance = 1000
  555.  
  556. local toolText = Instance.new("TextLabel")
  557. toolText.Parent = toolBillboard
  558. toolText.Size = UDim2.fromScale(1, 1)
  559. toolText.BackgroundTransparency = 1
  560. toolText.Font = Enum.Font.Highway
  561. toolText.TextSize = 16
  562. toolText.TextColor3 = Color3.new(1, 1, 0) -- Yellow for tool
  563. toolText.TextTransparency = 0
  564. toolText.TextStrokeTransparency = 0.5
  565. toolText.Text = ""
  566.  
  567. playerESP[otherPlayer] = {
  568. text = text,
  569. teamText = teamText,
  570. toolText = toolText,
  571. highlight = highlight,
  572. billboard = billboard,
  573. teamBillboard = teamBillboard,
  574. toolBillboard = toolBillboard,
  575. character = character
  576. }
  577.  
  578. -- Monitor for tool changes
  579. local function updateTool()
  580. local tool = character:FindFirstChildOfClass("Tool")
  581. if tool then
  582. toolText.Text = "[" .. tool.Name .. "]"
  583. else
  584. toolText.Text = ""
  585. end
  586. end
  587.  
  588. -- Initial check
  589. updateTool()
  590.  
  591. -- Watch for tools being added/removed
  592. character.ChildAdded:Connect(function(child)
  593. if child:IsA("Tool") then
  594. updateTool()
  595. end
  596. end)
  597.  
  598. character.ChildRemoved:Connect(function(child)
  599. if child:IsA("Tool") then
  600. updateTool()
  601. end
  602. end)
  603. end
  604.  
  605. -- Setup current character
  606. if otherPlayer.Character then
  607. setupCharacter(otherPlayer.Character)
  608. end
  609.  
  610. -- Setup future characters (respawns)
  611. otherPlayer.CharacterAdded:Connect(function(character)
  612. if playerESPEnabled then
  613. task.wait(0.1)
  614. removePlayerESP(otherPlayer)
  615. setupCharacter(character)
  616. end
  617. end)
  618.  
  619. -- Update color when team changes
  620. otherPlayer:GetPropertyChangedSignal("Team"):Connect(function()
  621. if playerESPEnabled then
  622. removePlayerESP(otherPlayer)
  623. task.wait(0.1)
  624. createPlayerESP(otherPlayer)
  625. end
  626. end)
  627. end
  628.  
  629. -- Remove Player ESP cleanly
  630. function removePlayerESP(otherPlayer)
  631. local data = playerESP[otherPlayer]
  632. if not data then return end
  633.  
  634. if data.billboard then data.billboard:Destroy() end
  635. if data.teamBillboard then data.teamBillboard:Destroy() end
  636. if data.toolBillboard then data.toolBillboard:Destroy() end
  637. if data.highlight then data.highlight:Destroy() end
  638. playerESP[otherPlayer] = nil
  639. end
  640.  
  641. -- Player ESP Toggle
  642. -- Player ESP Toggle
  643. local PlayerToggle = Tab:CreateToggle({
  644. Name = "Player ESP Toggle",
  645. CurrentValue = false,
  646. Flag = "PlayerESPToggle",
  647. Callback = function(Value)
  648. playerESPEnabled = Value
  649.  
  650. if Value then
  651. -- Turn Player ESP on for all existing players
  652. for _, otherPlayer in ipairs(Players:GetPlayers()) do
  653. task.wait(0.05) -- Small delay to prevent overwhelming
  654. createPlayerESP(otherPlayer)
  655. end
  656. else
  657. -- Turn Player ESP off
  658. for otherPlayer, _ in pairs(playerESP) do
  659. removePlayerESP(otherPlayer)
  660. end
  661. end
  662. end
  663. })
  664.  
  665. -- Auto add when player joins if toggle is on
  666. Players.PlayerAdded:Connect(function(otherPlayer)
  667. if playerESPEnabled then
  668. -- Wait for character to load
  669. local character = otherPlayer.Character or otherPlayer.CharacterAdded:Wait()
  670. task.wait(0.2) -- Give time for HumanoidRootPart to load
  671. createPlayerESP(otherPlayer)
  672. end
  673. end)
  674.  
  675. -- Auto remove when player leaves
  676. Players.PlayerRemoving:Connect(function(otherPlayer)
  677. removePlayerESP(otherPlayer)
  678. end)
  679.  
  680. -- Update distance for players
  681. RunService.RenderStepped:Connect(function()
  682. if playerESPEnabled then
  683. local currentHRP = getHRP()
  684. for otherPlayer, data in pairs(playerESP) do
  685. -- Check if player still exists
  686. if not otherPlayer.Parent then
  687. removePlayerESP(otherPlayer)
  688. continue
  689. end
  690.  
  691. -- Check if character and HRP exist
  692. if data.character and data.character.Parent and data.character:FindFirstChild("HumanoidRootPart") and currentHRP then
  693. local dist = (currentHRP.Position - data.character.HumanoidRootPart.Position).Magnitude
  694. data.text.Text = otherPlayer.Name .. " [" .. math.floor(dist) .. "m]"
  695. end
  696. end
  697. end
  698. end)
  699.  
  700.  
  701.  
  702. -- AMMO EXPLOIT TAB (WITH MANUAL INPUT OPTION)
  703. local Tab = Window:CreateTab("non functional", 4483362458)
  704.  
  705.  
  706.  
  707. local selectedGun = nil
  708. -- Function to get guns from backpack
  709. local function getGuns()
  710. local guns = {}
  711. for _, item in ipairs(backpack:GetChildren()) do
  712. if item:IsA("Tool") then
  713. table.insert(guns, item.Name)
  714. end
  715. end
  716. return guns
  717. end
  718. -- Dropdown to select gun
  719. local Dropdown = Tab:CreateDropdown({
  720. Name = "Select Gun",
  721. Options = getGuns(),
  722. CurrentOption = nil,
  723. Flag = "GunDropdown",
  724. Callback = function(option)
  725. -- Rayfield might pass a table, extract the actual value
  726. if type(option) == "table" then
  727. selectedGun = option.Name or option[1] or option.CurrentOption
  728. else
  729. selectedGun = option
  730. end
  731. print("Selected gun: " .. tostring(selectedGun))
  732. end
  733. })
  734. -- Input box for manual gun name entry
  735. local Input = Tab:CreateInput({
  736. Name = "Or Enter Gun Name Manually",
  737. PlaceholderText = "SCAR-H",
  738. RemoveTextAfterFocusLost = false,
  739. Callback = function(text)
  740. selectedGun = text
  741. print("Manually set gun to: " .. tostring(text))
  742. end
  743. })
  744. -- Button to show available guns
  745. Tab:CreateButton({
  746. Name = "Show Available Guns",
  747. Callback = function(...)
  748. local guns = getGuns()
  749. print("=== GUNS IN BACKPACK ===")
  750. if #guns == 0 then
  751. print("No guns found!")
  752. else
  753. for i, gunName in ipairs(guns) do
  754. print(i .. ". " .. gunName)
  755. end
  756. end
  757. if player.Character then
  758. local equippedGuns = {}
  759. for _, item in ipairs(player.Character:GetChildren()) do
  760. if item:IsA("Tool") then
  761. table.insert(equippedGuns, item.Name)
  762. end
  763. end
  764. if #equippedGuns > 0 then
  765. print("=== EQUIPPED GUNS ===")
  766. for i, gunName in ipairs(equippedGuns) do
  767. print(i .. ". " .. gunName)
  768. end
  769. end
  770. end
  771. end
  772. })
  773. -- Button to apply ammo
  774. Tab:CreateButton({
  775. Name = "Set Ammo to 999",
  776. Callback = function(...)
  777. print("=== AMMO EXPLOIT STARTING ===")
  778. print("Selected gun variable: " .. tostring(selectedGun))
  779. if not selectedGun or selectedGun == "" then
  780. warn("No gun selected from dropdown!")
  781. return
  782. end
  783. -- Check both backpack and character (in case gun is equipped)
  784. local gun = backpack:FindFirstChild(selectedGun)
  785. or (player.Character and player.Character:FindFirstChild(selectedGun))
  786. if not gun then
  787. warn("Gun not found: " .. tostring(selectedGun))
  788. print("Guns in backpack:")
  789. for _, item in ipairs(backpack:GetChildren()) do
  790. print(" - " .. item.Name)
  791. end
  792. if player.Character then
  793. print("Guns in character:")
  794. for _, item in ipairs(player.Character:GetChildren()) do
  795. if item:IsA("Tool") then
  796. print(" - " .. item.Name)
  797. end
  798. end
  799. end
  800. return
  801. end
  802. print("Found gun: " .. gun.Name)
  803. local ammo = gun:FindFirstChild("Ammo")
  804. if not ammo then
  805. warn("Ammo not found in gun")
  806. print("Gun children:")
  807. for _, child in ipairs(gun:GetChildren()) do
  808. print(" - " .. child.Name)
  809. end
  810. return
  811. end
  812. print("Found Ammo")
  813. local mag = ammo:FindFirstChild("Mag")
  814. if not mag then
  815. warn("Mag not found in Ammo")
  816. print("Ammo children:")
  817. for _, child in ipairs(ammo:GetChildren()) do
  818. print(" - " .. child.Name)
  819. end
  820. return
  821. end
  822. print("Found Mag - ClassName: " .. tostring(mag.ClassName))
  823. print("Current MaxValue: " .. tostring(mag.MaxValue))
  824. print("Current Value: " .. tostring(mag.Value))
  825. -- Try setting the values
  826. local success1, err1 = pcall(function()
  827. mag.MaxValue = 999
  828. end)
  829. if success1 then
  830. print("✓ MaxValue set to 999")
  831. else
  832. warn("✗ Failed to set MaxValue: " .. tostring(err1))
  833. end
  834. task.wait(0.1)
  835. local success2, err2 = pcall(function()
  836. mag.Value = 999
  837. end)
  838. if success2 then
  839. print("✓ Value set to 999")
  840. else
  841. warn("✗ Failed to set Value: " .. tostring(err2))
  842. end
  843. -- Verify the changes
  844. task.wait(0.1)
  845. print("=== FINAL VALUES ===")
  846. print("MaxValue: " .. tostring(mag.MaxValue))
  847. print("Value: " .. tostring(mag.Value))
  848. end
  849. })
  850. Tab:CreateButton({
  851. Name = "Instructions",
  852. Callback = function(...)
  853. print("=== HOW TO USE ===")
  854. print("1. Click 'Show Available Guns' to see your guns")
  855. print("2. Select gun from dropdown OR type name manually")
  856. print("3. Empty the magazine completely")
  857. print("4. Click 'Set Ammo to 999'")
  858. print("Note: If you pick up new guns, just reopen the menu!")
  859. end
  860. })
  861.  
  862. local TeleportsTab = Window:CreateTab("Teleports", 4483362458)
  863.  
  864.  
  865.  
  866. -- Helper function to get current character and root part
  867. local function getTeleportHRP()
  868. local char = player.Character or player.CharacterAdded:Wait()
  869. local root = char:WaitForChild("HumanoidRootPart")
  870. return root
  871. end
  872. local function bypass()
  873. workspace.Systems.Misc.Regions:Destroy()
  874. print("tp bypass work")
  875. end
  876.  
  877. local Button = TeleportsTab:CreateButton({
  878. Name = "tp bypass",
  879. Callback = function()
  880. bypass()
  881. end,
  882. })
  883.  
  884.  
  885. -- SCP-914
  886. local function TPto914()
  887. local RootPart = getTeleportHRP()
  888. RootPart.CFrame = CFrame.new(913.30365, 48.9998627, 579.599426, -0.999904394, -1.39721501e-09, -0.0138263367, -2.46904719e-09, 1, 7.75039766e-08, 0.0138263367, 7.75307072e-08, -0.999904394)
  889. end
  890. local Button = TeleportsTab:CreateButton({
  891. Name = "tp SCP-914",
  892. Callback = function()
  893. TPto914()
  894. end,
  895. })
  896.  
  897. -- Light containment Exit
  898. local function TPtoLCExit()
  899. local RootPart = getTeleportHRP()
  900. RootPart.CFrame = CFrame.new(974.883423, 48.9999771, 713.279724, -0.998440087, 4.15462047e-08, 0.0558333322, 4.63909942e-08, 1, 8.54762661e-08, -0.0558333322, 8.79330955e-08, -0.998440087)
  901. end
  902. local Button = TeleportsTab:CreateButton({
  903. Name = "tp Light containment Exit",
  904. Callback = function()
  905. TPtoLCExit()
  906. end,
  907. })
  908.  
  909. -- Light Containment Exit 2
  910. local function TPtoLCExit2()
  911. local RootPart = getTeleportHRP()
  912. RootPart.CFrame = CFrame.new(1094.19702, 48.9999733, 716.614807, -0.999899507, -9.63858611e-08, 0.0141758583, -9.71769794e-08, 1, -5.51183277e-08, -0.0141758583, -5.64903573e-08, -0.999899507)
  913. end
  914. local Button = TeleportsTab:CreateButton({
  915. Name = "tp Light Containment Exit 2",
  916. Callback = function()
  917. TPtoLCExit2()
  918. end,
  919. })
  920.  
  921. -- Entrance Zone Armoury
  922. local function TPtoArmoury()
  923. local RootPart = getTeleportHRP()
  924. RootPart.CFrame = CFrame.new(1244.77502, 37.0004082, 284.724426, 0.690999031, -4.75594453e-09, 0.722855687, 4.70684114e-09, 1, 2.0799753e-09, -0.722855687, 1.96510586e-09, 0.690999031)
  925. end
  926. local Button = TeleportsTab:CreateButton({
  927. Name = "tp Entrance Zone Armoury",
  928. Callback = function()
  929. TPtoArmoury()
  930. end,
  931. })
  932.  
  933. -- Gate B
  934. local function TPtoGateB()
  935. local RootPart = getTeleportHRP()
  936. RootPart.CFrame = CFrame.new(1209.32996, 49.0000954, 101.188354, 0.617117524, -2.74785883e-08, -0.786871016, 8.51168451e-08, 1, 3.18330535e-08, 0.786871016, -8.66207088e-08, 0.617117524)
  937. end
  938. local Button = TeleportsTab:CreateButton({
  939. Name = "tp Gate B",
  940. Callback = function()
  941. TPtoGateB()
  942. end,
  943. })
  944.  
  945. local function TPWarhead()
  946. local RootPart = getTeleportHRP()
  947. RootPart.CFrame = CFrame.new(1558.05103, 565.999756, 328.437195, -0.0130028613, -1.46316141e-08, 0.999915481, -5.63732279e-08, 1, 1.38997764e-08, -0.999915481, -5.61877265e-08, -0.0130028613)
  948. end
  949. local Button = TeleportsTab:CreateButton({
  950. Name = "tp Warhead",
  951. Callback = function()
  952. TPWarhead()
  953. end,
  954. })
  955.  
  956. local function ESCAPE()
  957. local RootPart = getTeleportHRP()
  958. RootPart.CFrame = CFrame.new(1114.04834, 565.999939, 58.4203262, 0.376450628, 1.3111138e-08, -0.926436663, 3.96208293e-08, 1, 3.02518508e-08, 0.926436663, -4.80945168e-08, 0.376450628)
  959. end
  960.  
  961.  
  962. local Button = TeleportsTab:CreateButton({
  963. Name = "ESCAPE",
  964. Callback = function()
  965. ESCAPE()
  966. end,
  967. })
  968. local SCPRangeTab = Window:CreateTab("andom shit", 4483362458)
  969.  
  970.  
  971.  
  972. local function SCPrange()
  973.  
  974. -- Find AttackBrick when the function is called
  975. local attackBrick = character.HumanoidRootPart:FindFirstChild("AttackBrick", true) -- true searches descendants
  976. if attackBrick then
  977. attackBrick.Size = Vector3.new(500, 500, 500)
  978. print("AttackBrick size changed!")
  979. else
  980. warn("AttackBrick not found!")
  981. end
  982. end
  983. -- :987 expected identifier when parsing exper
  984. local Button = SCPRangeTab:CreateButton({
  985. Name = "increase local range",
  986. Callback = function()
  987. SCPrange()
  988. end,
  989. })
  990.  
  991.  
  992. local function ThirdPersonCamera()
  993. player.CameraMode = Enum.CameraMode.Classic
  994. end
  995.  
  996. local Button = SCPRangeTab:CreateButton({
  997. Name = "Set Camera to Classic",
  998. Callback = function()
  999. ThirdPersonCamera()
  1000. end
  1001. })
  1002. local function RESPAWN()
  1003. local spawntimer = game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.RoundFrame.SpawnTimer
  1004. spawntimer.Visible = true
  1005. end
  1006.  
  1007. local Button = SCPRangeTab:CreateButton({
  1008. Name = "Set SpawnTimer Visible",
  1009. Callback = RESPAWN
  1010. })
  1011.  
  1012. local function FirstPersonCamera()
  1013. player.CameraMode = Enum.CameraMode.LockFirstPerson
  1014. end
  1015.  
  1016. local Button = SCPRangeTab:CreateButton({
  1017. Name = "Set Camera to FirstPerson",
  1018. Callback = function()
  1019. FirstPersonCamera()
  1020. end
  1021. })
  1022.  
  1023.  
  1024.  
  1025.  
  1026. local HPthingy = 25
  1027. local function TPONLOWHP()
  1028. Rayfield:Notify({
  1029. Title = "THOU HAST ENABLED SAFETY !!!!?!?!?!?!?",
  1030. Content = "testing if this works",
  1031. Duration = 10,
  1032. Image = 4483362458,
  1033. })
  1034.  
  1035. while true do
  1036.  
  1037. if character:WaitForChild("Humanoid").Health <=HPthingy then
  1038. local RootPart = getTeleportHRP()
  1039. RootPart.CFrame = CFrame.new(1558.05103, 565.999756, 328.437195, -0.0130028613, -1.46316141e-08, 0.999915481, -5.63732279e-08, 1, 1.38997764e-08, -0.999915481, -5.61877265e-08, -0.0130028613)
  1040. break
  1041. else
  1042. wait(0.05)
  1043.  
  1044.  
  1045.  
  1046. end
  1047. end
  1048. end
  1049.  
  1050. local Button = SCPRangeTab:CreateButton({
  1051. Name = "TP on LowHP",
  1052. Callback = function()
  1053. TPONLOWHP()
  1054. -- The function that takes place when the button is pressed
  1055. end,
  1056. })
  1057.  
  1058. local Slider = SCPRangeTab:CreateSlider({
  1059. Name = "Slider Example",
  1060. Range = {0, 100},
  1061. Increment = 1,
  1062. Suffix = "BICILIX IS THE BEST",
  1063. CurrentValue = 25,
  1064. Flag = "LOWHPFLAG", -- A flag is the identifier for the configuration file; make sure every element has a different flag if you're using configuration saving to ensure no overlaps
  1065. Callback = function(Value12)
  1066. HPthingy = Value12
  1067. -- The function that takes place when the slider changes
  1068. -- The variable (Value) is a number that correlates to the value the slider is currently at
  1069. end,
  1070. })
  1071.  
Advertisement
Add Comment
Please, Sign In to add comment