
1.6k Views
24 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Uuy
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Camera = workspace.CurrentCamera
local LocalPlayer = Players.LocalPlayer
local fovList = {100, 80, 70, 90}
local fovIndex = 1
-- بيانات الاهتزاز
local isShaking = false
local shakeDuration = 0.25
local shakeMagnitude = 0.25
local shakeStartTime = 0.25
local originalCFrame = nil
-- فحص المنظور
local function isFirstPerson()
return (Camera.CFrame.Position - Camera.Focus.Position).Magnitude < 1
end
-- تحريك الكاميرا تدريجياً
local function transitionToThirdPerson()
if not LocalPlayer.Character then return end
local hrp = LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
if not hrp then return end
local targetPos = hrp.Position - hrp.CFrame.LookVector * 4 + Vector3.new(0, 2, 0)
local newCFrame = CFrame.new(targetPos, hrp.Position)
local tweenInfo = TweenInfo.new(0.4, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
local goal = {CFrame = newCFrame}
local tween = TweenService:Create(Camera, tweenInfo, goal)
tween:Play()
end
-- الاهتزاز في المنظور الثالث فقط
local function startShake()
if isFirstPerson() then return end
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







