Universal Script 📌
1.6k Views
24 Executions

Good

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

Uuy

View Raw
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

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