For my game I created a custom character (R6) that the player spawns as. I created this script for a sheathe to be welded to the player but it seems to only work when using the player's own character. When I try to play it using a custom character the script doesn't run and the sheathe does not appear.

game.Players.PlayerAdded:Connect(function(Player)
	
	
	
	Player.CharacterAppearanceLoaded:Connect(function(Char)
		local Hum = Char:WaitForChild("Humanoid")
		local HumRP = Char:WaitForChild("HumanoidRootPart")
		local Torso = Char:WaitForChild("Torso")
		
		local Sheathe = script:WaitForChild("Sheathe"):Clone()
		Sheathe.Parent = Char
		
		local Weld = Instance.new("Weld",Torso)
		Weld.Part0 = Torso
		Weld.Part1 = Sheathe.Handle
		Weld.C1 = CFrame.new( 0.817922592, -0.80175662, 1.08306026, -0.0594392158, -0.25851348, 0.964186966, 0.0052002687, -0.965962172, -0.25866881, 0.998218358, -0.0103609078, 0.058759626)
		
	end)
end)

Any help is appreciated!

1 comment

0

Make sure the custom character has a part named "Torso". You could also try using WeldConstraints