First person body

what happened to all the first person body scripts? it was all ok a year ago but now it looks like this:
image_2023-11-27_205722756

can someone give me a working first person body script please? if there is one

2 Likes

Add a local script into starter character scripts and enter this code:

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)

Make sure you have lock first person on!

1 Like

this doesn’t seem to work. just looks like the normal game without scripts

1 Like

try:

--variables--
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()

--events--
game:GetService("RunService").RenderStepped:Connect(function()
	--visible
	for i, part in pairs(character:GetChildren()) do
		if string.match(part.Name, "Arm") or string.match(part.Name, "Hand") then
			part.LocalTransparencyModifier = 0
		end
	end
	
end)

game:GetService("RunService").RenderStepped:Connect(function()
	--visible
	for i, part in pairs(character:GetChildren()) do
		if string.match(part.Name, "Leg") or string.match(part.Name, "LowerLeg") then
			part.LocalTransparencyModifier = 0
		end
	end
	
end)

game:GetService("RunService").RenderStepped:Connect(function()
	--visible
	for i, part in pairs(character:GetChildren()) do
		if string.match(part.Name, "LowerTorso") then
			part.LocalTransparencyModifier = 0
		end
	end
	
end)

game:GetService("RunService").RenderStepped:Connect(function()
	--visible
	for i, part in pairs(character:GetChildren()) do
		if string.match(part.Name, "UpperTorso") then
			part.LocalTransparencyModifier = 0
		end
	end

end)

local script startergui

1 Like

I have a suspicion that this problem might be happening because of 3D-Jackets. Are you wearing something like that on your avatar? If you do, try putting it off and then check if it still looks like this. I have seen some problems like that before and it always was one of these 3D-Jackets which caused problems.

If you don’t know what I mean, here’s an example for a 3D-Jacket:
image

I guess you are wearing this one
image

2 Likes

tysmㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

1 Like

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