This is my Script:
01 | game.Players.PlayerAdded:connect( function (Player) |
02 | game.Workspace:WaitForChild(Player.Name) |
03 | local Cam = Instance.new( "Model" ,game.Workspace.CurrentCamera) |
04 | Cam.Name = "View" |
05 | for i,v in pairs (Player.Character:GetChildren()) do |
06 | if v.Name = = "LeftHand" or v.Name = = "LeftLowerArm" or v.Name = = "LeftUpperArm" then |
07 | local x = v:Clone() |
08 | x.Parent = Cam |
09 | x.Material = "SmoothPlastic" |
10 | end |
11 | end |
12 | end ) |
The problem is that when the player spawns in the Left arm looks deformed. How would I fix that problem?
Paste this in a LocalScript
and place it in StarterCharacterScripts
or StarterPack
.
01 | local player = game.Players.LocalPlayer |
02 | local character = player.Character |
03 |
04 | local RightArmList = { 'Right Arm' , 'Right Hand' , 'RightLowerArm' , 'RightUpperArm' } |
05 | local LeftArmList = { 'Left Arm' , 'Left Hand' , 'LeftLowerArm' , 'LeftUpperArm' } |
06 |
07 | game:GetService( "RunService" ).RenderStepped:connect( function () |
08 | for _, v in pairs (character:GetChildren()) do |
09 | --RIGHT ARM-- |
10 | for RA = 1 , #RightArmList do |
11 | if v.Name = = RightArmList [ RA ] then |
12 | v.LocalTransparencyModifier = 0 |
13 | end |
14 | end |
15 |
LocalScript
inside of StarterPlayerScripts
. This one is much more efficient than the first answer as this one needs no tables and works for both R6 and R15, so yeah.
01 | local plr = game:GetService( "Players" ).LocalPlayer |
02 | local char = plr.Character or plr.CharacterAdded:Wait() |
03 |
04 | while wait() do -- i had to wrap it in a while loop as when you died it wouldn't go visible anymore |
05 | while wait() do -- in 2 while loops |
06 | game:GetService( "RunService" ).RenderStepped:Wait() |
07 | local ch = char:GetChildren() |
08 | for c = 1 , #ch do |
09 | if string.match(ch [ c ] .Name, "Hand" ) or string.match(ch [ c ] .Name, "Arm" ) then |
10 | ch [ c ] .LocalTransparencyModifier = 0 |
11 | end |
12 | end |
13 | end |
14 | end |