Hands disappearing while in first person while idle animation plays?

Hello Developers,

I am currently developing a survival game. I scripted a idle animation, and my game will be first person, when I go first person while the animations plays in it’s loop, the arms of my avatar disappear, the arms are there, I have a script to show the arms.

Looking forward to your responses. :slight_smile:

You might want to delete the indent in front of your paragraph :slight_smile:

Sounds like your arm showing script is busted, maybe you could share it here?

local char = script.Parent

local humanoid = char:WaitForChild(“Humanoid”)

local armParts = {“LeftHand”, “LeftLowerArm”, “LeftUpperArm”, “RightHand”, “RightLowerArm”, “RightUpperArm”}

for i, bodyPart in pairs(char:GetChildren()) do

if table.find(armParts, bodyPart.Name) and bodyPart:IsA("BasePart") then
	
	
	bodyPart.LocalTransparencyModifier = bodyPart.Transparency
	
	
	bodyPart:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
		
		bodyPart.LocalTransparencyModifier = bodyPart.Transparency
	end)
end

end

I hope you aren’t doing that on the server.
And I would just set the value to 0

What do you mean on the server? And what value? Sorry I’m very very new to scripting so I learn from others, I don’t copy and paste or anything like that, I used a tut ( But I wrote everything myself ), and I use Lua Learning.

1 Like

Are you saying the string value for the idle?

You need to set the LocalTransparencyModifier to 0 in a local script

How would I do that, is it a separate script?

Yes it is a local script object

Where do I insert it, do I put it with the other scripts in StarterCharacterScripts? And how do I write it? Is it like LocalTransparencyModifier = 0 ? Or is there more than that to it?

You can put it in starter player scripts

And in it just put what you put in here but char = script.Parent.Parent.Character

So add another local script and put

local humanoid = char:WaitForChild(“Humanoid”)

local armParts = {“LeftHand”, “LeftLowerArm”, “LeftUpperArm”, “RightHand”, “RightLowerArm”, “RightUpperArm”}

for i, bodyPart in pairs(char:GetChildren()) do

if table.find(armParts, bodyPart.Name) and bodyPart:IsA("BasePart") then
	
	
	bodyPart.LocalTransparencyModifier = bodyPart.Transparency
	
	
	bodyPart:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
		
		bodyPart.LocalTransparencyModifier = bodyPart.Transparency
	end)
end

end

1 Like

Have you tried using Viewmodel (Fake arms) for your first person animations?

1 Like

What fake arms? Is it like aresenal?

1 Like

Yes that is what you make a local script, put it in starter player scripts and put this in the script

local char = script.Parent.Parent
local humanoid = char:WaitForChild(“Humanoid”)

local armParts = {“LeftHand”, “LeftLowerArm”, “LeftUpperArm”, “RightHand”, “RightLowerArm”, “RightUpperArm”}

for i, bodyPart in pairs(char:GetChildren()) do

if table.find(armParts, bodyPart.Name) and bodyPart:IsA("BasePart") then
	
	
	bodyPart.LocalTransparencyModifier = bodyPart.Transparency
	
	
	bodyPart:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
		
		bodyPart.LocalTransparencyModifier = bodyPart.Transparency
	end)
end

He’s better of doing this for now he’s still a beginner

1 Like

I have that script already in there. The one I pasted, and this is the problem. When my animation plays, my hands are gone by my arms are there. Like this.

Then put this

local char = script.Parent.Parent
local humanoid = char:WaitForChild(“Humanoid”)

local armParts = {“LeftHand”, “LeftLowerArm”, “LeftUpperArm”, “RightHand”, “RightLowerArm”, “RightUpperArm”}

for i, bodyPart in pairs(char:GetChildren()) do

if table.find(armParts, bodyPart.Name) and bodyPart:IsA("BasePart") then
	
	
	bodyPart.LocalTransparencyModifier = 0
	
	
	bodyPart:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
		
		bodyPart.LocalTransparencyModifier = 0
	end)
end

Quick question. Im supposed to have 2 local scripts right? The one I pasted in my post, and the one you just showed me now?