Hello,
I would like to know how to enable the visibility of parts when we are in the FPS vision?
Hello,
I would like to know how to enable the visibility of parts when we are in the FPS vision?
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.