Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Farewell Infortality.
- -- Version: 2.82
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local DropShadow = Instance.new("Frame")
- local Main = Instance.new("Frame")
- local Input = Instance.new("TextBox")
- local btnExecute = Instance.new("TextButton")
- local btnClear = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- DropShadow.Name = "DropShadow"
- DropShadow.Parent = ScreenGui
- DropShadow.BackgroundColor3 = Color3.new(0.733333, 0.52549, 0.988235)
- DropShadow.BorderSizePixel = 0
- DropShadow.Position = UDim2.new(0, 400, 0, 209)
- DropShadow.Size = UDim2.new(0.216, 0, 0.010, 0)
- DropShadow.ZIndex = -1
- Main.Name = "Main"
- Main.Parent = DropShadow
- Main.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(-0.000772879925, 0, 0.995309711, 0)
- Main.Size = UDim2.new(0, 415, 0, 218)
- Main.ZIndex = 0
- Input.Name = "Input"
- Input.Parent = Main
- Input.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- Input.BorderColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- Input.Position = UDim2.new(0.0156478882, 0, 0.0291930027, 0)
- Input.Size = UDim2.new(0, 402, 0, 178)
- Input.ZIndex = 2
- Input.Font = Enum.Font.SourceSans
- Input.PlaceholderText = "[Script]"
- Input.Text = ""
- Input.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- Input.TextSize = 20
- Input.TextWrapped = true
- Input.TextXAlignment = Enum.TextXAlignment.Left
- Input.TextYAlignment = Enum.TextYAlignment.Top
- Input.ClearTextOnFocus = false
- btnExecute.Name = "btnExecute"
- btnExecute.Parent = Main
- btnExecute.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- btnExecute.BorderColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- btnExecute.Position = UDim2.new(0.0160000008, 0, 0.876146793, 0)
- btnExecute.Size = UDim2.new(0, 106, 0, 23)
- btnExecute.ZIndex = 7
- btnExecute.Font = Enum.Font.SourceSansBold
- btnExecute.Text = "Execute"
- btnExecute.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- btnExecute.TextSize = 20
- btnExecute.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- btnClear.Name = "btnClear"
- btnClear.Parent = Main
- btnClear.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- btnClear.BorderColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- btnClear.Position = UDim2.new(0.297250003, 0, 0.876146793, 0)
- btnClear.Size = UDim2.new(0, 106, 0, 23)
- btnClear.ZIndex = 7
- btnClear.Font = Enum.Font.SourceSansBold
- btnClear.Text = "Clear"
- btnClear.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- btnClear.TextSize = 20
- btnClear.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel.Parent = Main
- TextLabel.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.576923072, 0, 0.876146793, 0)
- TextLabel.Size = UDim2.new(0, 168, 0, 17)
- TextLabel.ZIndex = 7
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "'INSERT' Open/Close"
- TextLabel.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel.TextSize = 17
- TextLabel.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- -- Scripts:
- function dragify(Frame)
- dragToggle = nil
- dragSpeed = 10 -- You can edit this.
- dragInput = nil
- dragStart = nil
- dragPos = nil
- function updateInput(input)
- Delta = input.Position - dragStart
- Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Frame, TweenInfo.new(.25), {Position = Position}):Play()
- end
- -- below in script.Parent.Frame put your dragging bar
- DropShadow.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if (input.UserInputState == Enum.UserInputState.End) then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if (input == dragInput and dragToggle) then
- updateInput(input)
- end
- end)
- end
- dragify(DropShadow)
- local UserInputService = game:GetService("UserInputService")
- btnExecute.MouseButton1Down:Connect(function()
- local success, message = pcall(function()
- coroutine.wrap(execute)()
- coroutine.wrap(execute)()
- coroutine.resume(execute)()
- wait()
- end)
- end)
- btnClear.MouseButton1Down:Connect(function()
- Input.Text = ""
- end)
- function execute()
- loadstring(Input.Text)()
- end
- UserInputService.InputBegan:Connect(function(k)
- if k.KeyCode == Enum.KeyCode.Insert then
- if DropShadow.Visible == true then
- DropShadow.Visible = false
- else
- DropShadow.Visible = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement