when trying to wait for a WeldConstraint to load and I’ve tried using math.huge or a number in the script but it stops the rest of the script from working or gives an error or an infinite yield again
The infinite yield sometimes stops the script from working as well.
script:
local weldB = script.Parent:WaitForChild("WeldConstraint")
wait()
weldB:GetPropertyChangedSignal("Enabled"):Connect(function()
wait(4)
script.Parent:Destroy()
end)
I’ve also tried FindFirstChild which just gives me another error
I think putting math.huge halts the script because that instance just doesn’t exist. You should playtest the game and check in the explorer for that weld while playing.