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
end
end
end
RunService.RenderStepped:Connect(onRenderStepped)