So basically I was gonna add in a first person view of your avatar in first person like torso, legs and arms but whenever I die it resets it. I was thinking if any of the script helpers or professional scripters could help me.
--[[
Notes:
Transparency Modifier is what is the end result when "zooming in", it can be changed to whatever you like.
1 | Camera Offset is changed to allow the player to see at lower angles without clipping the view with the torso. |
2 | This may or maynot effect certian tools if they change the players camera position IE crouching or crawling. |
3 |
4 | Use: |
5 | Place into StarterPlayer.StarterChacterScripts |
--]]
local character = (game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:wait())
game:GetService("RunService").RenderStepped:connect(function() if (character:FindFirstChild("Right Arm") and character:FindFirstChild("Left Arm")) then
01 | character:FindFirstChild( "Right Arm" ).LocalTransparencyModifier = 0 |
02 |
03 | character:FindFirstChild( "Left Arm" ).LocalTransparencyModifier = 0 |
04 |
05 | character:FindFirstChild( "Right Leg" ).LocalTransparencyModifier = 0 |
06 |
07 | character:FindFirstChild( "Left Leg" ).LocalTransparencyModifier = 0 |
08 |
09 | character:FindFirstChild( "Torso" ).LocalTransparencyModifier = 0 |
10 |
11 | character:FindFirstChild( "Humanoid" ).CameraOffset = Vector 3. new( 0 , 0 ,- 1 ) |
12 | end |
end)
01 | game:GetService( "Players" ).PlayerAdded:Connect( function (Player) |
02 | Player.CharacterAdded:Connect( function (character, Player) |
03 | character:FindFirstChild( "Right Arm" ).LocalTransparencyModifier = 0 |
04 | character:FindFirstChild( "Left Arm" ).LocalTransparencyModifier = 0 |
05 | character:FindFirstChild( "Right Leg" ).LocalTransparencyModifier = 0 |
06 | character:FindFirstChild( "Left Leg" ).LocalTransparencyModifier = 0 |
07 | character:FindFirstChild( "Torso" ).LocalTransparencyModifier = 0 |
08 | character:FindFirstChild( "Humanoid" ).CameraOffset = Vector 3. new( 0 , 0 ,- 1 ) |
09 | character:WaitForChild( "Humanoid" ).Died:Connect( function () |
10 | character:FindFirstChild( "Right Arm" ).LocalTransparencyModifier = 0 |
11 | character:FindFirstChild( "Left Arm" ).LocalTransparencyModifier = 0 |
12 | character:FindFirstChild( "Right Leg" ).LocalTransparencyModifier = 0 |
13 | character:FindFirstChild( "Left Leg" ).LocalTransparencyModifier = 0 |
14 | character:FindFirstChild( "Torso" ).LocalTransparencyModifier = 0 |
15 | character:FindFirstChild( "Humanoid" ).CameraOffset = Vector 3. new( 0 , 0 ,- 1 ) |
16 | end ) |
17 | end ) |
18 | end ) |
Disgusting, but works.