--receives event from toolEvent

event.OnServerInvoke = function(player, t, val)
	if t=="whitelist" then
		return whitelisted(player.Name)
	elseif t=="." then
		if whitelisted(player.Name) and toollist[val] then
			local c = toollist[val]:Clone()
			c.Parent = player.Backpack
			return c
		end
	end
	return false
end
