Attempt to concatenate string with boolean

Code bug, I don’t know what happened. This never happens any other time I do this:

Updated Script

local gen = {}
local holder = workspace.StarHolder

function gen:Create(minimum, maximum, interval, name)
	for star = minimum, maximum, interval do
		local b = Instance.new("Part", holder)
		b.Name = name
		
		b.BrickColor = script.config.color.Value
		
		b.TopSurface = Enum.SurfaceType.Smooth
		b.BottomSurface = Enum.SurfaceType.Smooth
		b.Shape = Enum.PartType.Ball
		b.Material = Enum.Material.SmoothPlastic
		
		b.Position = Vector3.new(math.random(1,100),math.random(1,100),math.random(1,100))
		b.Size = script.config.size.Value
		
		b.CanCollide = script.config.collide.Value
		b.Anchored = script.config.collide.Value
	end
	
	print{
		"CONFIG STAR TABLE:";
		"";
		"ANCHORED: " .. script.config.anchor.Value;
		"CANCOLLIDE: " .. script.config.collide.Value;
		"SIZE: " .. script.config.size.Value;
		"COLOR: " .. script.config.color.Value
	}
end

function gen:Clear()
	holder:ClearAllChildren()
end

return gen
2 Likes

You should use tostring when the value you are concatenating isn’t a string or a number.

15 Likes