function CreatePart(j,T,b,B,s,Y,U,Z,H)local J=IT("\080\097\114\116")J.formFactor=j J.Reflectance=B J.Transparency=s J.CanCollide=false J.Locked=true J.Anchored=true if H==false then J.Anchored=false end J.BrickColor=BRICKC(tostring(Y))J.Name=U J.Size=Z J.Position=TORSO.Position J.Material=b J:BreakJoints()J.Parent=T return J end function Raycast(j,T,b,B)return workspace:FindPartOnRay(Ray.new(j,T.unit*b),B)end


function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
	local NEWPART = IT("Part")
	NEWPART.formFactor = FORMFACTOR
	NEWPART.Reflectance = REFLECTANCE
	NEWPART.Transparency = TRANSPARENCY
	NEWPART.CanCollide = false
	NEWPART.Locked = true
	NEWPART.Anchored = true
	if ANCHOR == false then
		NEWPART.Anchored = false
	end
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
	NEWPART.Name = NAME
	NEWPART.Size = SIZE
	NEWPART.Position = TORSO.Position
	NEWPART.Material = MATERIAL
	NEWPART:BreakJoints()
	NEWPART.Parent = PARENT
	return NEWPART
end

function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
end
