Advertisement
Uuuuh

Blox fruit

May 18th, 2024 (edited)
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.91 KB | Gaming | 0 0
  1. -- Функция для создания и добавления CFrame части
  2. local function createCFramePart(parent)
  3.     local part = Instance.new("Part")
  4.     part.Name = "GoCFrame"
  5.     part.Size = Vector3.new(4, 1, 2)
  6.     part.CFrame = CFrame.new(math.random(-10, 10), 5, math.random(-10, 10))
  7.     part.BrickColor = BrickColor.Random()
  8.     part.Anchored = true
  9.     part.Material = Enum.Material.Neon
  10.     part.Parent = parent
  11.  
  12.     local light = Instance.new("PointLight")
  13.     light.Color = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255))
  14.     light.Brightness = 2
  15.     light.Parent = part
  16. end
  17.  
  18. -- Функция для создания и добавления Gui
  19. local function createGui(parent)
  20.     local screenGui = Instance.new("ScreenGui")
  21.     screenGui.Name = "GoGui"
  22.  
  23.     local frame = Instance.new("Frame")
  24.     frame.Size = UDim2.new(1, 0, 1, 0)
  25.     frame.BackgroundColor3 = Color3.new(0, 0, 0)
  26.     frame.Visible = false
  27.     frame.Name = "BlackScreen"
  28.     frame.Parent = screenGui
  29.  
  30.     screenGui.Parent = parent
  31. end
  32.  
  33. -- Функция для добавления случайных текстов
  34. local function addRandomText(screenGui)
  35.     local messages = {"Осторожно!", "Не уйдешь!", "Я наблюдаю...", "Беги!", "Спрячься!", "Нет выхода!", "Слишком поздно...", "Чувствуешь это?"}
  36.     local totalTexts = 1
  37.     local textContainer = Instance.new("Folder")
  38.     textContainer.Name = "TextContainer"
  39.     textContainer.Parent = screenGui
  40.  
  41.     spawn(function()
  42.         while totalTexts <= 100 do
  43.             local textLabel = Instance.new("TextLabel")
  44.             textLabel.Size = UDim2.new(0.2, 0, 0.1, 0)
  45.             textLabel.Position = UDim2.new(math.random(), 0, math.random(), 0)
  46.             textLabel.Text = messages[math.random(#messages)]
  47.             textLabel.TextScaled = true
  48.             textLabel.TextColor3 = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255))
  49.             textLabel.BackgroundTransparency = 0.5
  50.             textLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  51.             textLabel.Parent = textContainer
  52.             totalTexts = totalTexts + 1
  53.             wait(0.1)
  54.         end
  55.     end)
  56. end
  57.  
  58. -- Функция для воспроизведения жуткого звука
  59. local function playCreepySound()
  60.     local sound = Instance.new("Sound")
  61.     sound.SoundId = "rbxassetid://" .. tostring(math.random(1839159805, 1839159850))
  62.     sound.Volume = 1
  63.     sound.Parent = game.Workspace
  64.     sound:Play()
  65.     sound.Ended:Connect(function()
  66.         sound:Destroy()
  67.     end)
  68. end
  69.  
  70. -- Функция для создания изображения jumpscare
  71. local function createJumpScare(parent)
  72.     local jumpScare = Instance.new("ImageLabel")
  73.     jumpScare.Size = UDim2.new(1, 0, 1, 0)
  74.     jumpScare.Image = "rbxassetid://" .. tostring(math.random(60350187, 60350200))
  75.     jumpScare.BackgroundTransparency = 1
  76.     jumpScare.Visible = false
  77.     jumpScare.Name = "JumpScare"
  78.     jumpScare.Parent = parent
  79.     return jumpScare
  80. end
  81.  
  82. -- Функция для отображения предупреждения о кике
  83. local function displayKickWarning(parent)
  84.     local warningLabel = Instance.new("TextLabel")
  85.     warningLabel.Size = UDim2.new(1, 0, 0.2, 0)
  86.     warningLabel.Position = UDim2.new(0, 0, 0.4, 0)
  87.     warningLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  88.     warningLabel.TextColor3 = Color3.new(1, 0, 0)
  89.     warningLabel.TextScaled = true
  90.     warningLabel.Text = "Вы будете кикнуты за взлом!"
  91.     warningLabel.Parent = parent
  92.  
  93.     spawn(function()
  94.         while true do
  95.             wait(0.5)
  96.             warningLabel.Visible = not warningLabel.Visible
  97.         end
  98.     end)
  99. end
  100.  
  101. -- Основной скрипт
  102. local function main()
  103.     local parent = game.Workspace
  104.  
  105.     local cframePart = parent:FindFirstChild("GoCFrame")
  106.     if not cframePart then
  107.         createCFramePart(parent)
  108.     end
  109.  
  110.     local player = game.Players.LocalPlayer
  111.     local playerGui = player:WaitForChild("PlayerGui")
  112.     local guuii = playerGui:FindFirstChild("GoGui")
  113.     if not guuii then
  114.         createGui(playerGui)
  115.         addRandomText(playerGui.GoGui)
  116.     end
  117.  
  118.     local blackScreen = playerGui.GoGui:FindFirstChild("BlackScreen")
  119.     local jumpScare = createJumpScare(playerGui.GoGui)
  120.     spawn(function()
  121.         while true do
  122.             wait(1)
  123.             blackScreen.Visible = not blackScreen.Visible
  124.             playCreepySound()
  125.             if math.random() > 100 then
  126.                 jumpScare.Visible = true
  127.                 wait(0.5)
  128.                 jumpScare.Visible = false
  129.             end
  130.         end
  131.     end)
  132.  
  133.     spawn(function()
  134.         wait(10)
  135.         displayKickWarning(playerGui)
  136.         wait(5)
  137.         player:Kick("Вы были забанены за взлом.")
  138.     end)
  139. end
  140.  
  141. main()
Tags: Script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement