Universal Script 📌
1.3k Views
13 Executions

AFKTime

Universal Script 📌
vobBox
vobBoxPublished 10
2 years ago
Get an 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
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
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
783
5.0k
Bumped 2 hours ago
Universal Script 📌
6.2k
54.4k
Bumped 2 hours ago
Universal Script 📌
2.4k
2.1k
Bumped 3 hours ago
Key System
Script hub
14.4k
75.0k
Bumped 5 hours ago
Universal Script 📌
97
99
Approved 6 hours ago
Key System
Universal Script 📌
97
120
Approved 7 hours ago