[Fixed] Realistic First Person

Hey! I’m making a script to make the character visible when zommed in. This game is in R6

Script name: First Person
Location: StarterCharacterScripts

local Player = game.Players.LocalPlayer
local Char = Player.Character

local function a(v)
	if v:IsA("Part") and v.Name ~= "Head" and v.Name ~= "Torso" then
		print("ran ".. v.Name)
		
		v.LocalTransparencyModifier = v.Transparency
		
		v:GetAttributeChangedSignal("LocalTransparencyModifier"):Connect(function()
			v.LocalTransparencyModifier = v.Transparency
		end)
	end
end

for i, v in pairs(Char:GetChildren()) do
	a(v)
end

Char.ChildAdded:Connect(a)

Output:

ran Right Arm
ran HumanoidRootPart
ran Left Arm
ran Right Leg
ran Left Leg

Problem: This script used to work, all the parts are detected and their local transparency is changed, but still invisible. Can somone help me?

1 Like

this should be a local script at playerscripts and it should fix it

1 Like

Nvm, I fixed it by adding:

repeat wait() until game:GetService("Players").LocalPlayer.Character ~= nil

and changing the script location to StarterPack.
Ty for your help!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.