Weld Constrain Not working

Hey im trying to attach a Flashlight to the players hand it used to work but one day it stoped working can ya think you guys can help me?

local Sword = game.ReplicatedStorage.FlashLight:Clone()|

Sword.PrimaryPart.CFrame = LeftHand.CFrame * CFrame.Angles(math.rad(90),math.rad(90),math.rad(180))
Sword.PrimaryPart.Anchored = true
Sword.Parent = charater
local weld = Instance.new(WeldConstraint,Sword)
weld.Part0 = Sword.PrimaryPart
weld.Part1 = LeftHand

Check the output for errors, take a screenshot and post the image in your topic. Please also give any more info you can on the topic.

If the code you typed in is exactly the same as the code you currently have in your script (It should be using the ``` code ``` format though.) the only thing you need to change is to have speech marks around WeldConstraint when you create it.

I’ll fix it for you, be right back.

You can turn the angles of the sword to make it look better but here.

local Sword = game.ReplicatedStorage.Sword:Clone()
		
		Sword.Parent = Character
		
		
		local weld = Instance.new("WeldConstraint",Sword)
		weld.Part0 = Sword
		weld.Part1 = Character:WaitForChild("LeftHand")
		Sword.CFrame = Character:WaitForChild("LeftHand").CFrame * CFrame.Angles(math.rad(90),math.rad(90),math.rad(180))

There were none thats why i was confuse :confused:

Can you send any videos/screenshots?

	local LeftHand = charater:WaitForChild("LeftHand")
	local Sword = game.ReplicatedStorage.FlashLight:Clone()

	Sword.PrimaryPart.Anchored = false
	Sword.Parent = charater

	local weld = Instance.new("Weld")
	weld.Parent = workspace
	weld.Part0 = LeftHand
	weld.Part1 = Sword.PrimaryPart
	weld.C1 = CFrame.Angles(math.rad(90),math.rad(0),math.rad(180))

I’m verry apreciated for the help i finally found out how to fix it thank you everyone ^^