Universal Script πŸ“Œ
916 Views
845 Executions

Basic 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

Only features are a high FoV and you can see your body on first person. In some games it bugs when you reset and gets your camera stuck on first person until you rejoin.

View Raw
-- initialize local variables
local camera = workspace.CurrentCamera
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character.Humanoid
 
-- camera settings
player.CameraMaxZoomDistance = 0.5 -- force first person
camera.FieldOfView = 100
humanoid.CameraOffset = Vector3.new(0, 0, -1)
 
-- set and keep every body part Transparency to its real transparency
for childIndex, child in pairs(character:GetChildren()) do
    if child:IsA("BasePart") and child.Name ~= "Head" then
        
        child:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
            child.LocalTransparencyModifier = child.Transparency
        end)
        
        child.LocalTransparencyModifier = child.Transparency
        
    end
end
 
-- if the player steps in a vehicle
camera:GetPropertyChangedSignal("CameraSubject"):Connect(function()
    if camera.CameraSubject:IsA("VehicleSeat") then
        camera.CameraSubject = humanoid
    end
end)


Comments

1
Log in to join the conversation. Login
user346346346's profile picture
user34634634610 months ago

nice now i can see my dih

1

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