Advertisement
ERROR_CODE

BBK

Nov 2nd, 2024 (edited)
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.12 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. mouse = player:GetMouse()
  3. userInputService = game:GetService("UserInputService")
  4. gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  5. BackgroundAfk = Instance.new("Frame")
  6. AfkTextLabelLogo = Instance.new("TextLabel")
  7.  
  8. BackgroundAfk.Parent = gui
  9. BackgroundAfk.AnchorPoint = Vector2.new(0.5, 0.5)
  10. BackgroundAfk.Position = UDim2.new(0.475, 0, 0.41, 0)
  11. BackgroundAfk.Size = UDim2.new(1.05, 0, 1.1, 0)
  12. BackgroundAfk.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  13. BackgroundAfk.BorderColor3 = Color3.fromRGB(0, 0, 0)
  14. BackgroundAfk.BorderSizePixel = 100
  15. BackgroundAfk.Visible = false
  16.  
  17. AfkTextLabelLogo.Parent = BackgroundAfk
  18. AfkTextLabelLogo.Size = UDim2.new(0.25, 0, 0.2, 0)
  19. AfkTextLabelLogo.Position = UDim2.new(0, 0, 0, 0)
  20. AfkTextLabelLogo.Text = "ECCS"
  21. AfkTextLabelLogo.TextColor3 = Color3.new(1, 1, 1)
  22. AfkTextLabelLogo.BackgroundTransparency = 1
  23. AfkTextLabelLogo.Font = Enum.Font.ArimoBold
  24. AfkTextLabelLogo.TextSize = 100
  25.  
  26. local function brightColor()
  27. return Color3.fromHSV(math.random(), 1, 1)
  28. end
  29.  
  30. local function bounceLabel()
  31.     local direction = Vector2.new(1, 1).unit
  32.     while BackgroundAfk.Visible do
  33.         AfkTextLabelLogo.Position = AfkTextLabelLogo.Position + UDim2.new(direction.X * 0.005, 0, direction.Y * 0.005, 0)
  34.         if AfkTextLabelLogo.Position.X.Scale <= 0 or AfkTextLabelLogo.Position.X.Scale >= 0.8 then
  35.             direction = Vector2.new(-direction.X, direction.Y)
  36.             AfkTextLabelLogo.TextColor3 = brightColor()
  37.         end
  38.         if AfkTextLabelLogo.Position.Y.Scale <= 0 or AfkTextLabelLogo.Position.Y.Scale >= 0.9 then
  39.             direction = Vector2.new(direction.X, -direction.Y)
  40.             AfkTextLabelLogo.TextColor3 = brightColor()
  41.         end
  42.         task.wait()
  43.     end
  44. end
  45.  
  46. local idleTime = 0
  47. local function resetIdleTime()
  48.     idleTime = 0
  49.     BackgroundAfk.Visible = false
  50. end
  51.  
  52. userInputService.InputBegan:Connect(resetIdleTime)
  53. mouse.Move:Connect(resetIdleTime)
  54.  
  55. while true do
  56.     wait(1)
  57.     idleTime = idleTime + 1
  58.     if idleTime == 5 then
  59.         BackgroundAfk.Visible = true
  60.         bounceLabel()
  61.     end
  62. end
  63.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement