I am trying to make a weld script that welds the restraints for a theme park I'm making so the restraints don't glitch everywhere. I'm trying to make welds for models.
Here's the script for the weld I was trying to make lol:
script.Parent.MouseClick:Connect(function()
local Restrains = workspace.Freefall.Cart
local All = Restrains:GetChildren()
for i,v in pairs(All) do
if v.Name == "Restraints" then
local weld = Instance.new("Weld")
weld.Parent = workspace.Freefall.Cart.Model.Motor
weld.Part0 = workspace.Freefall.Cart.Model.Motor
weld.Part1 = v.Welded --have no idea how to weld
end
end
end)
:)
