How do I make this first-person LocalTransparencyModifier script better?

Hi, I’ve created a script that allows you to see yourself in first-person. I wonder how I can make this script even better?

LocalScript in StarterCharacterScripts:

local RunService = game:GetService("RunService")

local character = script.Parent

local function onRenderStepped()
	for _, child in pairs(character:GetChildren()) do
		if child:IsA("BasePart") and child ~= character:FindFirstChild("Head") then
			child.LocalTransparencyModifier = 0


I think you shouldn’t use RunService and instead you could use repeat wait() until game:IsLoaded() in the beggining.

I have to make the parts visible more than once.

I did my method once and it still was showing the full visible character. If it doesn’t work for you, then I can’t think of any suggestions.

Can you explain what you mean by “even better”? I’m not sure I know what you mean.

i doubt you can script something much better then this

1 Like

I’m new to RunService:BindToRenderStep(), I don’t know if it should be used here. Perhaps there’s better ways going about this.

1 Like