See Characters Parts + Accessories

Hello,

I would like to know how to enable the visibility of parts when we are in the FPS vision?

1 Like

You should really browse through the devforum or check out youtube before posting

1 Like

local script, in StarterCharacterScript

local character = script.Parent
local camera = game.Workspace.CurrentCamera

local cameraDistance = nil

game["Run Service"].RenderStepped:Connect(function(deltaTime)
    if character == nil then return end
    if character.Humanoid.Health == 0 then return end

    cameraDistance = (camera.CFrame.Position - character.Head.Position).Magnitude

    if cameraDistance < 1.2 then
        character["Right Arm"].LocalTransparencyModifier = 0
        character["Left Arm"].LocalTransparencyModifier = 0
    end
end)

Thank you very much for this tuto.

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