Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why can't I just weld parts using my script?

I've been trying to solve this problem for almost an hour and it just doesn't seem to work for me. I also have read the wiki and I'm pretty sure I understand how welding, C0, and stuff like that works now, but when I apply it, it doesn't work. Even copy pasting the script itself from the wiki didn't work and exactly copying code from a video didn't work.

Here's my script in its simplest form:

part0 = workspace:WaitForChild('part0')
part1 = workspace:WaitForChild('part1')

local weld = Instance.new("Weld", part0)
weld.C0 = part0.CFrame:inverse() * part1.CFrame

Yes, I'm very sure that there are parts named part0 and part1 in the workspace and no errors relevant to the script outputs.

1 answer

✓ Accepted answer

You didn't set the properties Part0 or Part1 of Weld. You need to set those for a weld to work.

1 comment

0

oh man what a reckless mistake thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.