Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local QuestionFrame = Instance.new("Frame")
- local Question = Instance.new("TextLabel")
- local Yes = Instance.new("TextButton")
- local Text = Instance.new("TextLabel")
- local No = Instance.new("TextButton")
- ScreenGui.Parent = game.CoreGui
- QuestionFrame.Parent = ScreenGui
- QuestionFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- QuestionFrame.Position = UDim2.new(0.3, 0, 0.2, 0)
- QuestionFrame.Size = UDim2.new(0, 378, 0, 250)
- Question.Name = "Question"
- Question.Parent = QuestionFrame
- Question.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Question.Size = UDim2.new(0, 378, 0, 25)
- Question.Font = Enum.Font.GothamBold
- Question.Text = "Close Executor?"
- Question.TextColor3 = Color3.fromRGB(0, 0, 0)
- Question.TextScaled = true
- Question.TextSize = 14.000
- Question.TextWrapped = true
- Yes.Name = "Yes"
- Yes.Parent = QuestionFrame
- Yes.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Yes.Position = UDim2.new(0, 0, 0.648000002, 0)
- Yes.Size = UDim2.new(0, 155, 0, 55)
- Yes.Font = Enum.Font.GothamBold
- Yes.Text = "Yes"
- Yes.TextColor3 = Color3.fromRGB(0, 0, 0)
- Yes.TextScaled = true
- Yes.TextSize = 14.000
- Yes.TextWrapped = true
- Yes.MouseButton1Down:connect(function()
- end)
- Text.Name = "Text"
- Text.Parent = QuestionFrame
- Text.Position = UDim2.new(0, 0, 0.2, 0)
- Text.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Text.Size = UDim2.new(0, 377, 0, 100)
- Text.Font = Enum.Font.GothamBold
- Text.Text = "Are you sure?"
- Text.TextColor3 = Color3.fromRGB(255, 255, 255)
- Text.TextScaled = true
- Text.TextSize = 14.000
- Text.TextWrapped = true
- No.Name = "No"
- No.Parent = QuestionFrame
- No.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- No.Position = UDim2.new(0.59, 0, 0.648000002, 0)
- No.Size = UDim2.new(0, 155, 0, 55)
- No.Font = Enum.Font.GothamBold
- No.Text = "No"
- No.TextColor3 = Color3.fromRGB(0, 0, 0)
- No.TextScaled = true
- No.TextSize = 14.000
- No.TextWrapped = true
- No.MouseButton1Down:connect(function()
- QuestionFrame:Destroy()
- end)
- local function QFCS_fake_script()
- local script = Instance.new('LocalScript', QuestionFrame)
- local UIS = game:GetService("UserInputService")
- function dragify(QuestionFrame)
- dragToggle = nil
- local dragSpeed = 0
- dragInput = nil
- dragStart = nil
- local dragPos = nil
- function updateInput(input)
- local Delta = input.Position - dragStart
- local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(QuestionFrame, TweenInfo.new(0.25), {Position = Position}):Play()
- end
- QuestionFrame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
- dragToggle = true
- dragStart = input.Position
- startPos = QuestionFrame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragToggle = false
- end
- end)
- end
- end)
- QuestionFrame.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(script.Parent)
- end
- coroutine.wrap(QFCS_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement