I keep getting that message, error is in line 25.. I can't seem to fix it. Help

local ReplicatedStorage = game.ReplicatedStorage
local LeftArm = ReplicatedStorage:WaitForChild('LeftArm')
local LeftLeg = ReplicatedStorage:WaitForChild('LeftLeg')
local RightArm = ReplicatedStorage:WaitForChild('RightArm')
local RightLeg = ReplicatedStorage:WaitForChild('RightLeg')
local Torso2 = ReplicatedStorage:WaitForChild('Shirt')
local Cape = ReplicatedStorage:WaitForChild('Cape')

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:connect(function(character)
		character:WaitForChild('Torso').Transparency = 1
		character:WaitForChild('Left Arm').Transparency = 1
		character:WaitForChild('Left Leg').Transparency = 1
		character:WaitForChild('Right Arm').Transparency = 1
		character:WaitForChild('Right Leg').Transparency = 1
		
		--|| Left Arm
		local ClonedLA = LeftArm:Clone()
		ClonedLA.Parent = character
		
		ClonedLA.Main.CFrame = character:WaitForChild('Left Arm').CFrame
		local Weld = Instance.new('ManualWeld')
		Weld.Part0 = ClonedLA.Main
		Weld.Part1 = character:WaitForChild('Left Arm')
		Weld.C0 = ClonedLA.Main.CFrame:Inverse() * character:WaitForChild('Left Arm')
		Weld.Parent = character:WaitForChild('Left Arm')
		
	end)
end)

2 comments

0

Line 09 on here is where the problem occurs

0

It works fine for me.