--[[function util.Tween(part,info,goal)
	local tween = game:GetService("TweenService"):Create(part,info,goal)
	return tween
end]]
--

function util.Tween(tbl)
	-- util.Tween( { part , { Position = Vector3.new(0,0,0) } , 2 , "Linear" , "Out" , 0 , false, 0 } )
	local parent,property,ttime,easingstyle,easingdirect,repeattime,reversable,delay = tbl[1],tbl[2],tbl[3] or 1,tbl[4] or "Linear",tbl[5] or "InOut",tbl[6] or 0,tbl[7] or false,tbl[8] or 0
	local ntw = game:GetService("TweenService"):Create(parent,TweenInfo.new(ttime,Enum.EasingStyle[easingstyle].Value,Enum.EasingDirection[easingdirect].Value,repeattime,reversable,delay),property)
	return ntw
end

function util.Sound(npar,sID,vol,pitch,looped)

	local par = npar or workspace

	local sound = Instance.new("Sound")
	sound.Parent = par

	sound.Volume = vol or 1
	if sID then sound.SoundId = "rbxassetid://" .. tostring(sID) end
	sound.Looped = looped or false
	sound.Pitch = pitch or 1

	return sound

end
