I have a script that takes rooms and furniture and puts them together to make a endless house like environment but all the furniture’s welds have enabled false when I reload studio play the game on roblox or when its cloned into workspace.
how do I stop the weld constraints from disabling?
Can you show the code? Are the enabled in the first place?
Yes they are enabled and:
local Furniture = game.ReplicatedStorage.Parts.Environment.Furniture.Chairs
Furnita = Furniture:GetChildren()[math.random(1,#Furniture:GetChildren())]:Clone()
for i,v in pairs(Furnita:GetChildren()) do
if v.Name == "Leg" then
local Weld = Instance.new("WeldConstraint")
Weld.Name = "AddGlue"
Weld.Part0 = script.Obj.Value
Weld.Part1 = v
Weld.Parent = v
Weld:Clone().Parent = script.Obj.Value
end
end
EA = script.Parent.CFrame + (script.Parent.CFrame.UpVector * (Furnita.Leg.Size.Y + 0.3))
Furnita:SetPrimaryPartCFrame(EA)
Furnita.Parent = workspace
This specifically clones chairs the other furniture scripts are almost the same though and chairs are effected by this problem and the welds this script makes is all fine too.
are the original welds weldConstraints or regular welds?
they’re weld constraints not regular ones
1 Like