Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Функция для создания и добавления CFrame части
- local function createCFramePart(parent)
- local part = Instance.new("Part")
- part.Name = "GoCFrame"
- part.Size = Vector3.new(4, 1, 2)
- part.CFrame = CFrame.new(math.random(-10, 10), 5, math.random(-10, 10))
- part.BrickColor = BrickColor.Random()
- part.Anchored = true
- part.Material = Enum.Material.Neon
- part.Parent = parent
- local light = Instance.new("PointLight")
- light.Color = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255))
- light.Brightness = 2
- light.Parent = part
- end
- -- Функция для создания и добавления Gui
- local function createGui(parent)
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "GoGui"
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(1, 0, 1, 0)
- frame.BackgroundColor3 = Color3.new(0, 0, 0)
- frame.Visible = false
- frame.Name = "BlackScreen"
- frame.Parent = screenGui
- screenGui.Parent = parent
- end
- -- Функция для добавления случайных текстов
- local function addRandomText(screenGui)
- local messages = {"Осторожно!", "Не уйдешь!", "Я наблюдаю...", "Беги!", "Спрячься!", "Нет выхода!", "Слишком поздно...", "Чувствуешь это?"}
- local totalTexts = 1
- local textContainer = Instance.new("Folder")
- textContainer.Name = "TextContainer"
- textContainer.Parent = screenGui
- spawn(function()
- while totalTexts <= 100 do
- local textLabel = Instance.new("TextLabel")
- textLabel.Size = UDim2.new(0.2, 0, 0.1, 0)
- textLabel.Position = UDim2.new(math.random(), 0, math.random(), 0)
- textLabel.Text = messages[math.random(#messages)]
- textLabel.TextScaled = true
- textLabel.TextColor3 = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255))
- textLabel.BackgroundTransparency = 0.5
- textLabel.BackgroundColor3 = Color3.new(0, 0, 0)
- textLabel.Parent = textContainer
- totalTexts = totalTexts + 1
- wait(0.1)
- end
- end)
- end
- -- Функция для воспроизведения жуткого звука
- local function playCreepySound()
- local sound = Instance.new("Sound")
- sound.SoundId = "rbxassetid://" .. tostring(math.random(1839159805, 1839159850))
- sound.Volume = 1
- sound.Parent = game.Workspace
- sound:Play()
- sound.Ended:Connect(function()
- sound:Destroy()
- end)
- end
- -- Функция для создания изображения jumpscare
- local function createJumpScare(parent)
- local jumpScare = Instance.new("ImageLabel")
- jumpScare.Size = UDim2.new(1, 0, 1, 0)
- jumpScare.Image = "rbxassetid://" .. tostring(math.random(60350187, 60350200))
- jumpScare.BackgroundTransparency = 1
- jumpScare.Visible = false
- jumpScare.Name = "JumpScare"
- jumpScare.Parent = parent
- return jumpScare
- end
- -- Функция для отображения предупреждения о кике
- local function displayKickWarning(parent)
- local warningLabel = Instance.new("TextLabel")
- warningLabel.Size = UDim2.new(1, 0, 0.2, 0)
- warningLabel.Position = UDim2.new(0, 0, 0.4, 0)
- warningLabel.BackgroundColor3 = Color3.new(0, 0, 0)
- warningLabel.TextColor3 = Color3.new(1, 0, 0)
- warningLabel.TextScaled = true
- warningLabel.Text = "Вы будете кикнуты за взлом!"
- warningLabel.Parent = parent
- spawn(function()
- while true do
- wait(0.5)
- warningLabel.Visible = not warningLabel.Visible
- end
- end)
- end
- -- Основной скрипт
- local function main()
- local parent = game.Workspace
- local cframePart = parent:FindFirstChild("GoCFrame")
- if not cframePart then
- createCFramePart(parent)
- end
- local player = game.Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local guuii = playerGui:FindFirstChild("GoGui")
- if not guuii then
- createGui(playerGui)
- addRandomText(playerGui.GoGui)
- end
- local blackScreen = playerGui.GoGui:FindFirstChild("BlackScreen")
- local jumpScare = createJumpScare(playerGui.GoGui)
- spawn(function()
- while true do
- wait(1)
- blackScreen.Visible = not blackScreen.Visible
- playCreepySound()
- if math.random() > 100 then
- jumpScare.Visible = true
- wait(0.5)
- jumpScare.Visible = false
- end
- end
- end)
- spawn(function()
- wait(10)
- displayKickWarning(playerGui)
- wait(5)
- player:Kick("Вы были забанены за взлом.")
- end)
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement