Advertisement
2AreYouMental110

99% lose obby into a 99% win obby

Oct 17th, 2023 (edited)
1,719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.01 KB | None | 0 0
  1. --https://www.roblox.com/games/13569014409/UGC-99-Lose-Obby
  2. -- DO NOT USE FLY HACKS, YOU WILL GET BANNED IF YOU DO NOT TOUCH ALL OF THE GLASS
  3. local copyorder = true -- copies the order of the glass bridge
  4. local length = 1 -- if increased says it longer (example if set to 2 then will say "RI")
  5. local folder = game.CoreGui:FindFirstChild("boxhandles")
  6. if not folder then
  7.     folder = Instance.new("Folder")
  8.     folder.Name = "boxhandles"
  9.     folder.Parent = game.CoreGui
  10. else
  11.     folder:ClearAllChildren()
  12. end
  13. local glasses = nil
  14. local glasses2 = nil
  15. local plrs = {}
  16. function doglass()
  17.     glasses = {}
  18.     glasses2 = {}
  19.     for i,v in pairs(workspace.Glass:GetChildren()) do
  20.         if v.Breaks.Value == true then
  21.             local boxhandle = Instance.new("BoxHandleAdornment")
  22.             boxhandle.AlwaysOnTop = true
  23.             boxhandle.Adornee = v
  24.             boxhandle.ZIndex = 999
  25.             boxhandle.Size = v.Size + Vector3.new(0.1,0.1,0.1)
  26.             boxhandle.Color3 = Color3.fromRGB(0,0,0)
  27.             boxhandle.Parent = folder
  28.         elseif v.Breaks.Value == false then
  29.             firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart,v,0)
  30.             table.insert(glasses,v.Row.Value)
  31.             glasses2[v.Row.Value] = v
  32.         end
  33.     end
  34.     table.sort(glasses)
  35.     local lrstring = ""
  36.     for i,v in pairs(glasses) do
  37.         v = glasses2[v].Side.Value
  38.         v = string.upper(v)
  39.         lrstring = lrstring..string.sub(v,1,length)
  40.         if length > 1 then
  41.             lrstring = lrstring.." "
  42.         end
  43.     end
  44.     print(lrstring)
  45.     if copyorder then setclipboard(lrstring) end
  46. end
  47. doglass()
  48. local lib = loadstring(game:HttpGet("https://pastebin.com/raw/A2Wf3WVh"))()
  49. lib.makelib("99% Win Obby")
  50. local maintab = lib.maketab("Main")
  51. local plrsel = nil
  52.  
  53. lib.makebutton("Update Glass",maintab,doglass)
  54.  
  55. lib.makebutton("Win (can't win twice or more in one server)",maintab,function()
  56.     for i2,v in pairs(glasses) do
  57.         v = glasses2[v]
  58.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position + Vector3.new(0,2,0))
  59.         firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart,v,0)
  60.         wait(10*((1/4)*2/2)/10) -- haha lol
  61.         print(i)
  62.     end
  63.     firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart,workspace.Bases.FinishBase,0)
  64.     game:GetService("StarterGui"):SetCore("SendNotification",{Title="Done",Text="Done"})
  65. end)
  66. --[[ not working :/
  67. local plrseldd = lib.makedropdown("Select Player",maintab,{"updating"},function(plr)
  68.     plrsel = plr
  69. end)
  70.  
  71. lib.makebutton("Copy where to go (select player)",maintab,function()
  72.     if plrsel and game.Players:FindFirstChild(plrsel) and game.Players[plrsel].Character and game.Players[plrsel].Character:FindFirstChild("HumanoidRootPart") then
  73.         local plr = game.Players[plrsel]
  74.         local pos = plr.Character.HumanoidRootPart.Position
  75.         local wg = nil
  76.         local closest = nil
  77.         for i,v in pairs(workspace.Glass:GetChildren()) do
  78.             if not closest or (pos - v.Position).Magnitude < closest then
  79.                 wg = v
  80.                 closest = (pos - v.Position).Magnitude
  81.             end
  82.         end
  83.         pos = wg.Position
  84.         wg = nil
  85.         closest = nil
  86.         for i,v in pairs(workspace.Glass:GetChildren()) do
  87.             if not closest or (pos - (v.Position - Vector3.new(17,0,0))).Magnitude < closest then
  88.                 wg = v
  89.                 closest = (pos - (v.Position - Vector3.new(17,0,0))).Magnitude
  90.             end
  91.         end
  92.         setclipboard(plr.DisplayName.." goto the "..wg.Side.Value)
  93.     end
  94. end)
  95. for i,plr in pairs(game.Players:GetPlayers()) do
  96.     plrs[plr.Name] = plr.Name
  97.     lib.updatedropdown(plrseldd,plrs)
  98. end
  99. game.Players.PlayerAdded:Connect(function(plr)
  100.     plrs[plr.Name] = plr.Name
  101.     lib.updatedropdown(plrseldd,plrs)
  102. end)
  103. game.Players.PlayerRemoved:Connect(function(plr)
  104.     plrs[plr.Name] = plr.Name
  105.     lib.updatedropdown(plrseldd,plrs)
  106. end)]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement