AbstractPoo

Smart Gui v1

Dec 7th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.56 KB | None | 0 0
  1. -- Instances:
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local FrameObject = Instance.new("Frame")
  5. local TextButton = Instance.new("TextButton")
  6. local TextButton_2 = Instance.new("TextButton")
  7. local TextButton_3 = Instance.new("TextButton")
  8. local TextButton_4 = Instance.new("TextButton")
  9. local TextButton_5 = Instance.new("TextButton")
  10. local TextLabel = Instance.new("TextLabel")
  11. local TextLabel_2 = Instance.new("TextLabel")
  12.  
  13. --Properties:
  14.  
  15. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  16. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  17.  
  18. FrameObject.Name = "FrameObject"
  19. FrameObject.Parent = ScreenGui
  20. FrameObject.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  21. FrameObject.Position = UDim2.new(0.304421782, 0, 0.294392496, 0)
  22. FrameObject.Size = UDim2.new(0, 568, 0, 295)
  23.  
  24. TextButton.Parent = FrameObject
  25. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  26. TextButton.Position = UDim2.new(0.0316662341, 0, 0.102365479, 0)
  27. TextButton.Size = UDim2.new(0, 152, 0, 21)
  28. TextButton.Font = Enum.Font.SourceSans
  29. TextButton.Text = "Normal (16)"
  30. TextButton.TextColor3 = Color3.new(0, 0, 0)
  31. TextButton.TextSize = 14
  32.  
  33. TextButton_2.Parent = FrameObject
  34. TextButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
  35. TextButton_2.Position = UDim2.new(0.0316662341, 0, 0.485416353, 0)
  36. TextButton_2.Size = UDim2.new(0, 152, 0, 21)
  37. TextButton_2.Font = Enum.Font.SourceSans
  38. TextButton_2.Text = "500"
  39. TextButton_2.TextColor3 = Color3.new(0, 0, 0)
  40. TextButton_2.TextSize = 14
  41.  
  42. TextButton_3.Parent = FrameObject
  43. TextButton_3.BackgroundColor3 = Color3.new(1, 1, 1)
  44. TextButton_3.Position = UDim2.new(0.0316662341, 0, 0.383721411, 0)
  45. TextButton_3.Size = UDim2.new(0, 152, 0, 21)
  46. TextButton_3.Font = Enum.Font.SourceSans
  47. TextButton_3.Text = "200"
  48. TextButton_3.TextColor3 = Color3.new(0, 0, 0)
  49. TextButton_3.TextSize = 14
  50.  
  51. TextButton_4.Parent = FrameObject
  52. TextButton_4.BackgroundColor3 = Color3.new(1, 1, 1)
  53. TextButton_4.Position = UDim2.new(0.0316662341, 0, 0.28880614, 0)
  54. TextButton_4.Size = UDim2.new(0, 152, 0, 21)
  55. TextButton_4.Font = Enum.Font.SourceSans
  56. TextButton_4.Text = "100"
  57. TextButton_4.TextColor3 = Color3.new(0, 0, 0)
  58. TextButton_4.TextSize = 14
  59.  
  60. TextButton_5.Parent = FrameObject
  61. TextButton_5.BackgroundColor3 = Color3.new(1, 1, 1)
  62. TextButton_5.Position = UDim2.new(0.0316662341, 0, 0.193890899, 0)
  63. TextButton_5.Size = UDim2.new(0, 152, 0, 21)
  64. TextButton_5.Font = Enum.Font.SourceSans
  65. TextButton_5.Text = "50"
  66. TextButton_5.TextColor3 = Color3.new(0, 0, 0)
  67. TextButton_5.TextSize = 14
  68.  
  69. TextLabel.Parent = FrameObject
  70. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  71. TextLabel.Position = UDim2.new(0.0316662304, 0, 0, 0)
  72. TextLabel.Size = UDim2.new(0, 151, 0, 24)
  73. TextLabel.Font = Enum.Font.SourceSans
  74. TextLabel.Text = "Walkspeed"
  75. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  76. TextLabel.TextSize = 14
  77.  
  78. TextLabel_2.Parent = FrameObject
  79. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  80. TextLabel_2.Position = UDim2.new(0.730633795, 0, 0.922033906, 0)
  81. TextLabel_2.Size = UDim2.new(0, 153, 0, 23)
  82. TextLabel_2.Font = Enum.Font.SourceSans
  83. TextLabel_2.Text = "Toggle = m made by AbstractPoo"
  84. TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
  85. TextLabel_2.TextSize = 14
  86.  
  87. -- Scripts:
  88.  
  89. local function WYZN_fake_script() -- TextButton.LocalScript
  90.     local script = Instance.new('LocalScript', TextButton)
  91.  
  92.     local button = script.Parent
  93.      
  94.     local function onButtonActivated()
  95.            
  96.             game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = 16
  97.    
  98.     end
  99.      
  100.     button.Activated:Connect(onButtonActivated)
  101. end
  102. coroutine.wrap(WYZN_fake_script)()
  103. local function EXGW_fake_script() -- TextButton_2.LocalScript
  104.     local script = Instance.new('LocalScript', TextButton_2)
  105.  
  106.     local button = script.Parent
  107.      
  108.     local function onButtonActivated()
  109.            
  110.             game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = 500
  111.    
  112.     end
  113.      
  114.     button.Activated:Connect(onButtonActivated)
  115. end
  116. coroutine.wrap(EXGW_fake_script)()
  117. local function FPVDV_fake_script() -- TextButton_3.LocalScript
  118.     local script = Instance.new('LocalScript', TextButton_3)
  119.  
  120.     local button = script.Parent
  121.      
  122.     local function onButtonActivated()
  123.            
  124.             game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = 200
  125.    
  126.     end
  127.      
  128.     button.Activated:Connect(onButtonActivated)
  129. end
  130. coroutine.wrap(FPVDV_fake_script)()
  131. local function JHXCFE_fake_script() -- TextButton_4.LocalScript
  132.     local script = Instance.new('LocalScript', TextButton_4)
  133.  
  134.     local button = script.Parent
  135.      
  136.     local function onButtonActivated()
  137.            
  138.             game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = 100
  139.    
  140.     end
  141.      
  142.     button.Activated:Connect(onButtonActivated)
  143. end
  144. coroutine.wrap(JHXCFE_fake_script)()
  145. local function DQUWPP_fake_script() -- TextButton_5.LocalScript
  146.     local script = Instance.new('LocalScript', TextButton_5)
  147.  
  148.     local button = script.Parent
  149.      
  150.     local function onButtonActivated()
  151.            
  152.             game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = 50
  153.    
  154.     end
  155.      
  156.     button.Activated:Connect(onButtonActivated)
  157. end
  158. coroutine.wrap(DQUWPP_fake_script)()
  159. local function WMIYPT_fake_script() -- ScreenGui.LocalScript
  160.     local script = Instance.new('LocalScript', ScreenGui)
  161.  
  162.     frame = script.Parent.FrameObject
  163.     frame.Draggable = true
  164.     frame.Active = true
  165.     frame.Selectable = true
  166.    
  167.    
  168. end
  169. coroutine.wrap(WMIYPT_fake_script)()
  170. local function MBOMCFN_fake_script() -- ScreenGui.LocalScript
  171.     local script = Instance.new('LocalScript', ScreenGui)
  172.  
  173.     --[[local FrameObject = script.Parent.FrameObject
  174.     local Open = false
  175.    
  176.     local PositionClosed = UDim2.new(0.304, 0,-1.294, 0)
  177.     local PositionOpened = UDim2.new(0.304, 0,0.294, 0)
  178.    
  179.     local UserInputService = game:GetService("UserInputService")
  180.     UserInputService.InputBegan:connect(function(keyCode)
  181.         if keyCode.keyCode == Enum.KeyCode.k then
  182.             if Open then
  183.                 FrameObject:TweenPosition(PositionClosed)
  184.                 Open = false
  185.             else
  186.                 Open = true
  187.                 FrameObject:TweenPosition(PositionOpened)
  188.             end
  189.         end
  190.     end)]]
  191.    
  192.     local FrameObject = script.Parent.FrameObject
  193.     local visible = true
  194.    
  195.     local PositionClosed = UDim2.new{0.304, 0,-1.294, 0}
  196.     local PostionOpen = UDim2.new{0.304, 0,0.294, 0}
  197.    
  198.     local UserInputService = game:GetService("UserInputService")
  199.    
  200.     UserInputService.InputBegan:connect(function(keyCode)
  201.         if keyCode.keyCode == Enum.KeyCode.M and visible == true then
  202.             FrameObject.Visible = false
  203.             visible = false
  204.         else if keyCode.keyCode == Enum.KeyCode.M and visible == false then
  205.             FrameObject.Visible = true
  206.             visible = true
  207.         end
  208.         end
  209.        
  210.     end)
  211. end
  212. coroutine.wrap(MBOMCFN_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment