Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- mouse = player:GetMouse()
- userInputService = game:GetService("UserInputService")
- gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- BackgroundAfk = Instance.new("Frame")
- AfkTextLabelLogo = Instance.new("TextLabel")
- BackgroundAfk.Parent = gui
- BackgroundAfk.AnchorPoint = Vector2.new(0.5, 0.5)
- BackgroundAfk.Position = UDim2.new(0.475, 0, 0.41, 0)
- BackgroundAfk.Size = UDim2.new(1.05, 0, 1.1, 0)
- BackgroundAfk.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- BackgroundAfk.BorderColor3 = Color3.fromRGB(0, 0, 0)
- BackgroundAfk.BorderSizePixel = 100
- BackgroundAfk.Visible = false
- AfkTextLabelLogo.Parent = BackgroundAfk
- AfkTextLabelLogo.Size = UDim2.new(0.25, 0, 0.2, 0)
- AfkTextLabelLogo.Position = UDim2.new(0, 0, 0, 0)
- AfkTextLabelLogo.Text = "ECCS"
- AfkTextLabelLogo.TextColor3 = Color3.new(1, 1, 1)
- AfkTextLabelLogo.BackgroundTransparency = 1
- AfkTextLabelLogo.Font = Enum.Font.ArimoBold
- AfkTextLabelLogo.TextSize = 100
- local function brightColor()
- return Color3.fromHSV(math.random(), 1, 1)
- end
- local function bounceLabel()
- local direction = Vector2.new(1, 1).unit
- while BackgroundAfk.Visible do
- AfkTextLabelLogo.Position = AfkTextLabelLogo.Position + UDim2.new(direction.X * 0.005, 0, direction.Y * 0.005, 0)
- if AfkTextLabelLogo.Position.X.Scale <= 0 or AfkTextLabelLogo.Position.X.Scale >= 0.8 then
- direction = Vector2.new(-direction.X, direction.Y)
- AfkTextLabelLogo.TextColor3 = brightColor()
- end
- if AfkTextLabelLogo.Position.Y.Scale <= 0 or AfkTextLabelLogo.Position.Y.Scale >= 0.9 then
- direction = Vector2.new(direction.X, -direction.Y)
- AfkTextLabelLogo.TextColor3 = brightColor()
- end
- task.wait()
- end
- end
- local idleTime = 0
- local function resetIdleTime()
- idleTime = 0
- BackgroundAfk.Visible = false
- end
- userInputService.InputBegan:Connect(resetIdleTime)
- mouse.Move:Connect(resetIdleTime)
- while true do
- wait(1)
- idleTime = idleTime + 1
- if idleTime == 5 then
- BackgroundAfk.Visible = true
- bounceLabel()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement