How do I fix this script?

How do I fix this weld script?

local w1 = Instance.new("Weld")

w1.Parent = script.Parent.Handle

w1.Part0 = w1.Parent

w1.Part1 = script.Parent.Handle2

w1.C1 = CFrame.new(3, 0, 0)

Errors:

[10:39:46.699 - Handle2 is not a valid member of Tool "Players.AidanPlaysYT_Real.Backpack.Raw Big Boi Steak"]

10:39:46.703 - Stack Begin

[10:39:46.705 - Script 'Players.AidanPlaysYT_Real.Backpack.Raw Big Boi Steak.WeldScript', Line 7]

10:39:46.707 - Stack End

  [10:39:46.765 - Handle is not a valid member of Tool "Players.AidanPlaysYT_Real.Backpack.Raw Big Boi Steak"]

10:39:46.770 - Stack Begin

[10:39:46.774 - Script 'Players.AidanPlaysYT_Real.Backpack.Raw Big Boi Steak.WeldScript', Line 3]

10:39:46.776 - Stack End
1 Like

The errors say that the objects Handle and Handle2 do not exist. You might have chosen the wrong location to index them from, or they may somehow have been removed.

Since there’s not a lot of info provided, I can’t really help you any further than this. Feel free to share more info, especially the hierarchy of your Tool.

1 Like

Try use waitforchild on all of them.