Advertisement
Pro_Pastebin_Person1

Untitled

Apr 22nd, 2020
613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.23 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local mouse = player:GetMouse()
  3.  
  4.  -- Objects
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local TextButton = Instance.new("TextButton")
  8. local On = Instance.new("StringValue")
  9.  
  10. -- Properties
  11.  
  12. ScreenGui.Parent = player.PlayerGui
  13.  
  14. TextButton.Parent = ScreenGui
  15. TextButton.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  16. TextButton.BackgroundTransparency = 1.000
  17. TextButton.BorderSizePixel = 0
  18. TextButton.Position = UDim2.new(0, 0, 0.455743879, 0)
  19. TextButton.Size = UDim2.new(0, 186, 0, 35)
  20. TextButton.Font = Enum.Font.GothamBold
  21. TextButton.Text = "Btools (Off)"
  22. TextButton.TextColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  23. TextButton.TextScaled = true
  24. TextButton.TextSize = 14
  25. TextButton.TextWrapped = true
  26.  
  27.  
  28. On.Parent = TextButton
  29. On.Value = "Off"
  30.  
  31. -- Scripts
  32.  
  33. TextButton.MouseButton1Up:Connect(function()
  34.     if On.Value == "Off" then
  35.         On.Value = "On"
  36.         TextButton.Text = "Btools (On)"
  37.     else
  38.         On.Value = "Off"
  39.         TextButton.Text = "Btools (Off)"
  40.     end
  41. end)
  42.  
  43. mouse.Button1Up:Connect(function()
  44.     if On.Value == "Off" then
  45.         print('btools off')
  46.     else
  47.         if mouse.Target.Locked == true then
  48.             mouse.Target:Destroy()
  49.         else
  50.             mouse.Target:Destroy()
  51.         end
  52.     end
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement