Advertisement
WeDoScripts

Btools

Feb 3rd, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1.  
  2. local player = game.Players.LocalPlayer
  3. local mouse = player:GetMouse()
  4.  
  5. -- Objects
  6.  
  7. local ScreenGui = Instance.new("ScreenGui")
  8. local TextButton = Instance.new("TextButton")
  9. local On = Instance.new("StringValue")
  10.  
  11. -- Properties
  12.  
  13. ScreenGui.Parent = player.PlayerGui
  14.  
  15. TextButton.Parent = ScreenGui
  16. TextButton.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  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.SourceSans
  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