---
title: "AFKTime | Universal Roblox Script - ScriptBlox"
description: "AFKTime for any Roblox game: AFKTime"
canonical_url: "https://scriptblox.com/script/Universal-Script-AFKTime-38779"
meta:
  "og:description": "AFKTime for any Roblox game: AFKTime"
  "og:image": "https://scriptblox.com/images/script/0-1746471914246.png"
  "og:title": "AFKTime | Universal Roblox Script - ScriptBlox"
  "twitter:description": "AFKTime for any Roblox game: AFKTime"
  "twitter:image": "https://scriptblox.com/images/script/0-1746471914246.png"
  "twitter:title": "AFKTime | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/0-1746471914246.png)

# **AFKTime**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![vobBox](https://scriptblox.com/images/photo/67e82654133d59648788f9ad-1745267110167.png) [vobBox](https://scriptblox.com/u/vobBox)Published 10**

2 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

## **Does it work? **

**No reports yet **

No reports yet. Tried it? Be the first to say.

Also noticed:

## Description

AFKTime

[View Raw](https://scriptblox.com/raw/Universal-Script-AFKTime-38779)

```
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")

local player = Players.LocalPlayer
local camera = workspace.CurrentCamera

local idleTime = 0
local AFKTime = 20  -- الوقت الذي يجب أن يقف فيه اللاعب دون حركة لتفعيل السكربت
local switchDelay = 5  -- التأخير بين انتقالات الكاميرا
local switching = false

local orbitAngle = 0
local lastTween = nil

-- احصل على جذر اللاعب (HumanoidRootPart)
local function getPlayerRoot()
	local success, result = pcall(function()
		local character = player.Character or player.CharacterAdded:Wait()
		return character:WaitForChild("HumanoidRootPart")
	end)
	return success and result or nil
end

-- اختر لاعب عشوائي غير اللاعب الحالي
local function getRandomOtherPlayer()
	local others = {}
	for _, p in ipairs(Players:GetPlayers()) do
		if p ~= player and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
			table.insert(others, p)
		end
	end
	if #others > 0 then
		return others[math.random(1, #others)]
	end
	return nil
end

-- تابع اللاعب بحركة كاميرا ناعمة وجميلة
local function followPlayerWithOrbit(target)


```

## **Comments **

**0**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-AFKTime-38779)

No comments yet. Be the first!

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-AFKTime-38779#script","url":"https://scriptblox.com/script/Universal-Script-AFKTime-38779","name":"AFKTime","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"vobBox","url":"https://scriptblox.com/u/vobBox"},"datePublished":"2025-05-05T19:05:14.295Z","image":"https://scriptblox.com/images/script/0-1746471914246.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-AFKTime-38779#webpage","@type":"WebPage","description":"AFKTime for any Roblox game: AFKTime","name":"AFKTime | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-AFKTime-38779","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-AFKTime-38779#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-AFKTime-38779#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-AFKTime-38779"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-AFKTime-38779#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"AFKTime","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
