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

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

Asked by 6 years ago
Edited 6 years ago

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.

0
Not a request site! User#19524 175 — 6y
0
It says scripting help in the name Gavinboy3000 98 — 6y
0
Right. Scripting HELP, not scripting REQUEST. User#19524 175 — 6y
0
Then how do you help me Gavinboy3000 98 — 6y
View all comments (7 more)
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. User#19524 175 — 6y
0
I’m willing to help you, but you have to help yourself first. User#19524 175 — 6y
0
I've asked similar questions without code and people have helped me Gavinboy3000 98 — 6y
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 User#19524 175 — 6y
0
awww shucks. you got me there Gavinboy3000 98 — 6y
0
how about now Gavinboy3000 98 — 6y
0
Let’s see! User#19524 175 — 6y

2 answers

Log in to vote
1
Answered by 6 years ago
Edited 6 years ago

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)
0
Then i cant see the torso and the head is in the way Gavinboy3000 98 — 6y
0
You can’t make the back invisible. The Torso part is all one part, you can’t make half of it invisible . User#19524 175 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

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.

Answer this question