Universal Script πŸ“Œ
1.2k Views
1.0k Executions

Realistic First Person Script

Universal Script πŸ“Œ
allr359
allr359First script
10 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
33.0k
298.1k
Bumped 27 minutes ago
Script hub
23.6k
5.2k
Bumped 27 minutes ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
174
527
Bumped 56 minutes ago
Universal Script πŸ“Œ
1.6k
30.2k
Bumped 58 minutes ago
Script hub
4.1M
558.5k
Bumped 1 hour ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
28.9k
Bumped 2 hours ago
Key System
Script hub
14.0k
28.5k
Bumped 3 hours ago