@DMiner_rbx

local player = game.Players.LocalPlayer
local char = player.Character
local RunService = game:GetService("RunService")

char.Humanoid.CameraOffset = Vector3.new(0, 0, -1)

for i, v in pairs(char:GetChildren()) do
 if v:IsA("BasePart") and v.Name ~= "Head" then

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

  v.LocalTransparencyModifier = v.Transparency

 end
end

RunService.RenderStepped:Connect(function(step)
 local ray = Ray.new(char.Head.Position, ((char.Head.CFrame + char.Head.CFrame.LookVector * 2) - char.Head.Position).Position.Unit)
 local ignoreList = char:GetChildren()

 local hit, pos = game.Workspace:FindPartOnRayWithIgnoreList(ray, ignoreList)

 if hit then
  char.Humanoid.CameraOffset = Vector3.new(0, 0, -(char.Head.Position - pos).magnitude)
 else
  char.Humanoid.CameraOffset = Vector3.new(0, 0, -1)
 end
end)

@mladenov-q2h

Im really pleased. You made my game development much easier!

@1x1x1x1notoffical

Thank you I can now making my survival game more realistic thank you!!!!

@MartinRomea

I don't really understand the programming language that Roblox Studio uses but I'll drop a sub and like so I can learn some more of this. πŸ™

@gamer-v1i4n

Cool thanks I'm creating horror game

@Poki111-pr6

this video need more likes

@miskostransky3094

Thanks! my game is better now

@YoJJM06

thank you man

@Eddieforever2020

What i did for my version of first person is i just changed my head so its transparent using localtransparencymodifier and also changed the torso to be semi-transparent too. On zoom-out i just revert the changes.

@i-zg

I never knew there were properties in starterplayer ahaha

@Newwwwl

local player = game. Players.LocalPlayer

local char = player.Character

local RunService = game:GetService("RunService")

char.Humanoid.CameraOffset = Vector3.new(0, 0,

-1)

for i, v in pairs(char:GetChildren()) do

if v:IsA("BasePart") and v. Name ~= "Head" then

v:GetPropertyChangedSignal("Local Transparency

Modifier"):Connect(function()

v. Local TransparencyModifier = v. Transparency end)

v.Local TransparencyModifier = v. Transparency

end

end

RunService. RenderStepped:Connect (function(ste

p)

local ray = Ray.new(char.Head. Position, ((char.Head.CFrame +

char.Head.CFrame. LookVector * 2) -

char.Head. Position). Position. Unit)

local ignoreList = char:GetChildren()

local hit, pos =game. Workspace:FindPartOnRayWithIgnoreList(ra y, ignoreList)

if hit then

char.Humanoid.CameraOffset = Vector3.new(0, 0, -(char.Head. Position - pos).magnitude)

else

char.Humanoid.CameraOffset = Vector3.new(0,

0,-1)

end

end)

@ArafWafiq

Properties don't show when i click for me can you make a turtorial about how to get it

@THE_DUCK-2415

What if u don’t see the bottom part?

@ElionHasani-u8p

Body dosent show

@LoLoPlayz1

Idk what I did wrong, did not work in my game

@ericyu6934

can you help me i cant see the bottom thing when i click starter player like i cant click cameramode

@Exsphell

dude can you like teach us how to write the code and not just copy paste like a dummy

@crazypancake7165

So many errors
😒😒😒

@gatixcrackyt7889

Dodnt work