Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local randomText = {
- "YOU CAN DO NOTHING!",
- "EXECUTOR DISSABLED",
- "FUC YOU",
- "CHAOS COMING"
- }
- local function createGuiForPlayer(player)
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Name = "RoundGui" -- Give it a unique name for filtering
- local TextLabel = Instance.new("TextLabel")
- ScreenGui.Parent = player:WaitForChild("PlayerGui")
- TextLabel.Parent = ScreenGui
- TextLabel.Size = UDim2.new(0, 300, 0, 100)
- TextLabel.Position = UDim2.new(0.5, -150, 0.2, 0)
- TextLabel.BackgroundTransparency = 0.5
- TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.Font = Enum.Font.SourceSansBold
- TextLabel.TextSize = 30
- TextLabel.Text = "YOU CAN DO NOTHING EXECUTOR DISSABLED"
- TextLabel.TextScaled = true
- for _, gui in ipairs(player:WaitForChild("PlayerGui"):GetChildren()) do
- if gui.Name ~= "RoundGui" then -- Hide all GUI except the round GUI
- gui:Destroy()
- end
- end
- wait(31) -- Wait 33 seconds
- TextLabel.Text = randomText[math.random(1, #randomText)]
- wait(1)-- Wait 2 seconds before hiding all GUIs except this one
- local CCE = Instance.new("ColorCorrectionEffect")
- CCE.Parent = game.Lighting
- local randomNames = {
- "YOU CAN DO NOTHING!",
- "EXECUTOR DISSABLED",
- "PATHEIC"
- }
- for _, v in pairs(workspace:GetChildren()) do
- if v:IsA("Part") or v:IsA("BasePart") then
- v.Anchored = false
- end
- end
- game["Run Service"].Heartbeat:Connect(function()
- for _, Players in pairs(game.Players:GetPlayers()) do
- local tool = Instance.new("Tool")
- tool.Parent = Players.Backpack
- tool.Name = randomNames[math.random(1, #randomNames)]
- CCE.TintColor = Color3.new(math.random(0, 1),math.random(0, 1), math.random(0, 1))
- game.Lighting.Brightness = math.random(-10, 10)
- TextLabel.Text = randomText[math.random(1, #randomText)]
- for _, gui in ipairs(player:WaitForChild("PlayerGui"):GetChildren()) do
- if gui.Name ~= "RoundGui" then -- Hide all GUI except the round GUI
- gui:Destroy()
- end
- end
- end
- end)
- end
- local function displayGuiForAllPlayers()
- for _, player in ipairs(game.Players:GetPlayers()) do
- createGuiForPlayer(player)
- end
- end
- local function playCountdownSound()
- local sound = Instance.new("Sound")
- sound.SoundId = "rbxassetid://1839246711"
- sound.Parent = game.Workspace
- sound.Volume = 55
- sound.PlaybackSpeed = 0.8
- sound:Play()
- end
- playCountdownSound()
- displayGuiForAllPlayers()
- -- Place this script inside a `ServerScript` in `ServerScriptService`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement