Universal Script 📌
1.2k Views
902 Executions

Realistic First Person Script

Universal Script 📌
allr359
allr359First script
9 months 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

This is a more realistic of my other script. The camera follows exactly how the head moves or rotates, so it can make you dizzy. Made with ChatGPT Non-dizzy version: https://scriptblox.com/script/Universal-Script-Realistic-First-Person-Script-non-dizzy-version-111423

View Raw
local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local runService = game:GetService("RunService")
local userInput = game:GetService("UserInputService")

camera.CameraType = Enum.CameraType.Scriptable
player.CameraMode = Enum.CameraMode.Classic

local sensitivity = 0.15
local pitch = 0
local yaw = 0

local function hideHeadAndAccessories(character)
	for _, obj in pairs(character:GetDescendants()) do
		-- Hide head
		if obj:IsA("BasePart") and obj.Name == "Head" then
			obj.LocalTransparencyModifier = 1
		end

		-- Hide hair/accessories
		if obj:IsA("Accessory") then
			local handle = obj:FindFirstChild("Handle")
			if handle then
				handle.LocalTransparencyModifier = 1
			end
		end
	end
end

local function setupCharacter(character)
	local humanoid = character:WaitForChild("Humanoid")
	local root = character:WaitForChild("HumanoidRootPart")
	local head = character:WaitForChild("Head")

	humanoid.AutoRotate = false
	hideHeadAndAccessories(character)

	userInput.MouseBehavior = Enum.MouseBehavior.LockCenter
	userInput.MouseIconEnabled = false



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
46.4k
11.5k
Bumped 2 hours ago
Key System
Paid
Script hub
2.5M
798.8k
Bumped 3 hours ago
Key System

Script hub

#9 today

Verified script badgeLumin Hub | #1 | Insta Steal