Mr_3242

Chained [2 Player Obby] Script

May 7th, 2026 (edited)
59
0
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.18 KB | Gaming | 0 0
  1. --// SERVICES
  2. local Players = game:GetService("Players")
  3. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  4. local RunService = game:GetService("RunService")
  5.  
  6. --// PLAYER
  7. local player = Players.LocalPlayer
  8.  
  9. --// SAFE REEXECUTE
  10. if getgenv().KillstreakUnload then
  11.     pcall(getgenv().KillstreakUnload)
  12. end
  13.  
  14. --// REMOTES
  15. local Remotes = ReplicatedStorage:WaitForChild("Remotes")
  16. local RagdollRemote = Remotes:WaitForChild("Ragdoll")
  17. local MineRemote = Remotes:WaitForChild("PlaceMine")
  18.  
  19. --// LOAD RAYFIELD
  20. local Rayfield
  21. repeat
  22.     local success, result = pcall(function()
  23.         return loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
  24.     end)
  25.     if success and result then
  26.         Rayfield = result
  27.     else
  28.         task.wait(1)
  29.     end
  30. until Rayfield
  31.  
  32. --// NOTIFICATION FILTER
  33. local oldNotify = Rayfield.Notify
  34. Rayfield.Notify = function(self, data)
  35.     if data and data.Title then
  36.         local t = tostring(data.Title)
  37.         if t:find("Rayfield") or t:find("Interface") then
  38.             return
  39.         end
  40.     end
  41.     return oldNotify(self, data)
  42. end
  43.  
  44. --// CUSTOM NOTIFY
  45. local function Notify(title, content)
  46.     Rayfield:Notify({
  47.         Title = title,
  48.         Content = content,
  49.         Duration = 3
  50.     })
  51. end
  52.  
  53. --// WINDOW
  54. local Window = Rayfield:CreateWindow({
  55.     Name = "Chained [2 Player Obby]",
  56.     LoadingTitle = "op trolls",
  57.     LoadingSubtitle = "follow me in TikTok Mr_3242",
  58.     ConfigurationSaving = { Enabled = false },
  59.     KeySystem = false
  60. })
  61.  
  62. --// TABS
  63. local MainTab = Window:CreateTab("Main", 4483362458)
  64. local CreditsTab = Window:CreateTab("Credits", 4483362458)
  65. local UnloadTab = Window:CreateTab("Unload", 4483362458)
  66.  
  67. --// STATES
  68. local running = true
  69.  
  70. local ragdollEnabled = false
  71. local mineEnabled = false
  72. local mineCleanerEnabled = false
  73.  
  74. local mineDelay = 0.1
  75.  
  76. local mineLoop
  77. local ragdollLoop
  78. local mineCleanerLoop
  79.  
  80. --------------------------------------------------------
  81. -- RAGDOLL LOOP
  82. --------------------------------------------------------
  83. local function StartRagdoll()
  84.     if ragdollLoop then return end
  85.  
  86.     ragdollLoop = task.spawn(function()
  87.         while ragdollEnabled and running do
  88.             for _, plr in ipairs(Players:GetPlayers()) do
  89.                 if plr ~= player then
  90.                     pcall(function()
  91.                         RagdollRemote:FireServer(plr, true)
  92.                     end)
  93.                 end
  94.             end
  95.             task.wait()
  96.         end
  97.  
  98.         ragdollLoop = nil
  99.     end)
  100. end
  101.  
  102. local function StopRagdoll()
  103.     ragdollEnabled = false
  104. end
  105.  
  106. --------------------------------------------------------
  107. -- MINE LOOP
  108. --------------------------------------------------------
  109. local function StartMines()
  110.     if mineLoop then return end
  111.  
  112.     mineLoop = task.spawn(function()
  113.         while mineEnabled and running do
  114.             pcall(function()
  115.                 MineRemote:FireServer()
  116.             end)
  117.  
  118.             task.wait(mineDelay)
  119.         end
  120.  
  121.         mineLoop = nil
  122.     end)
  123. end
  124.  
  125. local function StopMines()
  126.     mineEnabled = false
  127. end
  128.  
  129. --------------------------------------------------------
  130. -- MINE CLEANER
  131. --------------------------------------------------------
  132. local function RemoveMineOrExplosion(obj)
  133.     if obj.Name == "Mine" or obj:IsA("Explosion") then
  134.         pcall(function()
  135.             obj:Destroy()
  136.         end)
  137.     end
  138. end
  139.  
  140. local mineAddedConnection
  141.  
  142. local function StartMineCleaner()
  143.     if mineCleanerLoop then return end
  144.  
  145.     -- Remove existing objects
  146.     for _, obj in ipairs(workspace:GetDescendants()) do
  147.         RemoveMineOrExplosion(obj)
  148.     end
  149.  
  150.     -- Remove newly-created objects immediately
  151.     mineAddedConnection = workspace.DescendantAdded:Connect(function(obj)
  152.         if mineCleanerEnabled and running then
  153.             RemoveMineOrExplosion(obj)
  154.         end
  155.     end)
  156.  
  157.     -- Failsafe scan
  158.     mineCleanerLoop = task.spawn(function()
  159.         while mineCleanerEnabled and running do
  160.             for _, obj in ipairs(workspace:GetDescendants()) do
  161.                 RemoveMineOrExplosion(obj)
  162.             end
  163.  
  164.             task.wait(0.1)
  165.         end
  166.  
  167.         mineCleanerLoop = nil
  168.     end)
  169. end
  170.  
  171. local function StopMineCleaner()
  172.     mineCleanerEnabled = false
  173.  
  174.     if mineAddedConnection then
  175.         pcall(function()
  176.             mineAddedConnection:Disconnect()
  177.         end)
  178.  
  179.         mineAddedConnection = nil
  180.     end
  181.  
  182.     mineCleanerLoop = nil
  183. end
  184.  
  185. --------------------------------------------------------
  186. -- UI ELEMENTS
  187. --------------------------------------------------------
  188.  
  189. MainTab:CreateToggle({
  190.     Name = "Ragdoll Spam",
  191.     CurrentValue = false,
  192.     Callback = function(v)
  193.         ragdollEnabled = v
  194.  
  195.         if v then
  196.             StartRagdoll()
  197.         else
  198.             StopRagdoll()
  199.         end
  200.     end
  201. })
  202.  
  203. MainTab:CreateToggle({
  204.     Name = "Mine Spam",
  205.     CurrentValue = false,
  206.     Callback = function(v)
  207.         mineEnabled = v
  208.  
  209.         if v then
  210.             StartMines()
  211.         else
  212.             StopMines()
  213.         end
  214.     end
  215. })
  216.  
  217. MainTab:CreateToggle({
  218.     Name = "Mine remover (removes any mine only on your side)",
  219.     CurrentValue = false,
  220.     Callback = function(v)
  221.         mineCleanerEnabled = v
  222.  
  223.         if v then
  224.             StartMineCleaner()
  225.         else
  226.             StopMineCleaner()
  227.         end
  228.     end
  229. })
  230.  
  231. MainTab:CreateSlider({
  232.     Name = "Mine Delay",
  233.     Range = {0, 1},
  234.     Increment = 0.05,
  235.     CurrentValue = 0.005,
  236.     Callback = function(v)
  237.         mineDelay = v
  238.     end
  239. })
  240.  
  241. ---------------------------------------------------------------------
  242. -- CREDITS
  243. ---------------------------------------------------------------------
  244.  
  245. CreditsTab:CreateParagraph({
  246.     Title = "Credits",
  247.     Content = "Script created by Mr_3242\nThanks for using the script!"
  248. })
  249.  
  250. CreditsTab:CreateButton({
  251.     Name = "Copy TikTok Link",
  252.     Callback = function()
  253.         setclipboard("https://www.tiktok.com/@Mr_3242")
  254.         Notify("Copied", "TikTok link copied")
  255.     end
  256. })
  257.  
  258. CreditsTab:CreateButton({
  259.     Name = "Copy YouTube Link",
  260.     Callback = function()
  261.         setclipboard("https://www.youtube.com/@Mr_3242.")
  262.         Notify("Copied", "YouTube link copied")
  263.     end
  264. })
  265.  
  266. CreditsTab:CreateButton({
  267.     Name = "Copy Twitch Link",
  268.     Callback = function()
  269.         setclipboard("https://m.twitch.tv/pantherarmy_42/home")
  270.         Notify("Copied", "Twitch link copied")
  271.     end
  272. })
  273.  
  274. --------------------------------------------------------
  275. -- UNLOAD
  276. --------------------------------------------------------
  277.  
  278. getgenv().KillstreakUnload = function()
  279.     running = false
  280.  
  281.     ragdollEnabled = false
  282.     mineEnabled = false
  283.     mineCleanerEnabled = false
  284.  
  285.     if mineAddedConnection then
  286.         pcall(function()
  287.             mineAddedConnection:Disconnect()
  288.         end)
  289.  
  290.         mineAddedConnection = nil
  291.     end
  292.  
  293.     ragdollLoop = nil
  294.     mineLoop = nil
  295.     mineCleanerLoop = nil
  296.  
  297.     pcall(function()
  298.         Rayfield:Destroy()
  299.     end)
  300.  
  301.     getgenv().KillstreakUnload = nil
  302. end
  303.  
  304. UnloadTab:CreateButton({
  305.     Name = "Unload Script",
  306.     Callback = function()
  307.         getgenv().KillstreakUnload()
  308.     end
  309. })
Tags: delta
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment