Advertisement
Meliodas0_0

btools

Mar 12th, 2020
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.26 KB | None | 0 0
  1. wait(1.2)
  2. game.StarterGui:SetCore("SendNotification", {
  3. Title = "Unjailbreak";
  4. Text = "-R to change mode/n - E to perform an action";
  5. Icon = "rbxassetid://1101478778";
  6. Duration = 25;
  7. })
  8. local version = 0.1
  9. local FE = function() if game.Workspace.FilteringEnabled == true then return "enabled" else return "disabled" end end
  10.  
  11. local Workspace = game:GetService("Workspace")
  12. local Players = game:GetService("Players")
  13. local UserInputService = game:GetService("UserInputService")
  14. local RunService = game:GetService("RunService")
  15.  
  16. local Keybinds = {
  17. ["ChangeOption"] = Enum.KeyCode.R,
  18. ["Action"] = Enum.KeyCode.E,
  19. }
  20.  
  21. SwitchColor = function(target, endcolor)
  22. target.BackgroundColor3 = Color3.new(endcolor.r, endcolor.g, endcolor.b)
  23. end
  24. TweenSize = function(target, size, direction, style, time_, override) target:TweenSize(size, direction, style, time_, override) end
  25. DrawLine = function() end
  26.  
  27. local CopyColor = Color3.new(1, 1, 1)
  28. local RemoveColor = Color3.new(0.77647058823529, 0, 0)
  29. local MoveColor = Color3.new(0, 0.56862745098039, 1)
  30.  
  31. local LocalPlayer = Players.LocalPlayer
  32. local Mouse = LocalPlayer:GetMouse()
  33. local Camera = Workspace.CurrentCamera
  34. local Mode = 0
  35. local SB = Instance.new("SelectionBox", Camera) SB.Color3 = Color3.fromRGB(255, 255, 255)
  36. local Activation = false
  37. local StorePreviousActivationAnchored = false
  38.  
  39. local sc, mf, tf, ml, nl, pl, sl
  40.  
  41. function Setup()
  42. print("\nLoading space's custom hopperbins v"..tostring(version)..". \nFiltering Enabled is "..tostring(FE())..".\n")
  43. sc = Instance.new("ScreenGui", game.CoreGui)
  44. sc.Name = "space's custom hopperbins"
  45. mf = Instance.new("Frame", sc)
  46. mf.Name = "MainFrame"
  47. mf.BackgroundTransparency = 1
  48. mf.Size = UDim2.new(0, 150, 0, 50)
  49. mf.ClipsDescendants = true
  50. tf = Instance.new("Frame", mf)
  51. tf.Name = "TopFrame"
  52. tf.Position = UDim2.new(0, 0, 0.25, 0)
  53. tf.Size = UDim2.new(1, 0, 0, 1)
  54. tf.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  55. tf.BackgroundTransparency = 0.5
  56. tf.BorderSizePixel = 0
  57. ml = Instance.new("TextLabel", mf)
  58. ml.Name = "ModeLabel"
  59. ml.Size = UDim2.new(1, 0, 0.25, 0)
  60. ml.BackgroundTransparency = 1
  61. ml.Font = Enum.Font.ArialBold
  62. ml.Text = "Copy"
  63. ml.TextColor3 = Color3.fromRGB(255, 255, 255)
  64. ml.TextSize = 9
  65. ml.TextStrokeTransparency = 1
  66. nl = Instance.new("TextLabel", mf)
  67. nl.Name = "NameLabel"
  68. nl.Position = UDim2.new(0, 0, 0.25, 0)
  69. nl.Size = UDim2.new(1, 0, 0.25, 0)
  70. nl.BackgroundTransparency = 1
  71. nl.Font = Enum.Font.ArialBold
  72. nl.Text = ""
  73. nl.TextColor3 = Color3.fromRGB(255, 255, 255)
  74. nl.TextSize = 9
  75. nl.TextStrokeTransparency = 1
  76. pl = Instance.new("TextLabel", mf)
  77. pl.Name = "PosLabel"
  78. pl.Position = UDim2.new(0, 0, 0.5, 0)
  79. pl.Size = UDim2.new(1, 0, 0.25, 0)
  80. pl.BackgroundTransparency = 1
  81. pl.Font = Enum.Font.Arial
  82. pl.Text = ""
  83. pl.TextColor3 = Color3.fromRGB(255, 255, 255)
  84. pl.TextSize = 9
  85. pl.TextStrokeTransparency = 1
  86. sl = Instance.new("TextLabel", mf)
  87. sl.Name = "SizeLabel"
  88. sl.Position = UDim2.new(0, 0, 0.75, 0)
  89. sl.Size = UDim2.new(1, 0, 0.25, 0)
  90. sl.BackgroundTransparency = 1
  91. sl.Font = Enum.Font.Arial
  92. sl.Text = ""
  93. sl.TextColor3 = Color3.fromRGB(255, 255, 255)
  94. sl.TextSize = 9
  95. sl.TextStrokeTransparency = 1
  96. end
  97. Setup()
  98.  
  99. Mouse.Move:connect(function()
  100. local posx, posy, target = Mouse.X, Mouse.Y, Mouse.Target
  101. mf:TweenPosition(UDim2.new(0, posx - mf.Size.X.Offset - 15, 0, posy), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.1, true)
  102. if Activation then
  103. Activation.Position = Vector3.new(math.ceil(Mouse.Hit.p.X), math.ceil(Mouse.Hit.p.Y), math.ceil(Mouse.Hit.p.Z))
  104. else
  105. if target then
  106. nl.Text = target.Name
  107. pl.Text = tostring(math.ceil(target.Position.X)..", "..math.ceil(target.Position.Y)..", "..math.ceil(target.Position.Z))
  108. sl.Text = tostring(math.ceil(target.Size.X)..", "..math.ceil(target.Size.Y)..", "..math.ceil(target.Size.Z))
  109. SB.Adornee = target
  110. else
  111. nl.Text = "-"
  112. pl.Text = "-"
  113. sl.Text = "-"
  114. SB.Adornee = nil
  115. end
  116. end
  117. end)
  118.  
  119. function Action()
  120. if Mode == 0 then
  121. local c = Mouse.target:Clone()
  122. c.Parent = Mouse.target.Parent
  123. c.Position = Mouse.target.Position
  124. elseif Mode == 1 then
  125. StorePreviousActivationAnchored = Mouse.target.Anchored
  126. Mouse.target.Anchored = true
  127. Activation = Mouse.target
  128. Mouse.TargetFilter = Activation
  129. else
  130. Mouse.target:Destroy()
  131. end
  132. end
  133.  
  134. function ChangeOption()
  135. if Mode == 0 then
  136. Mode = 1
  137. ml.Text = "Move"
  138. SwitchColor(tf, MoveColor)
  139. elseif Mode == 1 then
  140. Mode = 2
  141. ml.Text = "Remove"
  142. SwitchColor(tf, RemoveColor)
  143. else
  144. Mode = 0
  145. ml.Text = "Copy"
  146. SwitchColor(tf, CopyColor)
  147. end
  148. end
  149.  
  150. UserInputService.InputBegan:connect(function(input)
  151. if input.UserInputType == Enum.UserInputType.Keyboard then
  152. if input.KeyCode == Keybinds["ChangeOption"] then
  153. ChangeOption()
  154. elseif input.KeyCode == Keybinds["Action"] then
  155. Action()
  156. end
  157. end
  158. end)
  159.  
  160. UserInputService.InputEnded:connect(function(input)
  161. if input.UserInputType == Enum.UserInputType.Keyboard then
  162. if input.KeyCode == Keybinds["Action"] then
  163. Activation.Anchored = StorePreviousActivationAnchored
  164. Mouse.TargetFilter = nil
  165. Activation = nil
  166. end
  167. end
  168. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement