How to get selection? PLEASE HELP!

Hi im looking ti make a plugin.
it doesnt seem to work.
im trying to get the descendants of the selected model and disable all welds.
Code:

function Welds_Off()
	game.ChangeHistoryService:SetWaypoint("WELDED PARTS!")
	for a,b in ipairs(game.Selection:Get()) do
		if b:IsA("WeldConstraint") then
			b.Enabled = false
		end
	end
end
1 Like

nevermind. i found the issue! thanks for lookign in!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.