Advertisement
ExecutorForALLdomain

Edit Obby Bypass

Jun 19th, 2024 (edited)
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local UICorner = Instance.new("UICorner")
  9. local Frame_2 = Instance.new("Frame")
  10. local UICorner_2 = Instance.new("UICorner")
  11. local TextButton = Instance.new("TextButton")
  12. local UICorner_3 = Instance.new("UICorner")
  13.  
  14. --Properties:
  15.  
  16. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  17.  
  18. Frame.Parent = ScreenGui
  19. Frame.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  20. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  21. Frame.BorderSizePixel = 0
  22. Frame.Position = UDim2.new(0.0891622081, 0, 0.345161289, 0)
  23. Frame.Size = UDim2.new(0, 275, 0, 83)
  24.  
  25. UICorner.Parent = Frame
  26.  
  27. Frame_2.Parent = Frame
  28. Frame_2.BackgroundColor3 = Color3.fromRGB(112, 255, 35)
  29. Frame_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  30. Frame_2.BorderSizePixel = 0
  31. Frame_2.Position = UDim2.new(0.121107295, 0, 0.129411772, 0)
  32. Frame_2.Size = UDim2.new(0, 215, 0, 60)
  33.  
  34. UICorner_2.Parent = Frame_2
  35.  
  36. TextButton.Parent = Frame_2
  37. TextButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  38. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  39. TextButton.BorderSizePixel = 0
  40. TextButton.Position = UDim2.new(0.0426600911, 0, 0.0870966762, 0)
  41. TextButton.Size = UDim2.new(0, 200, 0, 50)
  42. TextButton.Font = Enum.Font.FredokaOne
  43. TextButton.Text = "Edit Bypass"
  44. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  45. TextButton.TextSize = 29.000
  46.  
  47. UICorner_3.Parent = TextButton
  48.  
  49. -- Scripts:
  50.  
  51. local function TFSQWYG_fake_script() -- TextButton.LocalScript
  52. local script = Instance.new('LocalScript', TextButton)
  53.  
  54. function a()
  55. game.Players.LocalPlayer.PlayerGui.CanEdit.Value = true
  56. end
  57. b= script.Parent
  58. b.MouseButton1Click:Connect(a)
  59. end
  60. coroutine.wrap(TFSQWYG_fake_script)()
  61. local function KGNAEI_fake_script() -- Frame.LocalScript
  62. local script = Instance.new('LocalScript', Frame)
  63.  
  64. local UserInputService = game:GetService("UserInputService")
  65.  
  66. local gui = script.Parent
  67.  
  68. local dragging
  69. local dragInput
  70. local dragStart
  71. local startPos
  72.  
  73. local function update(input)
  74. local delta = input.Position - dragStart
  75. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  76. end
  77.  
  78. gui.InputBegan:Connect(function(input)
  79. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  80. dragging = true
  81. dragStart = input.Position
  82. startPos = gui.Position
  83.  
  84. input.Changed:Connect(function()
  85. if input.UserInputState == Enum.UserInputState.End then
  86. dragging = false
  87. end
  88. end)
  89. end
  90. end)
  91.  
  92. gui.InputChanged:Connect(function(input)
  93. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  94. dragInput = input
  95. end
  96. end)
  97.  
  98. UserInputService.InputChanged:Connect(function(input)
  99. if input == dragInput and dragging then
  100. update(input)
  101. end
  102. end)
  103. end
  104. coroutine.wrap(KGNAEI_fake_script)()
  105.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement