Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local KeyFrame = Instance.new("Frame")
- local KeyLabel = Instance.new("TextLabel")
- local KeyInput = Instance.new("TextBox")
- local SubmitButton = Instance.new("TextButton")
- -- Key System GUI Setup
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- KeyFrame.Name = "KeySystem"
- KeyFrame.Parent = ScreenGui
- KeyFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- KeyFrame.Position = UDim2.new(0.35, 0, 0.35, 0)
- KeyFrame.Size = UDim2.new(0.3, 0, 0.3, 0)
- KeyLabel.Name = "KeyText"
- KeyLabel.Parent = KeyFrame
- KeyLabel.BackgroundTransparency = 1
- KeyLabel.Position = UDim2.new(0, 0, 0.1, 0)
- KeyLabel.Size = UDim2.new(1, 0, 0.2, 0)
- KeyLabel.Font = Enum.Font.GothamBold
- KeyLabel.Text = "KEY"
- KeyLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- KeyLabel.TextSize = 24
- KeyInput.Name = "KeyBox"
- KeyInput.Parent = KeyFrame
- KeyInput.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
- KeyInput.Position = UDim2.new(0.1, 0, 0.4, 0)
- KeyInput.Size = UDim2.new(0.8, 0, 0.15, 0)
- KeyInput.Font = Enum.Font.Gotham
- KeyInput.PlaceholderText = "Enter Key..."
- KeyInput.Text = ""
- KeyInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- KeyInput.TextSize = 18
- SubmitButton.Name = "Submit"
- SubmitButton.Parent = KeyFrame
- SubmitButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
- SubmitButton.Position = UDim2.new(0.25, 0, 0.7, 0)
- SubmitButton.Size = UDim2.new(0.5, 0, 0.15, 0)
- SubmitButton.Font = Enum.Font.GothamBold
- SubmitButton.Text = "Submit"
- SubmitButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- SubmitButton.TextSize = 18
- -- Troll GUI Elements (Initially hidden)
- local TrollFrame = Instance.new("Frame")
- local VirusLabel = Instance.new("TextLabel")
- local WebcamLabel = Instance.new("TextLabel")
- local TrollImage = Instance.new("ImageLabel")
- TrollFrame.Name = "TrollFrame"
- TrollFrame.Parent = ScreenGui
- TrollFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TrollFrame.Position = UDim2.new(0.3, 0, 0.3, 0)
- TrollFrame.Size = UDim2.new(0.4, 0, 0.4, 0)
- TrollFrame.Visible = false
- VirusLabel.Name = "VirusCounter"
- VirusLabel.Parent = TrollFrame
- VirusLabel.BackgroundTransparency = 1
- VirusLabel.Position = UDim2.new(0, 0, 0.1, 0)
- VirusLabel.Size = UDim2.new(1, 0, 0.1, 0)
- VirusLabel.Font = Enum.Font.SourceSansBold
- VirusLabel.Text = "Adding Viruses: 0"
- VirusLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
- VirusLabel.TextSize = 24
- WebcamLabel.Name = "WebcamText"
- WebcamLabel.Parent = TrollFrame
- WebcamLabel.BackgroundTransparency = 1
- WebcamLabel.Position = UDim2.new(0, 0, 0.4, 0)
- WebcamLabel.Size = UDim2.new(1, 0, 0.1, 0)
- WebcamLabel.Font = Enum.Font.SourceSansBold
- WebcamLabel.Text = "Accessing Webcam..."
- WebcamLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
- WebcamLabel.TextSize = 20
- WebcamLabel.Visible = false
- TrollImage.Name = "TrollFace"
- TrollImage.Parent = TrollFrame
- TrollImage.BackgroundTransparency = 1
- TrollImage.Position = UDim2.new(0.25, 0, 0.5, 0)
- TrollImage.Size = UDim2.new(0.5, 0, 0.4, 0)
- TrollImage.Image = "rbxassetid://7120897394"
- TrollImage.Visible = false
- -- Password System
- local validKeys = {
- "github",
- "subscribe",
- "bob"
- }
- local function startTrollScript()
- local virusCount = 0
- local function updateCount()
- if virusCount < 13 then
- virusCount = virusCount + 1
- VirusLabel.Text = "Adding Viruses: " .. virusCount
- if virusCount == 5 then
- WebcamLabel.Visible = true
- TrollImage.Visible = true
- wait(5)
- WebcamLabel.Visible = false
- TrollImage.Visible = false
- end
- if virusCount == 13 then
- wait(4)
- game.StarterGui:SetCore("SendNotification", {
- Title = "Gotcha!",
- Text = "You got trolled! No viruses have been added",
- Duration = 5
- })
- wait(1)
- ScreenGui:Destroy()
- -- Show fake badge notification
- game.StarterGui:SetCore("SendNotification", {
- Title = "🏆 Badge Awarded!",
- Text = "You've earned: The Hacked Award",
- Duration = 5,
- Icon = "rbxassetid://18569914203"
- })
- end
- wait(math.random(3, 10))
- updateCount()
- end
- end
- updateCount()
- end
- local function checkKey()
- local inputKey = KeyInput.Text:lower()
- for _, key in ipairs(validKeys) do
- if inputKey == key then
- KeyFrame:Destroy()
- TrollFrame.Visible = true
- startTrollScript()
- return
- end
- end
- -- Wrong key animation
- KeyInput.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- wait(0.5)
- KeyInput.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
- KeyInput.Text = ""
- end
- SubmitButton.MouseButton1Click:Connect(checkKey)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement