C0 and C1 only updating orientation fsr

Hi,

I made a basic script for my cape. Basically when the player is added, it gives you a cape with a weld.

Problem is it’s not updating the weld C0 and C1 position for some reason

Here’s a look at the script:

function PlayerAdded(Player: Player)
	Player.CharacterAdded:Connect(function(Character)
		print(Player.Name)
		local Cape = Assets.Cape:Clone()
		local Weld = Instance.new("Weld")
		Weld.Parent = Character.Torso
		
		--Cape.Anchored = false -- should be already unanchored 
		Cape.Parent = Character
		
		Weld.C0 = CFrame.new(-0, -0.9, 0.45)
		Weld.C1 = CFrame.new(0, 0.184, 0)
		Weld.C0 = CFrame.Angles(0,math.rad(-180),0)
		Weld.C1 = CFrame.Angles(0,math.rad(90),0)
		
		Weld.Part0 = Character.Torso
		Weld.Part1 = Cape
	end)
end

Running the script:
Screen Shot 2023-07-15 at 9.01.16 PM

1 Like

Not good with welds but I just found out to add orientation you need to * it by the position

So, I did this

Weld.C0 = CFrame.new(-0, -0.9, 0.45) * CFrame.Angles(0,math.rad(-180),0)
Weld.C1 = CFrame.new(0, 0.184, 0) * CFrame.Angles(0,math.rad(-90),0)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.