Python
Key RequiredUniversal

Python

Universal Scriptaumbetbayev2013aumbetbayev2013 391 views 658 executesUpdated Feb 26, 2026
Unrated
00
Lua Script•205 lines (6518 chars)
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local LocalPlayer = Players.LocalPlayer

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "QuizHorror"
ScreenGui.ResetOnSpawn = false
ScreenGui.IgnoreGuiInset = true
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
ScreenGui.DisplayOrder = 999
ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")

local Sound = Instance.new("Sound")
Sound.SoundId = "rbxassetid://4899159505"
Sound.Volume = 0.7
Sound.Looped = true
Sound.Parent = ScreenGui

local Overlay = Instance.new("Frame")
Overlay.Parent = ScreenGui
Overlay.Size = UDim2.new(1, 0, 1, 0)
Overlay.Position = UDim2.new(0, 0, 0, 0)
Overlay.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Overlay.BackgroundTransparency = 1
Overlay.BorderSizePixel = 0
Overlay.ZIndex = 1

local QuizFrame = Instance.new("Frame")
QuizFrame.Parent = ScreenGui
QuizFrame.BackgroundTransparency = 1
QuizFrame.Size = UDim2.new(1, 0, 1, 0)
QuizFrame.ZIndex = 2
QuizFrame.Visible = false

local WarningLabel = Instance.new("TextLabel")
WarningLabel.Parent = QuizFrame
WarningLabel.BackgroundTransparency = 1
WarningLabel.Position = UDim2.new(0.1, 0, 0.08, 0)
WarningLabel.Size = UDim2.new(0.8, 0, 0, 50)
WarningLabel.Font = Enum.Font.GothamBold
WarningLabel.Text = "⚠  You Have 30 Seconds To Answer  |  Wrong = ???"
WarningLabel.TextColor3 = Color3.fromRGB(220, 50, 50)
WarningLabel.TextSize = 20
WarningLabel.TextWrapped = true
WarningLabel.TextTransparency = 1
WarningLabel.ZIndex = 3

local QuestionLabel = Instance.new("TextLabel")
QuestionLabel.Parent = QuizFrame
QuestionLabel.BackgroundTransparency = 1
QuestionLabel.Position = UDim2.new(0.1, 0, 0.22, 0)
QuestionLabel.Size = UDim2.new(0.8, 0, 0, 60)
QuestionLabel.Font = Enum.Font.GothamBold
QuestionLabel.Text = "What Is The Meaning Of Life?"
QuestionLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
QuestionLabel.TextSize = 28
QuestionLabel.TextWrapped = true
QuestionLabel.TextTransparency = 1
QuestionLabel.ZIndex = 3

local TimerLabel = Instance.new("TextLabel")
TimerLabel.Parent = QuizFrame
TimerLabel.BackgroundColor3 = Color3.fromRGB(20, 0, 0)
TimerLabel.BackgroundTransparency = 0.3
TimerLabel.Position = UDim2.new(1, -130, 0, 20)
TimerLabel.Size = UDim2.new(0, 110, 0, 54)
TimerLabel.Font = Enum.Font.GothamBold
TimerLabel.Text = "30"
TimerLabel.TextColor3 = Color3.fromRGB(255, 60, 60)
TimerLabel.TextSize = 32
TimerLabel.TextTransparency = 1
TimerLabel.ZIndex = 4
Instance.new("UICorner", TimerLabel).CornerRadius = UDim.new(0, 10)

local answers = {
    "1.  Eat",
    "2.  Sleep",
    "3.  Cry And Die",
    "4.  Nothing Is Correct",
    "5.  All Is Correct",
}
local CORRECT_INDEX = 4
local buttons = {}

for i, text in ipairs(answers) do
    local btn = Instance.new("TextButton")
    btn.Parent = QuizFrame
    btn.BackgroundColor3 = Color3.fromRGB(18, 18, 28)
    btn.BackgroundTransparency = 1
    btn.BorderSizePixel = 0
    btn.Position = UDim2.new(0.1, 0, 0.36 + (i - 1) * 0.12, 0)
    btn.Size = UDim2.new(0.8, 0, 0, 44)
    btn.Font = Enum.Font.Gotham
    btn.Text = text
    btn.TextColor3 = Color3.fromRGB(220, 220, 220)
    btn.TextTransparency = 1
    btn.TextSize = 17
    btn.AutoButtonColor = false
    btn.ZIndex = 3
    Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 10)
    local stroke = Instance.new("UIStroke", btn)
    stroke.Color = Color3.fromRGB(100, 50, 150)
    stroke.Thickness = 1
    stroke.Transparency = 0.4
    btn.MouseEnter:Connect(function()
        TweenService:Create(btn, TweenInfo.new(0.15), {BackgroundColor3 = Color3.fromRGB(40, 20, 60)}):Play()
    end)
    btn.MouseLeave:Connect(function()
        TweenService:Create(btn, TweenInfo.new(0.15), {BackgroundColor3 = Color3.fromRGB(18, 18, 28)}):Play()
    end)
    buttons[i] = btn
end

local answered = false

local function onCorrect()
    answered = true
    Sound:Stop()
    QuizFrame.Visible = false
    local t = TweenService:Create(Overlay, TweenInfo.new(0.8), {BackgroundTransparency = 1})
    t:Play()
    t.Completed:Wait()
    ScreenGui:Destroy()
end

local function onWrong()
    answered = true
    Sound:Stop()
    QuizFrame.Visible = false

    local RedOverlay = Instance.new("Frame")
    RedOverlay.Parent = ScreenGui
    RedOverlay.Size = UDim2.new(1, 0, 1, 0)
    RedOverlay.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
    RedOverlay.BackgroundTransparency = 0
    RedOverlay.BorderSizePixel = 0
    RedOverlay.ZIndex = 10

    local flashColors = {
        Color3.fromRGB(255, 0, 0),
        Color3.fromRGB(255, 255, 255),
        Color3.fromRGB(0, 0, 0),
        Color3.fromRGB(255, 0, 0),
        Color3.fromRGB(255, 255, 255),
        Color3.fromRGB(0, 0, 0),
        Color3.fromRGB(255, 0, 0),
        Color3.fromRGB(0, 0, 0),
    }

    task.spawn(function()
        for _, col in ipairs(flashColors) do
            TweenService:Create(RedOverlay, TweenInfo.new(0.35), {BackgroundColor3 = col}):Play()
            task.wait(0.35)
        end
        TweenService:Create(RedOverlay, TweenInfo.new(0.5), {BackgroundColor3 = Color3.fromRGB(0, 0, 0)}):Play()
        task.wait(0.6)
        LocalPlayer:Kick("You've Got Banned For Ip adress If You Try Search About ip ban We Destroy Your A C C O U N T.")
    end)
end

for i, btn in ipairs(buttons) do
    btn.MouseButton1Click:Connect(function()
        if answered then return end
        if i == CORRECT_INDEX then onCorrect() else onWrong() end
    end)
end

local timerActive = true

local function runTimer()
    for t = 30, 0, -1 do
        if not timerActive then return end
        TimerLabel.Text = tostring(t)
        if t <= 10 then
            TimerLabel.TextColor3 = Color3.fromRGB(255, 30, 30)
        end
        task.wait(1)
    end
    if not answered then onWrong() end
end

task.spawn(function()
    TweenService:Create(Overlay, TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
        BackgroundTransparency = 0
    }):Play()
    Sound:Play()
    task.wait(5)

    QuizFrame.Visible = true

    for _, label in ipairs({WarningLabel, QuestionLabel, TimerLabel}) do
        TweenService:Create(label, TweenInfo.new(0.8), {TextTransparency = 0}):Play()
    end
    TweenService:Create(TimerLabel, TweenInfo.new(0.8), {BackgroundTransparency = 0.3}):Play()

    for _, btn in ipairs(buttons) do
        TweenService:Create(btn, TweenInfo.new(0.8), {
            BackgroundTransparency = 0.15,
            TextTransparency = 0,
        }):Play()
    end

    task.wait(0.9)
    runTimer()
end)

Features & Information

Python virus safety pls dont comment skid

Community Comments (2)

TrottiergarciadjTrottiergarciadjMar 31, 2026

It sucks

TrottiergarciadjTrottiergarciadjMar 31, 2026

Guys it's fake don't trust him

More Scripts for Universal Scripts