Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- AFK MODE - bikinan salendra10
- Script:(bisa langsung di exec)
- ]]
- local Players = game:GetService("Players")
- local Lighting = game:GetService("Lighting")
- local TweenService = game:GetService("TweenService")
- local RunService = game:GetService("RunService")
- local player = Players.LocalPlayer
- -- Hapus gui kalo udah di pakek
- if player:FindFirstChild("PlayerGui"):FindFirstChild("AFK_GUI") then
- player.PlayerGui:FindFirstChild("AFK_GUI"):Destroy()
- end
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "AFK_GUI"
- screenGui.IgnoreGuiInset = true
- screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
- screenGui.DisplayOrder = 999999
- screenGui.ResetOnSpawn = false
- screenGui.Parent = player:WaitForChild("PlayerGui")
- -- Background hitam
- local blackFrame = Instance.new("Frame")
- blackFrame.Size = UDim2.new(1, 0, 1, 0)
- blackFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- blackFrame.BorderSizePixel = 0
- blackFrame.ZIndex = 100
- blackFrame.Parent = screenGui
- -- Label jam
- local timeLabel = Instance.new("TextLabel")
- timeLabel.Size = UDim2.new(0, 400, 0, 50)
- timeLabel.Position = UDim2.new(1, -20, 0, 20)
- timeLabel.AnchorPoint = Vector2.new(1, 0)
- timeLabel.BackgroundTransparency = 1
- timeLabel.Font = Enum.Font.GothamBold
- timeLabel.TextSize = 25
- timeLabel.TextColor3 = Color3.new(1, 1, 1)
- timeLabel.TextStrokeTransparency = 0
- timeLabel.TextStrokeColor3 = Color3.new(0, 0, 0)
- timeLabel.ZIndex = 101
- timeLabel.TextXAlignment = Enum.TextXAlignment.Right
- timeLabel.Parent = screenGui
- local hariIndonesia = {
- Sunday = "Minggu",
- Monday = "Senin",
- Tuesday = "Selasa",
- Wednesday = "Rabu",
- Thursday = "Kamis",
- Friday = "Jumat",
- Saturday = "Sabtu"
- }
- local function getWaktuWIB()
- local waktu = os.date("!*t")
- waktu.hour = (waktu.hour + 7) % 24
- return waktu
- end
- task.spawn(function()
- while true do
- local t = getWaktuWIB()
- local namaHari = hariIndonesia[os.date("!%A")] or os.date("!%A")
- local tanggal = string.format("%02d/%02d/%04d", t.day, t.month, t.year)
- local jam = string.format("%02d:%02d:%02d", t.hour, t.min, t.sec)
- timeLabel.Text = string.format("%s, %s\n%s", namaHari, tanggal, jam)
- RunService.Heartbeat:Wait()
- end
- end)
- -- Label AFK
- local afkLabel = Instance.new("TextLabel")
- afkLabel.Size = UDim2.new(0, 500, 0, 100)
- afkLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- afkLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
- afkLabel.BackgroundTransparency = 1
- afkLabel.Text = "Waktu AFK: 0 dtk"
- afkLabel.Font = Enum.Font.GothamBlack
- afkLabel.TextSize = 50
- afkLabel.TextColor3 = Color3.new(1, 1, 1)
- afkLabel.TextStrokeTransparency = 0
- afkLabel.TextStrokeColor3 = Color3.new(0, 0, 0)
- afkLabel.ZIndex = 101
- afkLabel.Parent = screenGui
- local stroke = Instance.new("UIStroke")
- stroke.Thickness = 3
- stroke.Parent = afkLabel
- local rainbowColors = {
- Color3.fromRGB(255,0,0),
- Color3.fromRGB(255,128,0),
- Color3.fromRGB(255,255,0),
- Color3.fromRGB(0,255,0),
- Color3.fromRGB(0,200,255),
- Color3.fromRGB(128,0,255),
- Color3.fromRGB(255,0,255)
- }
- task.spawn(function()
- while true do
- for _, c in ipairs(rainbowColors) do
- TweenService:Create(stroke, TweenInfo.new(0.8), {Color = c}):Play()
- task.wait(0.8)
- end
- end
- end)
- local function pulse()
- local besar = TweenService:Create(afkLabel, TweenInfo.new(0.2), {TextSize = 60})
- local kecil = TweenService:Create(afkLabel, TweenInfo.new(0.2), {TextSize = 50})
- besar:Play()
- besar.Completed:Wait()
- kecil:Play()
- end
- local startTime = tick()
- local lastElapsed = -1
- RunService.RenderStepped:Connect(function()
- local elapsed = math.floor(tick() - startTime)
- if elapsed ~= lastElapsed then
- lastElapsed = elapsed
- local jam = math.floor(elapsed / 3600)
- local menit = math.floor((elapsed % 3600) / 60)
- local detik = elapsed % 60
- if jam > 0 then
- afkLabel.Text = string.format("Waktu AFK: %d j %02d mnt %02d dtk", jam, menit, detik)
- elseif menit > 0 then
- afkLabel.Text = string.format("Waktu AFK: %d mnt %02d dtk", menit, detik)
- else
- afkLabel.Text = string.format("Waktu AFK: %d dtk", detik)
- end
- pulse()
- end
- end)
- -- Gelap mode
- Lighting.Brightness = 0
- Lighting.Ambient = Color3.new(0, 0, 0)
- Lighting.FogEnd = 0
- Lighting.OutdoorAmbient = Color3.new(0, 0, 0)
- Lighting.GlobalShadows = false
- for _, v in ipairs(Lighting:GetChildren()) do
- if v:IsA("Sky") then
- v.Enabled = false
- end
- end
- print("[Mode AFK] Jam WIB + Timer AFK aktif (Executor Mode)")
Add Comment
Please, Sign In to add comment