Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ space's custom hopperbins ]]--
- local version = 0.1
- local FE = function() if game.Workspace.FilteringEnabled == true then return "enabled" else return "disabled" end end
- local Workspace = game:GetService("Workspace")
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local Keybinds = {
- ["ChangeOption"] = Enum.KeyCode.L,
- ["Action"] = Enum.KeyCode.V,
- }
- SwitchColor = function(target, endcolor)
- target.BackgroundColor3 = Color3.new(endcolor.r, endcolor.g, endcolor.b)
- end
- TweenSize = function(target, size, direction, style, time_, override) target:TweenSize(size, direction, style, time_, override) end
- DrawLine = function() end
- local CopyColor = Color3.new(1, 1, 1)
- local RemoveColor = Color3.new(0.77647058823529, 0, 0)
- local MoveColor = Color3.new(0, 0.56862745098039, 1)
- local LocalPlayer = Players.LocalPlayer
- local Mouse = LocalPlayer:GetMouse()
- local Camera = Workspace.CurrentCamera
- local Mode = 0
- local SB = Instance.new("SelectionBox", Camera) SB.Color3 = Color3.fromRGB(255, 255, 255)
- local Activation = false
- local StorePreviousActivationAnchored = false
- local sc, mf, tf, ml, nl, pl, sl
- function Setup()
- print("\nLoading space's custom hopperbins v"..tostring(version)..". \nFiltering Enabled is "..tostring(FE())..".\n")
- sc = Instance.new("ScreenGui", game.CoreGui)
- sc.Name = "space's custom hopperbins"
- mf = Instance.new("Frame", sc)
- mf.Name = "MainFrame"
- mf.BackgroundTransparency = 1
- mf.Size = UDim2.new(0, 150, 0, 50)
- mf.ClipsDescendants = true
- tf = Instance.new("Frame", mf)
- tf.Name = "TopFrame"
- tf.Position = UDim2.new(0, 0, 0.25, 0)
- tf.Size = UDim2.new(1, 0, 0, 1)
- tf.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- tf.BackgroundTransparency = 0.5
- tf.BorderSizePixel = 0
- ml = Instance.new("TextLabel", mf)
- ml.Name = "ModeLabel"
- ml.Size = UDim2.new(1, 0, 0.25, 0)
- ml.BackgroundTransparency = 1
- ml.Font = Enum.Font.ArialBold
- ml.Text = "Copy"
- ml.TextColor3 = Color3.fromRGB(255, 255, 255)
- ml.TextSize = 9
- ml.TextStrokeTransparency = 1
- nl = Instance.new("TextLabel", mf)
- nl.Name = "NameLabel"
- nl.Position = UDim2.new(0, 0, 0.25, 0)
- nl.Size = UDim2.new(1, 0, 0.25, 0)
- nl.BackgroundTransparency = 1
- nl.Font = Enum.Font.ArialBold
- nl.Text = ""
- nl.TextColor3 = Color3.fromRGB(255, 255, 255)
- nl.TextSize = 9
- nl.TextStrokeTransparency = 1
- pl = Instance.new("TextLabel", mf)
- pl.Name = "PosLabel"
- pl.Position = UDim2.new(0, 0, 0.5, 0)
- pl.Size = UDim2.new(1, 0, 0.25, 0)
- pl.BackgroundTransparency = 1
- pl.Font = Enum.Font.Arial
- pl.Text = ""
- pl.TextColor3 = Color3.fromRGB(255, 255, 255)
- pl.TextSize = 9
- pl.TextStrokeTransparency = 1
- sl = Instance.new("TextLabel", mf)
- sl.Name = "SizeLabel"
- sl.Position = UDim2.new(0, 0, 0.75, 0)
- sl.Size = UDim2.new(1, 0, 0.25, 0)
- sl.BackgroundTransparency = 1
- sl.Font = Enum.Font.Arial
- sl.Text = ""
- sl.TextColor3 = Color3.fromRGB(255, 255, 255)
- sl.TextSize = 9
- sl.TextStrokeTransparency = 1
- end
- Setup()
- Mouse.Move:connect(function()
- local posx, posy, target = Mouse.X, Mouse.Y, Mouse.Target
- mf:TweenPosition(UDim2.new(0, posx - mf.Size.X.Offset - 15, 0, posy), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.1, true)
- if Activation then
- Activation.Position = Vector3.new(math.ceil(Mouse.Hit.p.X), math.ceil(Mouse.Hit.p.Y), math.ceil(Mouse.Hit.p.Z))
- else
- if target then
- nl.Text = target.Name
- pl.Text = tostring(math.ceil(target.Position.X)..", "..math.ceil(target.Position.Y)..", "..math.ceil(target.Position.Z))
- sl.Text = tostring(math.ceil(target.Size.X)..", "..math.ceil(target.Size.Y)..", "..math.ceil(target.Size.Z))
- SB.Adornee = target
- else
- nl.Text = "-"
- pl.Text = "-"
- sl.Text = "-"
- SB.Adornee = nil
- end
- end
- end)
- function Action()
- if Mode == 0 then
- local c = Mouse.target:Clone()
- c.Parent = Mouse.target.Parent
- c.Position = Mouse.target.Position
- elseif Mode == 1 then
- StorePreviousActivationAnchored = Mouse.target.Anchored
- Mouse.target.Anchored = true
- Activation = Mouse.target
- Mouse.TargetFilter = Activation
- else
- Mouse.target:Destroy()
- end
- end
- function ChangeOption()
- if Mode == 0 then
- Mode = 1
- ml.Text = "Move"
- SwitchColor(tf, MoveColor)
- elseif Mode == 1 then
- Mode = 2
- ml.Text = "Remove"
- SwitchColor(tf, RemoveColor)
- else
- Mode = 0
- ml.Text = "Copy"
- SwitchColor(tf, CopyColor)
- end
- end
- UserInputService.InputBegan:connect(function(input)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- if input.KeyCode == Keybinds["ChangeOption"] then
- ChangeOption()
- elseif input.KeyCode == Keybinds["Action"] then
- Action()
- end
- end
- end)
- UserInputService.InputEnded:connect(function(input)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- if input.KeyCode == Keybinds["Action"] then
- Activation.Anchored = StorePreviousActivationAnchored
- Mouse.TargetFilter = nil
- Activation = nil
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement