komitosori

BTOOLS & TP SCRIPT [ROBLOX]

Jan 17th, 2020
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2.  
  3. hum = plr.Character.HumanoidRootPart
  4.  
  5. mouse = plr:GetMouse()
  6.  
  7.  
  8.  
  9. mouse.KeyDown:connect(function(key)
  10.  
  11. if key == "b" then
  12.  
  13. if mouse.Target then
  14.  
  15. hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
  16.  
  17. end
  18.  
  19. end
  20. end)
  21.  
  22. local player = game.Players.LocalPlayer
  23. local mouse = player:GetMouse()
  24.  
  25. -- Objects
  26.  
  27. local ScreenGui = Instance.new("ScreenGui")
  28. local TextButton = Instance.new("TextButton")
  29. local On = Instance.new("StringValue")
  30.  
  31. -- Properties
  32.  
  33. ScreenGui.Parent = player.PlayerGui
  34.  
  35. TextButton.Parent = ScreenGui
  36. TextButton.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  37. TextButton.BorderSizePixel = 0
  38. TextButton.Position = UDim2.new(0, 0, 0.455743879, 0)
  39. TextButton.Size = UDim2.new(0, 186, 0, 35)
  40. TextButton.Font = Enum.Font.SourceSans
  41. TextButton.Text = "Btools (Off)"
  42. TextButton.TextColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  43. TextButton.TextScaled = true
  44. TextButton.TextSize = 14
  45. TextButton.TextWrapped = true
  46.  
  47.  
  48. On.Parent = TextButton
  49. On.Value = "Off"
  50.  
  51. -- Scripts
  52.  
  53. TextButton.MouseButton1Up:Connect(function()
  54. if On.Value == "Off" then
  55. On.Value = "On"
  56. TextButton.Text = "Btools (On)"
  57. else
  58. On.Value = "Off"
  59. TextButton.Text = "Btools (Off)"
  60. end
  61. end)
  62.  
  63. mouse.Button1Up:Connect(function()
  64. if On.Value == "Off" then
  65. print('btools off')
  66. else
  67. if mouse.Target.Locked == true then
  68. mouse.Target:Destroy()
  69. else
  70. mouse.Target:Destroy()
  71. end
  72. end
  73. end)
Add Comment
Please, Sign In to add comment