Heres my script:
01 | local plr = game:GetService( "Players" ).LocalPlayer |
02 | local char = plr.Character or plr.CharacterAdded:wait() |
03 |
04 | game:GetService( "RunService" ).RenderStepped:connect( function () |
05 | for i,v in pairs (char:GetChildren()) do |
06 | 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 |
07 | v.LocalTransparencyModifier = 0 |
08 | end |
09 | end |
10 | end ) |
When I walk in first person I can see my back when I move. I need it to be more realistic.
RBXScriptSignal:connect()
is deprecated, switch to RBXScriptSignal:Connect()
RBXScriptSignal:wait()
is also deprecated, switch to RBXScriptSignal:Wait()
01 | local run = game:GetService 'RunService' |
02 | local plr = game:GetService( 'Players' ).LocalPlayer |
03 | local char = plr.Character or plr.CharacterAdded:Wait() |
04 |
05 | run.RenderStepped:Connect( function (step) |
06 | for _, v in pairs (char:GetChildren()) do |
07 | if v:IsA 'BasePart' and not v.Name:match( 'Torso' ) and v.Name ~ = 'Head' then |
08 | v.LocalTransparencyModifier = 0 |
09 | end |
10 | end |
11 | end ) |
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.