So I am using spawn locations for a game of mine. Unfortunatly for some odd reasons the spawn locations become enabled but won't become disabled.

	local childs = game.Workspace.Map1:GetChildren()
	for i,v in pairs(childs) do 
		if v.ClassName == "SpawnLocation" then
		v.Enabled = false
		end
end

That is just a snipet of the code that won't work. Making the spawn locations enabled works. My console has 0 errors.

1 comment

0

If you're trying to disable the actual spawn brick then I don't think its ClassName is "SpawnLocation".