Advertisement
SnekeNice

SpeedRun4Gui

Feb 16th, 2020
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.52 KB | None | 0 0
  1. -- Another gui lol
  2. -- Gui to Lua
  3. -- Version: 3.2
  4.  
  5. -- Instances:
  6.  
  7. local ScreenGui = Instance.new("ScreenGui")
  8. local MainFrame = Instance.new("Frame")
  9. local auto = Instance.new("TextButton")
  10. local TextLabel = Instance.new("TextLabel")
  11. local ImageButton = Instance.new("ImageButton")
  12.  
  13. --Properties:
  14.  
  15. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  16. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  17.  
  18. MainFrame.Name = "MainFrame"
  19. MainFrame.Parent = ScreenGui
  20. MainFrame.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  21. MainFrame.BorderColor3 = Color3.fromRGB(50, 194, 207)
  22. MainFrame.BorderSizePixel = 3
  23. MainFrame.Position = UDim2.new(0.172067896, 0, 0.244509518, 0)
  24. MainFrame.Size = UDim2.new(0, 198, 0, 130)
  25.  
  26. auto.Name = "auto"
  27. auto.Parent = MainFrame
  28. auto.BackgroundColor3 = Color3.fromRGB(94, 94, 94)
  29. auto.BorderColor3 = Color3.fromRGB(113, 177, 222)
  30. auto.BorderSizePixel = 3
  31. auto.Position = UDim2.new(0.0620155036, 0, 0.384615391, 0)
  32. auto.Size = UDim2.new(0, 84, 0, 50)
  33. auto.Font = Enum.Font.SourceSans
  34. auto.Text = "clap the game"
  35. auto.TextColor3 = Color3.fromRGB(0, 0, 0)
  36. auto.TextSize = 17.000
  37.  
  38. TextLabel.Parent = MainFrame
  39. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  40. TextLabel.BackgroundTransparency = 2.000
  41. TextLabel.Position = UDim2.new(0.212121218, 0, 0, 0)
  42. TextLabel.Size = UDim2.new(0, 131, 0, 50)
  43. TextLabel.Font = Enum.Font.SciFi
  44. TextLabel.Text = "SpeedRun4 destroyer"
  45. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  46. TextLabel.TextSize = 17.000
  47.  
  48. ImageButton.Parent = MainFrame
  49. ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  50. ImageButton.Position = UDim2.new(0, 0, 1, 0)
  51. ImageButton.Size = UDim2.new(0, 198, 0, 69)
  52. ImageButton.Image = "rbxassetid://1936334640"
  53.  
  54. -- Scripts:
  55.  
  56. local function GLBSIM_fake_script() -- MainFrame.LocalScript
  57.     local script = Instance.new('LocalScript', MainFrame)
  58.  
  59.     script.Parent.Draggable = true
  60.     script.Parent.Active = true
  61.     script.Parent.Visible = true
  62. end
  63. coroutine.wrap(GLBSIM_fake_script)()
  64. local function FEKRO_fake_script() -- auto.LocalScript
  65.     local script = Instance.new('LocalScript', auto)
  66.  
  67.     local function onClick()
  68.         local a = false
  69.         spawn(function()
  70.             while true do
  71.                 game.ReplicatedStorage.BeatLevel:FireServer("BeatLevel")
  72.                 wait()
  73.             end
  74.         end)
  75.            spawn(function()
  76.             repeat
  77.                 wait(5)
  78.                 game.ReplicatedStorage.BackToLobby:FireServer("BackToLobby")
  79.             until a == true
  80.         end)
  81.     end
  82.    
  83.     script.Parent.MouseButton1Click:Connect(onClick)
  84. end
  85. coroutine.wrap(FEKRO_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement