Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make it so i cant see my back in first person?

Heres my script:

local plr = game:GetService("Players").LocalPlayer
local char = plr.Character or plr.CharacterAdded:wait()

game:GetService("RunService").RenderStepped:connect(function()
	for i,v in pairs(char:GetChildren()) do
		if string.match(v.Name,"Arm") or string.match(v.Name,"Hand") or string.match(v.Name,"Leg") or string.match(v.Name,"Foot") or string.match(v.Name,"Torso") then
			v.LocalTransparencyModifier = 0
		end
	end
end)

When I walk in first person I can see my back when I move. I need it to be more realistic.

11 comments

0

Not a request site!

0

It says scripting help in the name

0

Right. Scripting HELP, not scripting REQUEST.

0

Then how do you help me

0

I help you by you attempting to do what you want, and if it fails, paste the code under a code block and we can see what your errors are, so we can fix them and get your code working.

0

I’m willing to help you, but you have to help yourself first.

0

I've asked similar questions without code and people have helped me

0

Maybe because you’re simply asking for an Enum key code which doesn’t really require code from your part: https://scriptinghelpers.org/questions/56656/what-are-the-keycodes-for-left-arrow-and-right-arrow

0

awww shucks. you got me there

0

how about now

0

Let’s see!

2 answers

✓ Accepted answer

RBXScriptSignal:connect() is deprecated, switch to RBXScriptSignal:Connect()

RBXScriptSignal:wait() is also deprecated, switch to RBXScriptSignal:Wait()

local run = game:GetService'RunService'
local plr = game:GetService('Players').LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()

run.RenderStepped:Connect(function(step) 
    for _, v in pairs(char:GetChildren()) do
        if v:IsA'BasePart' and not v.Name:match('Torso') and v.Name ~= 'Head' then
            v.LocalTransparencyModifier = 0
        end
    end
end)

2 comments

0

Then i cant see the torso and the head is in the way

0

You can’t make the back invisible. The Torso part is all one part, you can’t make half of it invisible .

Hold on.... Doesn't Robloxs' CameraMode (i think) function allow the 'LockFirstPerson' feature? I've never seen my back in FP using that feature. It's found in the StarterScripts Service.

This discussion is preserved as it was. New answers, comments, and votes are closed.