--[[
TheNexusAvenger

Creates beams between parts.
--]]


local PartJoiner = {}

local SurfaceData = {
	[Enum.NormalId.Top] = {
		{
			Rotation = Vector3.new(0,0,-90),
			Position = Vector3.new(0,0.5,0.5),
			Width = "X"
		},
		{
			Rotation = Vector3.new(0,0,-90),
			Position = Vector3.new(0,0.5,-0.5),
			Width = "X"
		},
		{
			Rotation = Vector3.new(0,90,-90),
			Position = Vector3.new(0.5,0.5,0),
			Width = "Z"
		},
		{
			Rotation = Vector3.new(0,90,-90),
			Position = Vector3.new(-0.5,0.5,0),
			Width = "Z"
		},
	},
	[Enum.NormalId.Bottom] = {
		{
			Rotation = Vector3.new(0,0,-90),
			Position = Vector3.new(0,-0.5,0.5),
			Width = "X"
		},
		{
			Rotation = Vector3.new(0,0,-90),
			Position = Vector3.new(0,-0.5,-0.5),
			Width = "X"
		},
		{
			Rotation = Vector3.new(0,90,-90),
			Position = Vector3.new(0.5,-0.5,0),
			Width = "Z"
		},
		{
			Rotation = Vector3.new(0,90,-90),
			Position = Vector3.new(-0.5,-0.5,0),
			Width = "Z"
		},
	},
	[Enum.NormalId.Front] = {
		{
			Rotation = Vector3.new(0,-90,0),
			Position = Vector3.new(0.5,0,0.5),
			Width = "Y"
		},
		{
			Rotation = Vector3.new(0,-90,0),
			Position = Vector3.new(-0.5,0,0.5),
			Width = "Y"
		},
		{
			Rotation = Vector3.new(90,-90,0),
			Position = Vector3.new(0,0.5,0.5),
			Width = "X"
		},
		{
			Rotation = Vector3.new(90,-90,0),
			Position = Vector3.new(0,-0.5,0.5),
			Width = "X"
		},
	},
	[Enum.NormalId.Back] = {
		{
			Rotation = Vector3.new(0,-90,0),
			Position = Vector3.new(0.5,0,-0.5),
			Width = "Y"
		},
		{
			Rotation = Vector3.new(0,-90,0),
			Position = Vector3.new(-0.5,0,-0.5),
			Width = "Y"
		},
		{
			Rotation = Vector3.new(90,-90,0),
			Position = Vector3.new(0,0.5,-0.5),
			Width = "X"
		},
		{
			Rotation = Vector3.new(90,-90,0),
			Position = Vector3.new(0,-0.5,-0.5),
			Width = "X"
		},
	},
	[Enum.NormalId.Right] = {
		{
			Rotation = Vector3.new(0,0,0),
			Position = Vector3.new(-0.5,0,0.5),
			Width = "Y"
		},
		{
			Rotation = Vector3.new(0,0,0),
			Position = Vector3.new(-0.5,0,-0.5),
			Width = "Y"
		},
		{
			Rotation = Vector3.new(0,90,-90),
			Position = Vector3.new(-0.5,0.5,0),
			Width = "Z"
		},
		{
			Rotation = Vector3.new(0,90,-90),
			Position = Vector3.new(-0.5,-0.5,0),
			Width = "Z"
		},
	},
	[Enum.NormalId.Left] = {
		{
			Rotation = Vector3.new(0,0,0),
			Position = Vector3.new(0.5,0,0.5),
			Width = "Y"
		},
		{
			Rotation = Vector3.new(0,0,0),
			Position = Vector3.new(0.5,0,-0.5),
			Width = "Y"
		},
		{
			Rotation = Vector3.new(0,90,-90),
			Position = Vector3.new(0.5,0.5,0),
			Width = "Z"
		},
		{
			Rotation = Vector3.new(0,90,-90),
			Position = Vector3.new(0.5,-0.5,0),
			Width = "Z"
		},
	},
}


