I want to make the body visible in first person, like in the popular game Doors. I have created a script which makes my body visible but I can see my whole body but I want to move the camera forward to see only the legs like in Doors, for this I changed some properties in CameraOffset in the player humanoid but after that, when I touch the wall, I see everything that is behind it. I want to understand what could be a better way, either to move the camera using CameraOffset in the playerâs humanoid, or somehow it is possible locally for the player to move his body back so that he sees only a small part of his torso
local character = (game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:wait())
game:GetService(âRunServiceâ).RenderStepped:connect(function()
if (character:FindFirstChild(âRightUpperArmâ) and character:FindFirstChild(âLeftUpperArmâ)) then
character:FindFirstChild(âRightUpperArmâ).LocalTransparencyModifier = 0
character:FindFirstChild("RightLowerArm").LocalTransparencyModifier = 0
character:FindFirstChild("RightHand").LocalTransparencyModifier = 0
character:FindFirstChild("LeftUpperArm").LocalTransparencyModifier = 0
character:FindFirstChild("LeftLowerArm").LocalTransparencyModifier = 0
character:FindFirstChild("LeftHand").LocalTransparencyModifier = 0
character:FindFirstChild("RightUpperLeg").LocalTransparencyModifier = 0
character:FindFirstChild("RightLowerLeg").LocalTransparencyModifier = 0
character:FindFirstChild("RightFoot").LocalTransparencyModifier = 0
character:FindFirstChild("LeftUpperLeg").LocalTransparencyModifier = 0
character:FindFirstChild("LeftLowerLeg").LocalTransparencyModifier = 0
character:FindFirstChild("LeftFoot").LocalTransparencyModifier = 0
character:FindFirstChild("UpperTorso").LocalTransparencyModifier = 0
character:FindFirstChild("LowerTorso").LocalTransparencyModifier = 0
character:FindFirstChild("Humanoid").CameraOffset = Vector3.new(0,0,-1)
end
end)
Well is your game in first person all the time?, if yes you can destroy any accessories on the player and make the head invisible which should solve your issue, maybe offset the camera very slightly forward too to see the entire body itâs up to you
put in starterplayerscripts if doesnât work put in startercharacterscripts
I tried the same method with CameraOffset, but it moves more far than playerâs collision so i can see all what is behind the wall.
do the cameraOffset = Vectopr3.new(0,0, -1.5)
Yeah this method is working but, CameraOffset moves my camera more far than playerâs collision so i can see all what is behind the wall.
a video pls i didnât get what ur saying
robloxapp-20240703-1602417.wmv (1.1 MB)
After CameraOffset = Vector3.new(0, 0, -1.2) when i go close to the wall i can see through the wall
make wall thicker it should work
You can create a view port model. If you donât know how thereâs many tutorials. Iâm pretty sure doors uses view models too because you can see the flashlight points towards your camera when you look up/down.
Wall is a one part, no sense how thick is it anyways i can see through, creating 2-3 layers walls is not good idea i guess
You mean ViewportFrame? I guess doors donât use ViewportFrame to see playerâs body
No not that. Itâs like in fps games. Basically fake arms.
You might want to look into using the realism module to do this. It also comes with footstep sounds for you character animate looking up and down procedurally: GitHub - MaximumADHD/Character-Realism: A flexible character enhancement system for Roblox.
I didnât found some tutorials about it, i donât think doors using that, cuz in fps games arms moving with your camera in doors you look down and see your legs
This is unavoidable due to the fact that your camera is literally pushed forward a bit.
Edit: I am sorry I didnât quite understand the discussion, could I get a quick resumĂŠ of this discussion?
View models arenât limited to just arms. If you donât want arms just clone your character and delete everything you donât need. Then move it slightly back.