Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("ImageLabel")
- local Frame_2 = Instance.new("Frame")
- local UIGridLayout = Instance.new("UIGridLayout")
- ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
- repStrg = game:GetService("ReplicatedStorage")
- plrs = game:GetService("Players")
- resources = repStrg.Resources
- remotes = resources.Remotes
- local destroy = remotes.DestroyItem
- local spawn = remotes.MakeItem
- local blockChatr = remotes.BuildingChat
- function GetDescendants(parent,callback)
- for i,v in pairs(parent:GetDescendants())do
- callback(v)
- end
- end
- function GetChildren(parent,callback)
- for i,v in pairs(parent:GetChildren())do
- callback(v)
- end
- end
- function DestroyItem(item)
- destroy:FireServer(item)
- end
- function spawnItem(item,Offset)
- spawn:FireServer(item,plrs.LocalPlayer.Character.Head.Position + Offset)
- end
- function blockChat(block,message)
- blockChatr:FireServer(block,message)
- end
- function PlayerChat(plr,message)
- blockChatr:FireServer(plrs[plr].Character.Head,message)
- end
- function printDesc(parent)
- for i,v in pairs(parent:GetDescendants())do
- print(v.Name)
- end
- end
- function printChild(parent)
- for i,v in pairs(parent:GetChildren())do
- print(v.Name)
- end
- end
- function ClearChildren(parent)
- for i,v in pairs(parent:GetDescendants())do
- DestroyItem(v)
- end
- end
- function DeleteRemotes()
- for i,v in pairs(game:GetDescendants())do
- if v.Name ~= "DestroyItem" and v:IsA("RemoteEvent") then
- DestroyItem(v)
- end
- end
- end
- function everyoneChat(message)
- for i,v in pairs(game.Players:GetPlayers())do
- PlayerChat(v.Name,message)
- end
- end
- Frame.Name = "Frame"
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BackgroundTransparency = 1
- Frame.Position = UDim2.new(0.217255712, 0, 0.335456461, 0)
- Frame.Size = UDim2.new(0, 433, 0, 256)
- Frame.Image = "rbxassetid://3570695787"
- Frame.ImageColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Frame.ScaleType = Enum.ScaleType.Slice
- Frame.SliceCenter = Rect.new(100, 100, 100, 100)
- Frame.SliceScale = 0.1
- Frame_2.Parent = Frame
- Frame_2.Size = UDim2.new(0, 436,0, 230)
- Frame_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame_2.BackgroundTransparency = 1
- Frame_2.Position = UDim2.new(0.0180180185, 0, 0.0336134471, 0)
- UIGridLayout.Parent = Frame_2
- UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout.CellSize = UDim2.new(0, 100, 0, 30)
- local Button = Instance.new("Frame")
- local Input = Instance.new("TextBox")
- Button.Name = "Button"
- Button.Parent = Frame_2
- Button.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- Button.BorderSizePixel = 0
- Input.Name = "Button"
- Input.Parent = Button
- Input.BackgroundColor3 = Color3.new(1, 1, 1)
- Input.BackgroundTransparency = 1
- Input.Size = UDim2.new(1, 0, 1, 0)
- Input.Font = Enum.Font.SourceSans
- Input.Text = ""
- Input.PlaceholderText = "Input"
- Input.TextColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- Input.TextSize = 20
- Input.TextWrapped = true
- Input.TextScaled = true
- local Button2 = Instance.new("Frame")
- local Input2 = Instance.new("TextBox")
- Button2.Name = "Button"
- Button2.Parent = Frame_2
- Button2.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- Button2.BorderSizePixel = 0
- Input2.Name = "Button"
- Input2.Parent = Button2
- Input2.BackgroundColor3 = Color3.new(1, 1, 1)
- Input2.BackgroundTransparency = 1
- Input2.Size = UDim2.new(1, 0, 1, 0)
- Input2.Font = Enum.Font.SourceSans
- Input2.Text = ""
- Input2.PlaceholderText = "Input2"
- Input2.TextColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- Input2.TextSize = 20
- Input2.TextWrapped = true
- Input2.TextScaled = true
- function Button(Text,CallBack)
- local Button3 = Instance.new("Frame")
- local Button_3 = Instance.new("TextButton")
- Button3.Name = "Button"
- Button3.Parent = Frame_2
- Button3.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- Button3.BorderSizePixel = 0
- Button_3.Name = "Button"
- Button_3.Parent = Button3
- Button_3.BackgroundColor3 = Color3.new(1, 1, 1)
- Button_3.BackgroundTransparency = 1
- Button_3.Size = UDim2.new(1, 0, 1, 0)
- Button_3.Font = Enum.Font.SourceSans
- Button_3.Text = Text
- Button_3.TextColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- Button_3.TextSize = 20
- Button_3.TextWrapped = true
- Button_3.TextScaled = true
- Button_3.MouseButton1Click:Connect(CallBack)
- Button_3.MouseEnter:Connect(function()
- Button3.BackgroundColor3 = Color3.fromRGB(20,20,20)
- end)
- Button_3.MouseLeave:Connect(function()
- Button3.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- end)
- Button_3.MouseButton1Click:Connect(function()
- Button3.BackgroundColor3 = Color3.fromRGB(150,150,150)
- wait()
- Button3.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- end)
- end
- Button("Delete Workspace",function()
- ClearChildren(workspace)
- end)
- Button("Delete Remotes",function()
- DeleteRemotes()
- end)
- Button("Kick All",function()
- for i,v in pairs(game.Players:GetPlayers()) do
- DestroyItem(v)
- end
- end)
- Button("Chat All",function()
- everyoneChat(Input.Text)
- end)
- Button("Chat Bricks",function()
- GetDescendants(workspace,function(brick)
- blockChat(brick,Input.Text)
- end)
- end)
- Button("Player Chat",function()
- PlayerChat(Input.Text,Input2.Text)
- end)
- Button("Spawn Item",function()
- spawnItem(Input.Text,Vector3.new(Input2.Text))
- end)
- local library = {}
- function Tween(obj, tinfo, goal)
- game:GetService("TweenService"):Create(obj, tinfo, goal):Play()
- end
- local TweenService = game:GetService("TweenService")
- local defaults; do
- local dragger = {}; do
- local mouse = game:GetService("Players").LocalPlayer:GetMouse();
- local inputService = game:GetService('UserInputService');
- local heartbeat = game:GetService("RunService").Heartbeat;
- function dragger.new(frame)
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- Tween(frame, TweenInfo.new(0.05,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut), {Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)})
- end
- frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- dragInput = input
- end
- end)
- inputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- end
- game:GetService('UserInputService').InputBegan:connect(function(key, gpe)
- if (not gpe) then
- if key.KeyCode == Enum.KeyCode.RightControl then
- library.toggled = not library.toggled;
- for i, data in next, library.queue do
- local pos = (library.toggled and data.p or UDim2.new(-1, 0, -0.5,0))
- data.w:TweenPosition(pos, (library.toggled and 'Out' or 'In'), 'Quad', 0.15, true)
- wait();
- end
- end
- end
- end)
- end
- dragger.new(Frame)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement