
1.3k Views
13 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
AFKTime
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
0Log in to join the conversation. Login
No comments yet. Be the first!







