SALENDRA

WAKTU AFK DAN BANYAK FITUR LAINNYA!

Oct 19th, 2025
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. --[[
  2. AFK MODE - bikinan salendra10
  3. Script:(bisa langsung di exec)
  4. ]]
  5.  
  6. local Players = game:GetService("Players")
  7. local Lighting = game:GetService("Lighting")
  8. local TweenService = game:GetService("TweenService")
  9. local RunService = game:GetService("RunService")
  10. local player = Players.LocalPlayer
  11.  
  12. -- Hapus gui kalo udah di pakek
  13. if player:FindFirstChild("PlayerGui"):FindFirstChild("AFK_GUI") then
  14. player.PlayerGui:FindFirstChild("AFK_GUI"):Destroy()
  15. end
  16.  
  17. local screenGui = Instance.new("ScreenGui")
  18. screenGui.Name = "AFK_GUI"
  19. screenGui.IgnoreGuiInset = true
  20. screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
  21. screenGui.DisplayOrder = 999999
  22. screenGui.ResetOnSpawn = false
  23. screenGui.Parent = player:WaitForChild("PlayerGui")
  24.  
  25. -- Background hitam
  26. local blackFrame = Instance.new("Frame")
  27. blackFrame.Size = UDim2.new(1, 0, 1, 0)
  28. blackFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  29. blackFrame.BorderSizePixel = 0
  30. blackFrame.ZIndex = 100
  31. blackFrame.Parent = screenGui
  32.  
  33. -- Label jam
  34. local timeLabel = Instance.new("TextLabel")
  35. timeLabel.Size = UDim2.new(0, 400, 0, 50)
  36. timeLabel.Position = UDim2.new(1, -20, 0, 20)
  37. timeLabel.AnchorPoint = Vector2.new(1, 0)
  38. timeLabel.BackgroundTransparency = 1
  39. timeLabel.Font = Enum.Font.GothamBold
  40. timeLabel.TextSize = 25
  41. timeLabel.TextColor3 = Color3.new(1, 1, 1)
  42. timeLabel.TextStrokeTransparency = 0
  43. timeLabel.TextStrokeColor3 = Color3.new(0, 0, 0)
  44. timeLabel.ZIndex = 101
  45. timeLabel.TextXAlignment = Enum.TextXAlignment.Right
  46. timeLabel.Parent = screenGui
  47.  
  48. local hariIndonesia = {
  49. Sunday = "Minggu",
  50. Monday = "Senin",
  51. Tuesday = "Selasa",
  52. Wednesday = "Rabu",
  53. Thursday = "Kamis",
  54. Friday = "Jumat",
  55. Saturday = "Sabtu"
  56. }
  57.  
  58. local function getWaktuWIB()
  59. local waktu = os.date("!*t")
  60. waktu.hour = (waktu.hour + 7) % 24
  61. return waktu
  62. end
  63.  
  64. task.spawn(function()
  65. while true do
  66. local t = getWaktuWIB()
  67. local namaHari = hariIndonesia[os.date("!%A")] or os.date("!%A")
  68. local tanggal = string.format("%02d/%02d/%04d", t.day, t.month, t.year)
  69. local jam = string.format("%02d:%02d:%02d", t.hour, t.min, t.sec)
  70. timeLabel.Text = string.format("%s, %s\n%s", namaHari, tanggal, jam)
  71. RunService.Heartbeat:Wait()
  72. end
  73. end)
  74.  
  75. -- Label AFK
  76. local afkLabel = Instance.new("TextLabel")
  77. afkLabel.Size = UDim2.new(0, 500, 0, 100)
  78. afkLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  79. afkLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
  80. afkLabel.BackgroundTransparency = 1
  81. afkLabel.Text = "Waktu AFK: 0 dtk"
  82. afkLabel.Font = Enum.Font.GothamBlack
  83. afkLabel.TextSize = 50
  84. afkLabel.TextColor3 = Color3.new(1, 1, 1)
  85. afkLabel.TextStrokeTransparency = 0
  86. afkLabel.TextStrokeColor3 = Color3.new(0, 0, 0)
  87. afkLabel.ZIndex = 101
  88. afkLabel.Parent = screenGui
  89.  
  90. local stroke = Instance.new("UIStroke")
  91. stroke.Thickness = 3
  92. stroke.Parent = afkLabel
  93.  
  94. local rainbowColors = {
  95. Color3.fromRGB(255,0,0),
  96. Color3.fromRGB(255,128,0),
  97. Color3.fromRGB(255,255,0),
  98. Color3.fromRGB(0,255,0),
  99. Color3.fromRGB(0,200,255),
  100. Color3.fromRGB(128,0,255),
  101. Color3.fromRGB(255,0,255)
  102. }
  103.  
  104. task.spawn(function()
  105. while true do
  106. for _, c in ipairs(rainbowColors) do
  107. TweenService:Create(stroke, TweenInfo.new(0.8), {Color = c}):Play()
  108. task.wait(0.8)
  109. end
  110. end
  111. end)
  112.  
  113. local function pulse()
  114. local besar = TweenService:Create(afkLabel, TweenInfo.new(0.2), {TextSize = 60})
  115. local kecil = TweenService:Create(afkLabel, TweenInfo.new(0.2), {TextSize = 50})
  116. besar:Play()
  117. besar.Completed:Wait()
  118. kecil:Play()
  119. end
  120.  
  121. local startTime = tick()
  122. local lastElapsed = -1
  123.  
  124. RunService.RenderStepped:Connect(function()
  125. local elapsed = math.floor(tick() - startTime)
  126. if elapsed ~= lastElapsed then
  127. lastElapsed = elapsed
  128. local jam = math.floor(elapsed / 3600)
  129. local menit = math.floor((elapsed % 3600) / 60)
  130. local detik = elapsed % 60
  131.  
  132. if jam > 0 then
  133. afkLabel.Text = string.format("Waktu AFK: %d j %02d mnt %02d dtk", jam, menit, detik)
  134. elseif menit > 0 then
  135. afkLabel.Text = string.format("Waktu AFK: %d mnt %02d dtk", menit, detik)
  136. else
  137. afkLabel.Text = string.format("Waktu AFK: %d dtk", detik)
  138. end
  139.  
  140. pulse()
  141. end
  142. end)
  143.  
  144. -- Gelap mode
  145. Lighting.Brightness = 0
  146. Lighting.Ambient = Color3.new(0, 0, 0)
  147. Lighting.FogEnd = 0
  148. Lighting.OutdoorAmbient = Color3.new(0, 0, 0)
  149. Lighting.GlobalShadows = false
  150. for _, v in ipairs(Lighting:GetChildren()) do
  151. if v:IsA("Sky") then
  152. v.Enabled = false
  153. end
  154. end
  155.  
  156. print("[Mode AFK] Jam WIB + Timer AFK aktif (Executor Mode)")
  157.  
Add Comment
Please, Sign In to add comment