Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make my torso visible in my first person game?

Asked by 2 years ago

In my game it needs to be in R6, but every time I test it my torso disappears. If I put it in R15 it works perfectly fine. -

local camera = workspace.CurrentCamera local player = game.Players.LocalPlayer local character = player.Character local humanoid = character.Humanoid

player.CameraMaxZoomDistance = 0.5 camera.FieldOfView = 100 humanoid.CameraOffset = Vector3.new(0, 0, -1)

for childIndex, child in pairs(character:GetChildren()) do if child:IsA("BasePart") and child.Name ~= "Head" then

    child:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
        child.LocalTransparencyModifier = child.Transparency
    end)

    child.LocalTransparencyModifier = child.Transparency

end

end

camera:GetPropertyChangedSignal("CameraSubject"):Connect(function() if camera.CameraSubject:IsA("VehicleSeat") then camera.CameraSubject = humanoid end end)

Answer this question